OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_BACKEND_SYNC_WORKER_INTERFACE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_WORKER_INTERFACE_H_ |
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_WORKER_INTERFACE_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_WORKER_INTERFACE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 const FileChange& local_change, | 73 const FileChange& local_change, |
74 const base::FilePath& local_path, | 74 const base::FilePath& local_path, |
75 const SyncFileMetadata& local_metadata, | 75 const SyncFileMetadata& local_metadata, |
76 const fileapi::FileSystemURL& url, | 76 const fileapi::FileSystemURL& url, |
77 const SyncStatusCallback& callback) = 0; | 77 const SyncStatusCallback& callback) = 0; |
78 | 78 |
79 // See drive::DriveNotificationObserver for the details. | 79 // See drive::DriveNotificationObserver for the details. |
80 virtual void OnNotificationReceived() = 0; | 80 virtual void OnNotificationReceived() = 0; |
81 | 81 |
82 // See drive::DriveServiceObserver for the details. | 82 // See drive::DriveServiceObserver for the details. |
83 virtual void OnReadyToSendRequests(const std::string& account_id) = 0; | 83 virtual void OnReadyToSendRequests() = 0; |
84 virtual void OnRefreshTokenInvalid() = 0; | 84 virtual void OnRefreshTokenInvalid() = 0; |
85 | 85 |
86 // See net::NetworkChangeNotifier::NetworkChangeObserver for the details. | 86 // See net::NetworkChangeNotifier::NetworkChangeObserver for the details. |
87 virtual void OnNetworkChanged( | 87 virtual void OnNetworkChanged( |
88 net::NetworkChangeNotifier::ConnectionType type) = 0; | 88 net::NetworkChangeNotifier::ConnectionType type) = 0; |
89 | 89 |
90 virtual drive::DriveServiceInterface* GetDriveService() = 0; | 90 virtual drive::DriveServiceInterface* GetDriveService() = 0; |
91 virtual drive::DriveUploaderInterface* GetDriveUploader() = 0; | 91 virtual drive::DriveUploaderInterface* GetDriveUploader() = 0; |
92 virtual MetadataDatabase* GetMetadataDatabase() = 0; | 92 virtual MetadataDatabase* GetMetadataDatabase() = 0; |
93 virtual SyncTaskManager* GetSyncTaskManager() = 0; | 93 virtual SyncTaskManager* GetSyncTaskManager() = 0; |
94 | 94 |
95 virtual void DetachFromSequence() = 0; | 95 virtual void DetachFromSequence() = 0; |
96 | 96 |
97 private: | 97 private: |
98 friend class SyncEngineTest; | 98 friend class SyncEngineTest; |
99 | 99 |
100 // TODO(peria): Remove this interface after making FakeSyncWorker class. | 100 // TODO(peria): Remove this interface after making FakeSyncWorker class. |
101 virtual void SetHasRefreshToken(bool has_refresh_token) = 0; | 101 virtual void SetHasRefreshToken(bool has_refresh_token) = 0; |
102 }; | 102 }; |
103 | 103 |
104 } // namespace drive_backend | 104 } // namespace drive_backend |
105 } // namespace sync_file_system | 105 } // namespace sync_file_system |
106 | 106 |
107 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_WORKER_INTERFACE_H
_ | 107 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_WORKER_INTERFACE_H
_ |
OLD | NEW |