Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Side by Side Diff: webkit/browser/fileapi/sandbox_file_system_backend.h

Issue 23494028: Do not return FileSystem contents if the profile is in incognito mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/browser/fileapi/mock_file_system_context.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_H_ 5 #ifndef WEBKIT_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_H_
6 #define WEBKIT_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_H_ 6 #define WEBKIT_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 FileSystemContext* context) const OVERRIDE; 59 FileSystemContext* context) const OVERRIDE;
60 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; 60 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE;
61 61
62 // Returns an origin enumerator of this backend. 62 // Returns an origin enumerator of this backend.
63 // This method can only be called on the file thread. 63 // This method can only be called on the file thread.
64 SandboxFileSystemBackendDelegate::OriginEnumerator* CreateOriginEnumerator(); 64 SandboxFileSystemBackendDelegate::OriginEnumerator* CreateOriginEnumerator();
65 65
66 void set_enable_temporary_file_system_in_incognito(bool enable) { 66 void set_enable_temporary_file_system_in_incognito(bool enable) {
67 enable_temporary_file_system_in_incognito_ = enable; 67 enable_temporary_file_system_in_incognito_ = enable;
68 } 68 }
69 bool enable_temporary_file_system_in_incognito() const {
70 return enable_temporary_file_system_in_incognito_;
71 }
72
69 73
70 private: 74 private:
71 SandboxFileSystemBackendDelegate* delegate_; // Not owned. 75 SandboxFileSystemBackendDelegate* delegate_; // Not owned.
72 76
73 bool enable_temporary_file_system_in_incognito_; 77 bool enable_temporary_file_system_in_incognito_;
74 78
75 DISALLOW_COPY_AND_ASSIGN(SandboxFileSystemBackend); 79 DISALLOW_COPY_AND_ASSIGN(SandboxFileSystemBackend);
76 }; 80 };
77 81
78 } // namespace fileapi 82 } // namespace fileapi
79 83
80 #endif // WEBKIT_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_H_ 84 #endif // WEBKIT_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_H_
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/mock_file_system_context.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698