mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Fix BrowserFileSystem context creation race condition between UI and IO threads (issue #442).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@404 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#define _CEF_CONTEXT_H
|
||||
|
||||
#include "include/cef.h"
|
||||
#include "browser_file_system.h"
|
||||
#include "browser_request_context.h"
|
||||
#include "cef_process.h"
|
||||
#include "dom_storage_context.h"
|
||||
@@ -68,6 +69,8 @@ public:
|
||||
{ storage_context_.reset(storage_context); }
|
||||
DOMStorageContext* storage_context() { return storage_context_.get(); }
|
||||
|
||||
BrowserFileSystem* file_system() { return &file_system_; }
|
||||
|
||||
// Used to keep track of the web view host we're dragging over. WARNING:
|
||||
// this pointer should never be dereferenced. Use it only for comparing
|
||||
// pointers.
|
||||
@@ -99,6 +102,7 @@ private:
|
||||
FilePath cache_path_;
|
||||
scoped_refptr<BrowserRequestContext> request_context_;
|
||||
scoped_ptr<DOMStorageContext> storage_context_;
|
||||
BrowserFileSystem file_system_;
|
||||
|
||||
// Map of browsers that currently exist.
|
||||
BrowserList browserlist_;
|
||||
|
Reference in New Issue
Block a user