diff options
author | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-06 10:19:24 +0000 |
---|---|---|
committer | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-06 10:19:24 +0000 |
commit | 190dbb5cf77465694749fb09ce023f62529df87e (patch) | |
tree | 21bdce64d314d34cb61db1771405632cc6cdea63 /webkit/browser/fileapi/file_system_context.h | |
parent | 4885b8e334a52a77212c8c66fd885532836697cd (diff) | |
download | chromium_src-190dbb5cf77465694749fb09ce023f62529df87e.zip chromium_src-190dbb5cf77465694749fb09ce023f62529df87e.tar.gz chromium_src-190dbb5cf77465694749fb09ce023f62529df87e.tar.bz2 |
Do not return FileSystem contents if the profile is in incognito mode.
BUG=178304
TEST=FileSystem{,Dir}URLRequestJobTest.*
TEST=manual
Review URL: https://chromiumcodereview.appspot.com/23494028
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221670 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/browser/fileapi/file_system_context.h')
-rw-r--r-- | webkit/browser/fileapi/file_system_context.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/webkit/browser/fileapi/file_system_context.h b/webkit/browser/fileapi/file_system_context.h index 769420f..9762b68 100644 --- a/webkit/browser/fileapi/file_system_context.h +++ b/webkit/browser/fileapi/file_system_context.h @@ -227,6 +227,10 @@ class WEBKIT_STORAGE_BROWSER_EXPORT FileSystemContext return sandbox_delegate_.get(); } + // Returns true if the requested url is ok to be served. + // (E.g. this returns false if the context is created for incognito mode) + bool CanServeURLRequest(const FileSystemURL& url) const; + private: typedef std::map<FileSystemType, FileSystemBackend*> FileSystemBackendMap; @@ -308,6 +312,8 @@ class WEBKIT_STORAGE_BROWSER_EXPORT FileSystemContext // The base path of the storage partition for this context. const base::FilePath partition_path_; + bool is_incognito_; + scoped_ptr<FileSystemOperationRunner> operation_runner_; DISALLOW_IMPLICIT_CONSTRUCTORS(FileSystemContext); |