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

@@ -13,10 +13,6 @@
class FilePath;
namespace fileapi {
class FileSystemContext;
}
namespace webkit_blob {
class BlobStorageController;
}
@@ -48,17 +44,12 @@ class BrowserRequestContext : public net::URLRequestContext {
return blob_storage_controller_.get();
}
fileapi::FileSystemContext* file_system_context() const {
return file_system_context_.get();
}
private:
void Init(const FilePath& cache_path, net::HttpCache::Mode cache_mode,
bool no_proxy);
net::URLRequestContextStorage storage_;
scoped_ptr<webkit_blob::BlobStorageController> blob_storage_controller_;
scoped_refptr<fileapi::FileSystemContext> file_system_context_;
scoped_ptr<net::URLSecurityManager> url_security_manager_;
FilePath cookie_store_path_;
bool accept_all_cookies_;