| 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 // Set the base request context to use when making HTTP calls. | 202 // Set the base request context to use when making HTTP calls. |
| 203 // This method will add a reference to the context to persist it | 203 // This method will add a reference to the context to persist it |
| 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 SendBufferedProtocolEventsAndEnableForwarding(); |
| 213 void DisableProtocolEventForwarding(); |
| 213 | 214 |
| 214 // Delete the sync data folder to cleanup backend data. Happens the first | 215 // 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 | 216 // 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. | 217 // sync databases), as well as shutdown when you're no longer syncing. |
| 217 void DeleteSyncDataFolder(); | 218 void DeleteSyncDataFolder(); |
| 218 | 219 |
| 219 // We expose this member because it's required in the construction of the | 220 // We expose this member because it's required in the construction of the |
| 220 // HttpBridgeFactory. | 221 // HttpBridgeFactory. |
| 221 syncer::CancelationSignal* GetRequestContextCancelationSignal() { | 222 syncer::CancelationSignal* GetRequestContextCancelationSignal() { |
| 222 return &release_request_context_signal_; | 223 return &release_request_context_signal_; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 bool forward_protocol_events_; | 293 bool forward_protocol_events_; |
| 293 | 294 |
| 294 base::WeakPtrFactory<SyncBackendHostCore> weak_ptr_factory_; | 295 base::WeakPtrFactory<SyncBackendHostCore> weak_ptr_factory_; |
| 295 | 296 |
| 296 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostCore); | 297 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostCore); |
| 297 }; | 298 }; |
| 298 | 299 |
| 299 } // namespace browser_sync | 300 } // namespace browser_sync |
| 300 | 301 |
| 301 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_CORE_H_ | 302 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_CORE_H_ |
| OLD | NEW |