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_SYNC_FILE_SYSTEM_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_SERVICE_H_ |
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_SERVICE_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_SERVICE_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 | 118 |
119 void DidGetLocalChangeStatus(const fileapi::SyncFileStatusCallback& callback, | 119 void DidGetLocalChangeStatus(const fileapi::SyncFileStatusCallback& callback, |
120 bool has_pending_local_changes); | 120 bool has_pending_local_changes); |
121 | 121 |
122 void OnSyncEnabledForRemoteSync(); | 122 void OnSyncEnabledForRemoteSync(); |
123 | 123 |
124 // RemoteFileSyncService::Observer overrides. | 124 // RemoteFileSyncService::Observer overrides. |
125 virtual void OnLocalChangeAvailable(int64 pending_changes) OVERRIDE; | 125 virtual void OnLocalChangeAvailable(int64 pending_changes) OVERRIDE; |
126 | 126 |
127 // LocalFileSyncService::Observer overrides. | 127 // LocalFileSyncService::Observer overrides. |
128 virtual void OnRemoteChangeAvailable(int64 pending_changes) OVERRIDE; | 128 virtual void OnRemoteChangeQueueUpdated(int64 pending_changes) OVERRIDE; |
129 virtual void OnRemoteServiceStateUpdated( | 129 virtual void OnRemoteServiceStateUpdated( |
130 RemoteServiceState state, | 130 RemoteServiceState state, |
131 const std::string& description) OVERRIDE; | 131 const std::string& description) OVERRIDE; |
132 | 132 |
133 Profile* profile_; | 133 Profile* profile_; |
134 | 134 |
135 int64 pending_local_changes_; | 135 int64 pending_local_changes_; |
136 int64 pending_remote_changes_; | 136 int64 pending_remote_changes_; |
137 | 137 |
138 scoped_ptr<LocalFileSyncService> local_file_service_; | 138 scoped_ptr<LocalFileSyncService> local_file_service_; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 // ProfileKeyedServiceFactory overrides. | 178 // ProfileKeyedServiceFactory overrides. |
179 virtual ProfileKeyedService* BuildServiceInstanceFor( | 179 virtual ProfileKeyedService* BuildServiceInstanceFor( |
180 Profile* profile) const OVERRIDE; | 180 Profile* profile) const OVERRIDE; |
181 | 181 |
182 mutable scoped_ptr<RemoteFileSyncService> mock_remote_file_service_; | 182 mutable scoped_ptr<RemoteFileSyncService> mock_remote_file_service_; |
183 }; | 183 }; |
184 | 184 |
185 } // namespace sync_file_system | 185 } // namespace sync_file_system |
186 | 186 |
187 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_SERVICE_H_ | 187 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_SERVICE_H_ |
OLD | NEW |