OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |