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 CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_SYNCABLE_FILE_SYSTEM_OPERATION_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_SYNCABLE_FILE_SYSTEM_OPERATION_H_ |
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_SYNCABLE_FILE_SYSTEM_OPERATION_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_SYNCABLE_FILE_SYSTEM_OPERATION_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/callback.h" | 13 #include "base/callback.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
17 #include "base/threading/non_thread_safe.h" | |
18 #include "storage/browser/fileapi/file_system_operation.h" | 17 #include "storage/browser/fileapi/file_system_operation.h" |
19 #include "storage/browser/fileapi/file_system_url.h" | 18 #include "storage/browser/fileapi/file_system_url.h" |
20 | 19 |
21 namespace storage { | 20 namespace storage { |
22 class FileSystemContext; | 21 class FileSystemContext; |
23 class FileSystemOperationContext; | 22 class FileSystemOperationContext; |
24 } | 23 } |
25 | 24 |
26 namespace sync_file_system { | 25 namespace sync_file_system { |
27 | 26 |
28 class SyncableFileOperationRunner; | 27 class SyncableFileOperationRunner; |
29 | 28 |
30 // A wrapper class of FileSystemOperation for syncable file system. | 29 // A wrapper class of FileSystemOperation for syncable file system. |
31 class SyncableFileSystemOperation | 30 class SyncableFileSystemOperation |
32 : public NON_EXPORTED_BASE(storage::FileSystemOperation), | 31 : public NON_EXPORTED_BASE(storage::FileSystemOperation) { |
33 public base::NonThreadSafe { | |
34 public: | 32 public: |
35 ~SyncableFileSystemOperation() override; | 33 ~SyncableFileSystemOperation() override; |
36 | 34 |
37 // storage::FileSystemOperation overrides. | 35 // storage::FileSystemOperation overrides. |
38 void CreateFile(const storage::FileSystemURL& url, | 36 void CreateFile(const storage::FileSystemURL& url, |
39 bool exclusive, | 37 bool exclusive, |
40 const StatusCallback& callback) override; | 38 const StatusCallback& callback) override; |
41 void CreateDirectory(const storage::FileSystemURL& url, | 39 void CreateDirectory(const storage::FileSystemURL& url, |
42 bool exclusive, | 40 bool exclusive, |
43 bool recursive, | 41 bool recursive, |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 StatusCallback completion_callback_; | 127 StatusCallback completion_callback_; |
130 | 128 |
131 base::WeakPtrFactory<SyncableFileSystemOperation> weak_factory_; | 129 base::WeakPtrFactory<SyncableFileSystemOperation> weak_factory_; |
132 | 130 |
133 DISALLOW_COPY_AND_ASSIGN(SyncableFileSystemOperation); | 131 DISALLOW_COPY_AND_ASSIGN(SyncableFileSystemOperation); |
134 }; | 132 }; |
135 | 133 |
136 } // namespace sync_file_system | 134 } // namespace sync_file_system |
137 | 135 |
138 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_SYNCABLE_FILE_SYSTEM_OPERATION_
H_ | 136 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_SYNCABLE_FILE_SYSTEM_OPERATION_
H_ |
OLD | NEW |