| 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_GLUE_SYNC_BACKEND_HOST_CORE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_CORE_H_ |
| 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_CORE_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_CORE_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 | 9 |
| 10 #include "base/timer/timer.h" | 10 #include "base/timer/timer.h" |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 | 205 |
| 206 syncer::SyncManager* sync_manager() { return sync_manager_.get(); } | 206 syncer::SyncManager* sync_manager() { return sync_manager_.get(); } |
| 207 | 207 |
| 208 SyncedDeviceTracker* synced_device_tracker() { | 208 SyncedDeviceTracker* synced_device_tracker() { |
| 209 return synced_device_tracker_.get(); | 209 return synced_device_tracker_.get(); |
| 210 } | 210 } |
| 211 | 211 |
| 212 void SendBufferedProtocolEventsAndEnableForwarding(); | 212 void SendBufferedProtocolEventsAndEnableForwarding(); |
| 213 void DisableProtocolEventForwarding(); | 213 void DisableProtocolEventForwarding(); |
| 214 | 214 |
| 215 // Returns handle to sync functionality used by non-blocking sync types. |
| 216 // Should only be called when the backend is initialized. |
| 217 syncer::SyncCoreProxy GetSyncCoreProxy(); |
| 218 |
| 215 // Delete the sync data folder to cleanup backend data. Happens the first | 219 // Delete the sync data folder to cleanup backend data. Happens the first |
| 216 // time sync is enabled for a user (to prevent accidentally reusing old | 220 // time sync is enabled for a user (to prevent accidentally reusing old |
| 217 // sync databases), as well as shutdown when you're no longer syncing. | 221 // sync databases), as well as shutdown when you're no longer syncing. |
| 218 void DeleteSyncDataFolder(); | 222 void DeleteSyncDataFolder(); |
| 219 | 223 |
| 220 // We expose this member because it's required in the construction of the | 224 // We expose this member because it's required in the construction of the |
| 221 // HttpBridgeFactory. | 225 // HttpBridgeFactory. |
| 222 syncer::CancelationSignal* GetRequestContextCancelationSignal() { | 226 syncer::CancelationSignal* GetRequestContextCancelationSignal() { |
| 223 return &release_request_context_signal_; | 227 return &release_request_context_signal_; |
| 224 } | 228 } |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 bool forward_protocol_events_; | 297 bool forward_protocol_events_; |
| 294 | 298 |
| 295 base::WeakPtrFactory<SyncBackendHostCore> weak_ptr_factory_; | 299 base::WeakPtrFactory<SyncBackendHostCore> weak_ptr_factory_; |
| 296 | 300 |
| 297 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostCore); | 301 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostCore); |
| 298 }; | 302 }; |
| 299 | 303 |
| 300 } // namespace browser_sync | 304 } // namespace browser_sync |
| 301 | 305 |
| 302 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_CORE_H_ | 306 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_CORE_H_ |
| OLD | NEW |