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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 virtual void GetRemoteFileMetadata( | 75 virtual void GetRemoteFileMetadata( |
76 const fileapi::FileSystemURL& url, | 76 const fileapi::FileSystemURL& url, |
77 const fileapi::SyncFileMetadataCallback& callback) OVERRIDE; | 77 const fileapi::SyncFileMetadataCallback& callback) OVERRIDE; |
78 virtual RemoteServiceState GetCurrentState() const OVERRIDE; | 78 virtual RemoteServiceState GetCurrentState() const OVERRIDE; |
79 virtual const char* GetServiceName() const OVERRIDE; | 79 virtual const char* GetServiceName() const OVERRIDE; |
80 | 80 |
81 // LocalChangeProcessor overrides. | 81 // LocalChangeProcessor overrides. |
82 virtual void ApplyLocalChange( | 82 virtual void ApplyLocalChange( |
83 const fileapi::FileChange& change, | 83 const fileapi::FileChange& change, |
84 const FilePath& local_file_path, | 84 const FilePath& local_file_path, |
85 const fileapi::SyncFileMetadata& local_file_metadata, | |
86 const fileapi::FileSystemURL& url, | 85 const fileapi::FileSystemURL& url, |
87 const fileapi::SyncStatusCallback& callback) OVERRIDE; | 86 const fileapi::SyncStatusCallback& callback) OVERRIDE; |
88 | 87 |
89 // DriveFileSyncClientObserver overrides. | 88 // DriveFileSyncClientObserver overrides. |
90 virtual void OnAuthenticated() OVERRIDE; | 89 virtual void OnAuthenticated() OVERRIDE; |
91 virtual void OnNetworkConnected() OVERRIDE; | 90 virtual void OnNetworkConnected() OVERRIDE; |
92 | 91 |
93 private: | 92 private: |
94 friend class DriveFileSyncServiceTest; | 93 friend class DriveFileSyncServiceTest; |
95 class TaskToken; | 94 class TaskToken; |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 // Use WeakPtrFactory instead of SupportsWeakPtr to revoke the weak pointer | 366 // Use WeakPtrFactory instead of SupportsWeakPtr to revoke the weak pointer |
368 // in |token_|. | 367 // in |token_|. |
369 base::WeakPtrFactory<DriveFileSyncService> weak_factory_; | 368 base::WeakPtrFactory<DriveFileSyncService> weak_factory_; |
370 | 369 |
371 DISALLOW_COPY_AND_ASSIGN(DriveFileSyncService); | 370 DISALLOW_COPY_AND_ASSIGN(DriveFileSyncService); |
372 }; | 371 }; |
373 | 372 |
374 } // namespace sync_file_system | 373 } // namespace sync_file_system |
375 | 374 |
376 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_FILE_SYNC_SERVICE_H_ | 375 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_FILE_SYNC_SERVICE_H_ |
OLD | NEW |