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:
Marshall Greenblatt
2011-12-06 10:16:51 +00:00
parent 1d6de4e8b9
commit a254639d2b
7 changed files with 36 additions and 25 deletions

View File

@@ -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_;