| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_DELEGATE_H_ | 5 #ifndef WEBKIT_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_DELEGATE_H_ |
| 6 #define WEBKIT_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_DELEGATE_H_ | 6 #define WEBKIT_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <utility> | 11 #include <utility> |
| 12 | 12 |
| 13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
| 14 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
| 15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
| 18 #include "base/threading/thread_checker.h" | 18 #include "base/threading/thread_checker.h" |
| 19 #include "base/time/time.h" | 19 #include "base/time/time.h" |
| 20 #include "webkit/browser/fileapi/file_system_backend.h" | 20 #include "webkit/browser/fileapi/file_system_backend.h" |
| 21 #include "webkit/browser/fileapi/file_system_options.h" | 21 #include "webkit/browser/fileapi/file_system_options.h" |
| 22 #include "webkit/browser/fileapi/file_system_quota_util.h" | 22 #include "webkit/browser/fileapi/file_system_quota_util.h" |
| 23 #include "webkit/browser/webkit_storage_browser_export.h" | 23 #include "webkit/browser/storage_export.h" |
| 24 | 24 |
| 25 namespace base { | 25 namespace base { |
| 26 class SequencedTaskRunner; | 26 class SequencedTaskRunner; |
| 27 } | 27 } |
| 28 | 28 |
| 29 namespace content { | 29 namespace content { |
| 30 class SandboxFileSystemBackendDelegateTest; | 30 class SandboxFileSystemBackendDelegateTest; |
| 31 class SandboxFileSystemTestHelper; | 31 class SandboxFileSystemTestHelper; |
| 32 } | 32 } |
| 33 | 33 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 48 class FileSystemOperationContext; | 48 class FileSystemOperationContext; |
| 49 class FileSystemURL; | 49 class FileSystemURL; |
| 50 class FileSystemUsageCache; | 50 class FileSystemUsageCache; |
| 51 class ObfuscatedFileUtil; | 51 class ObfuscatedFileUtil; |
| 52 class QuotaReservationManager; | 52 class QuotaReservationManager; |
| 53 class SandboxFileSystemBackend; | 53 class SandboxFileSystemBackend; |
| 54 class SandboxQuotaObserver; | 54 class SandboxQuotaObserver; |
| 55 | 55 |
| 56 // Delegate implementation of the some methods in Sandbox/SyncFileSystemBackend. | 56 // Delegate implementation of the some methods in Sandbox/SyncFileSystemBackend. |
| 57 // An instance of this class is created and owned by FileSystemContext. | 57 // An instance of this class is created and owned by FileSystemContext. |
| 58 class WEBKIT_STORAGE_BROWSER_EXPORT SandboxFileSystemBackendDelegate | 58 class STORAGE_EXPORT SandboxFileSystemBackendDelegate |
| 59 : public FileSystemQuotaUtil { | 59 : public FileSystemQuotaUtil { |
| 60 public: | 60 public: |
| 61 typedef FileSystemBackend::OpenFileSystemCallback OpenFileSystemCallback; | 61 typedef FileSystemBackend::OpenFileSystemCallback OpenFileSystemCallback; |
| 62 | 62 |
| 63 // The FileSystem directory name. | 63 // The FileSystem directory name. |
| 64 static const base::FilePath::CharType kFileSystemDirectory[]; | 64 static const base::FilePath::CharType kFileSystemDirectory[]; |
| 65 | 65 |
| 66 // Origin enumerator interface. | 66 // Origin enumerator interface. |
| 67 // An instance of this interface is assumed to be called on the file thread. | 67 // An instance of this interface is assumed to be called on the file thread. |
| 68 class OriginEnumerator { | 68 class OriginEnumerator { |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 base::Time next_release_time_for_open_filesystem_stat_; | 251 base::Time next_release_time_for_open_filesystem_stat_; |
| 252 | 252 |
| 253 base::WeakPtrFactory<SandboxFileSystemBackendDelegate> weak_factory_; | 253 base::WeakPtrFactory<SandboxFileSystemBackendDelegate> weak_factory_; |
| 254 | 254 |
| 255 DISALLOW_COPY_AND_ASSIGN(SandboxFileSystemBackendDelegate); | 255 DISALLOW_COPY_AND_ASSIGN(SandboxFileSystemBackendDelegate); |
| 256 }; | 256 }; |
| 257 | 257 |
| 258 } // namespace storage | 258 } // namespace storage |
| 259 | 259 |
| 260 #endif // WEBKIT_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_DELEGATE_H_ | 260 #endif // WEBKIT_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_DELEGATE_H_ |
| OLD | NEW |