| 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_SYNCABLE_SYNCABLE_FILE_SYSTEM_OPERATION_H_ | 5 #ifndef WEBKIT_BROWSER_FILEAPI_SYNCABLE_SYNCABLE_FILE_SYSTEM_OPERATION_H_ |
| 6 #define WEBKIT_BROWSER_FILEAPI_SYNCABLE_SYNCABLE_FILE_SYSTEM_OPERATION_H_ | 6 #define WEBKIT_BROWSER_FILEAPI_SYNCABLE_SYNCABLE_FILE_SYSTEM_OPERATION_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "base/threading/non_thread_safe.h" | 14 #include "base/threading/non_thread_safe.h" |
| 15 #include "webkit/browser/fileapi/local_file_system_operation.h" | 15 #include "webkit/browser/fileapi/local_file_system_operation.h" |
| 16 #include "webkit/storage/webkit_storage_export.h" | 16 #include "webkit/browser/webkit_storage_browser_export.h" |
| 17 | 17 |
| 18 namespace fileapi { | 18 namespace fileapi { |
| 19 class FileSystemContext; | 19 class FileSystemContext; |
| 20 class FileSystemOperationContext; | 20 class FileSystemOperationContext; |
| 21 class SandboxMountPointProvider; | 21 class SandboxMountPointProvider; |
| 22 } | 22 } |
| 23 | 23 |
| 24 namespace sync_file_system { | 24 namespace sync_file_system { |
| 25 | 25 |
| 26 class SyncableFileOperationRunner; | 26 class SyncableFileOperationRunner; |
| 27 | 27 |
| 28 // A wrapper class of LocalFileSystemOperation for syncable file system. | 28 // A wrapper class of LocalFileSystemOperation for syncable file system. |
| 29 class WEBKIT_STORAGE_EXPORT SyncableFileSystemOperation | 29 class WEBKIT_STORAGE_BROWSER_EXPORT SyncableFileSystemOperation |
| 30 : public fileapi::LocalFileSystemOperation, | 30 : public fileapi::LocalFileSystemOperation, |
| 31 public base::SupportsWeakPtr<SyncableFileSystemOperation>, | 31 public base::SupportsWeakPtr<SyncableFileSystemOperation>, |
| 32 public base::NonThreadSafe { | 32 public base::NonThreadSafe { |
| 33 public: | 33 public: |
| 34 virtual ~SyncableFileSystemOperation(); | 34 virtual ~SyncableFileSystemOperation(); |
| 35 | 35 |
| 36 // fileapi::FileSystemOperation overrides. | 36 // fileapi::FileSystemOperation overrides. |
| 37 virtual void CreateFile(const fileapi::FileSystemURL& url, | 37 virtual void CreateFile(const fileapi::FileSystemURL& url, |
| 38 bool exclusive, | 38 bool exclusive, |
| 39 const StatusCallback& callback) OVERRIDE; | 39 const StatusCallback& callback) OVERRIDE; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 StatusCallback completion_callback_; | 114 StatusCallback completion_callback_; |
| 115 | 115 |
| 116 bool is_directory_operation_enabled_; | 116 bool is_directory_operation_enabled_; |
| 117 | 117 |
| 118 DISALLOW_COPY_AND_ASSIGN(SyncableFileSystemOperation); | 118 DISALLOW_COPY_AND_ASSIGN(SyncableFileSystemOperation); |
| 119 }; | 119 }; |
| 120 | 120 |
| 121 } // namespace sync_file_system | 121 } // namespace sync_file_system |
| 122 | 122 |
| 123 #endif // WEBKIT_BROWSER_FILEAPI_SYNCABLE_SYNCABLE_FILE_SYSTEM_OPERATION_H_ | 123 #endif // WEBKIT_BROWSER_FILEAPI_SYNCABLE_SYNCABLE_FILE_SYSTEM_OPERATION_H_ |
| OLD | NEW |