| 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 // on the IO thread. Must be removed from IO thread. | 204 // on the IO thread. Must be removed from IO thread. |
| 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 SetForwardProtocolEvents(bool forward); | 212 void SetForwardProtocolEvents(bool forward); |
| 213 | 213 |
| 214 // Returns handle to sync functionality used by non-blocking sync types. |
| 215 // Should only be called when the backend is initialized. |
| 216 syncer::SyncCoreProxy GetSyncCoreProxy(); |
| 217 |
| 214 // Delete the sync data folder to cleanup backend data. Happens the first | 218 // Delete the sync data folder to cleanup backend data. Happens the first |
| 215 // time sync is enabled for a user (to prevent accidentally reusing old | 219 // time sync is enabled for a user (to prevent accidentally reusing old |
| 216 // sync databases), as well as shutdown when you're no longer syncing. | 220 // sync databases), as well as shutdown when you're no longer syncing. |
| 217 void DeleteSyncDataFolder(); | 221 void DeleteSyncDataFolder(); |
| 218 | 222 |
| 219 // We expose this member because it's required in the construction of the | 223 // We expose this member because it's required in the construction of the |
| 220 // HttpBridgeFactory. | 224 // HttpBridgeFactory. |
| 221 syncer::CancelationSignal* GetRequestContextCancelationSignal() { | 225 syncer::CancelationSignal* GetRequestContextCancelationSignal() { |
| 222 return &release_request_context_signal_; | 226 return &release_request_context_signal_; |
| 223 } | 227 } |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 bool forward_protocol_events_; | 296 bool forward_protocol_events_; |
| 293 | 297 |
| 294 base::WeakPtrFactory<SyncBackendHostCore> weak_ptr_factory_; | 298 base::WeakPtrFactory<SyncBackendHostCore> weak_ptr_factory_; |
| 295 | 299 |
| 296 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostCore); | 300 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostCore); |
| 297 }; | 301 }; |
| 298 | 302 |
| 299 } // namespace browser_sync | 303 } // namespace browser_sync |
| 300 | 304 |
| 301 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_CORE_H_ | 305 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_CORE_H_ |
| OLD | NEW |