summaryrefslogtreecommitdiffstats
path: root/chrome/browser/profile.cc
diff options
context:
space:
mode:
authorkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-27 19:23:09 +0000
committerkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-27 19:23:09 +0000
commitd34c5f86806cc82c667ac09339c25f5f64fdc1db (patch)
treee60c9bc8346d9fd9742a649a37d0c604a3c0b672 /chrome/browser/profile.cc
parent01ce7c91bc987c620be3620836f2151ecdb8acff (diff)
downloadchromium_src-d34c5f86806cc82c667ac09339c25f5f64fdc1db.zip
chromium_src-d34c5f86806cc82c667ac09339c25f5f64fdc1db.tar.gz
chromium_src-d34c5f86806cc82c667ac09339c25f5f64fdc1db.tar.bz2
Add a helper class that keeps per-profile information for FileSystem API
BUG=32277 TEST=FileSystemHostContextTest Review URL: http://codereview.chromium.org/3028033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57715 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profile.cc')
-rw-r--r--chrome/browser/profile.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/chrome/browser/profile.cc b/chrome/browser/profile.cc
index 7b9e0fd..2f1641e 100644
--- a/chrome/browser/profile.cc
+++ b/chrome/browser/profile.cc
@@ -17,6 +17,7 @@
#include "chrome/browser/chrome_blob_storage_context.h"
#include "chrome/browser/chrome_thread.h"
#include "chrome/browser/download/download_manager.h"
+#include "chrome/browser/file_system/file_system_host_context.h"
#include "chrome/browser/find_bar_state.h"
#include "chrome/browser/in_process_webkit/webkit_context.h"
#include "chrome/browser/net/chrome_url_request_context.h"
@@ -314,6 +315,14 @@ class OffTheRecordProfileImpl : public Profile,
return NULL;
}
+ virtual FileSystemHostContext* GetFileSystemHostContext() {
+ if (!file_system_host_context_)
+ file_system_host_context_ = new FileSystemHostContext(
+ GetPath(), IsOffTheRecord());
+ DCHECK(file_system_host_context_.get());
+ return file_system_host_context_.get();
+ }
+
virtual void InitThemes() {
profile_->InitThemes();
}
@@ -581,6 +590,9 @@ class OffTheRecordProfileImpl : public Profile,
scoped_refptr<ChromeBlobStorageContext> blob_storage_context_;
+ // The file_system context for this profile.
+ scoped_refptr<FileSystemHostContext> file_system_host_context_;
+
DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl);
};