| 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 STORAGE_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_H_ | 5 #ifndef STORAGE_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_H_ |
| 6 #define STORAGE_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_H_ | 6 #define STORAGE_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader( | 52 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader( |
| 53 const FileSystemURL& url, | 53 const FileSystemURL& url, |
| 54 int64 offset, | 54 int64 offset, |
| 55 const base::Time& expected_modification_time, | 55 const base::Time& expected_modification_time, |
| 56 FileSystemContext* context) const OVERRIDE; | 56 FileSystemContext* context) const OVERRIDE; |
| 57 virtual scoped_ptr<FileStreamWriter> CreateFileStreamWriter( | 57 virtual scoped_ptr<FileStreamWriter> CreateFileStreamWriter( |
| 58 const FileSystemURL& url, | 58 const FileSystemURL& url, |
| 59 int64 offset, | 59 int64 offset, |
| 60 FileSystemContext* context) const OVERRIDE; | 60 FileSystemContext* context) const OVERRIDE; |
| 61 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; | 61 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; |
| 62 virtual const UpdateObserverList* GetUpdateObservers( |
| 63 FileSystemType type) const OVERRIDE; |
| 64 virtual const ChangeObserverList* GetChangeObservers( |
| 65 FileSystemType type) const OVERRIDE; |
| 66 virtual const AccessObserverList* GetAccessObservers( |
| 67 FileSystemType type) const OVERRIDE; |
| 62 | 68 |
| 63 // Returns an origin enumerator of this backend. | 69 // Returns an origin enumerator of this backend. |
| 64 // This method can only be called on the file thread. | 70 // This method can only be called on the file thread. |
| 65 SandboxFileSystemBackendDelegate::OriginEnumerator* CreateOriginEnumerator(); | 71 SandboxFileSystemBackendDelegate::OriginEnumerator* CreateOriginEnumerator(); |
| 66 | 72 |
| 67 void set_enable_temporary_file_system_in_incognito(bool enable) { | 73 void set_enable_temporary_file_system_in_incognito(bool enable) { |
| 68 enable_temporary_file_system_in_incognito_ = enable; | 74 enable_temporary_file_system_in_incognito_ = enable; |
| 69 } | 75 } |
| 70 bool enable_temporary_file_system_in_incognito() const { | 76 bool enable_temporary_file_system_in_incognito() const { |
| 71 return enable_temporary_file_system_in_incognito_; | 77 return enable_temporary_file_system_in_incognito_; |
| 72 } | 78 } |
| 73 | 79 |
| 74 | 80 |
| 75 private: | 81 private: |
| 76 SandboxFileSystemBackendDelegate* delegate_; // Not owned. | 82 SandboxFileSystemBackendDelegate* delegate_; // Not owned. |
| 77 | 83 |
| 78 bool enable_temporary_file_system_in_incognito_; | 84 bool enable_temporary_file_system_in_incognito_; |
| 79 | 85 |
| 80 DISALLOW_COPY_AND_ASSIGN(SandboxFileSystemBackend); | 86 DISALLOW_COPY_AND_ASSIGN(SandboxFileSystemBackend); |
| 81 }; | 87 }; |
| 82 | 88 |
| 83 } // namespace storage | 89 } // namespace storage |
| 84 | 90 |
| 85 #endif // STORAGE_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_H_ | 91 #endif // STORAGE_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_H_ |
| OLD | NEW |