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 CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_FILE_SYNC_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_FILE_SYNC_SERVICE_H_ |
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_FILE_SYNC_SERVICE_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_FILE_SYNC_SERVICE_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 static base::FilePath TitleToPath(const std::string& title); | 143 static base::FilePath TitleToPath(const std::string& title); |
144 static DriveMetadata::ResourceType SyncFileTypeToDriveMetadataResourceType( | 144 static DriveMetadata::ResourceType SyncFileTypeToDriveMetadataResourceType( |
145 SyncFileType file_type); | 145 SyncFileType file_type); |
146 | 146 |
147 private: | 147 private: |
148 friend class DriveFileSyncTaskManager; | 148 friend class DriveFileSyncTaskManager; |
149 friend class drive::LocalChangeProcessorDelegate; | 149 friend class drive::LocalChangeProcessorDelegate; |
150 | 150 |
151 friend class DriveFileSyncServiceMockTest; | 151 friend class DriveFileSyncServiceMockTest; |
152 friend class DriveFileSyncServiceSyncTest; | 152 friend class DriveFileSyncServiceSyncTest; |
| 153 friend class DriveFileSyncServiceTest; |
153 struct ApplyLocalChangeParam; | 154 struct ApplyLocalChangeParam; |
154 struct ProcessRemoteChangeParam; | 155 struct ProcessRemoteChangeParam; |
155 | 156 |
156 typedef base::Callback<void(const base::Time& time, | 157 typedef base::Callback<void(const base::Time& time, |
157 SyncFileType remote_file_type, | 158 SyncFileType remote_file_type, |
158 SyncStatusCode status)> UpdatedTimeCallback; | 159 SyncStatusCode status)> UpdatedTimeCallback; |
159 typedef base::Callback< | 160 typedef base::Callback< |
160 void(SyncStatusCode status, | 161 void(SyncStatusCode status, |
161 const std::string& resource_id)> ResourceIdCallback; | 162 const std::string& resource_id)> ResourceIdCallback; |
162 | 163 |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 RemoteChangeProcessor* remote_change_processor_; | 424 RemoteChangeProcessor* remote_change_processor_; |
424 | 425 |
425 ConflictResolutionPolicy conflict_resolution_; | 426 ConflictResolutionPolicy conflict_resolution_; |
426 | 427 |
427 DISALLOW_COPY_AND_ASSIGN(DriveFileSyncService); | 428 DISALLOW_COPY_AND_ASSIGN(DriveFileSyncService); |
428 }; | 429 }; |
429 | 430 |
430 } // namespace sync_file_system | 431 } // namespace sync_file_system |
431 | 432 |
432 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_FILE_SYNC_SERVICE_H_ | 433 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_FILE_SYNC_SERVICE_H_ |
OLD | NEW |