| 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_GLUE_SYNC_BACKEND_HOST_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
| 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 // using a token previously received. | 185 // using a token previously received. |
| 186 virtual bool IsCryptographerReady( | 186 virtual bool IsCryptographerReady( |
| 187 const syncer::BaseTransaction* trans) const = 0; | 187 const syncer::BaseTransaction* trans) const = 0; |
| 188 | 188 |
| 189 virtual void GetModelSafeRoutingInfo( | 189 virtual void GetModelSafeRoutingInfo( |
| 190 syncer::ModelSafeRoutingInfo* out) const = 0; | 190 syncer::ModelSafeRoutingInfo* out) const = 0; |
| 191 | 191 |
| 192 // Fetches the DeviceInfo tracker. | 192 // Fetches the DeviceInfo tracker. |
| 193 virtual SyncedDeviceTracker* GetSyncedDeviceTracker() const = 0; | 193 virtual SyncedDeviceTracker* GetSyncedDeviceTracker() const = 0; |
| 194 | 194 |
| 195 // Sets whether or not the frontend will be notified of network events. | 195 // Requests that the backend forward to the fronent any protocol events in |
| 196 virtual void SetForwardProtocolEvents(bool forward) = 0; | 196 // its buffer and begin forwarding automatically from now on. Repeated calls |
| 197 // to this function may result in the same events being emitted several |
| 198 // times. |
| 199 virtual void RequestBufferedProtocolEventsAndEnableForwarding() = 0; |
| 200 |
| 201 // Disables protocol event forwarding. |
| 202 virtual void DisableProtocolEventForwarding() = 0; |
| 197 | 203 |
| 198 virtual base::MessageLoop* GetSyncLoopForTesting() = 0; | 204 virtual base::MessageLoop* GetSyncLoopForTesting() = 0; |
| 199 | 205 |
| 200 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); | 206 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); |
| 201 }; | 207 }; |
| 202 | 208 |
| 203 } // namespace browser_sync | 209 } // namespace browser_sync |
| 204 | 210 |
| 205 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 211 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
| OLD | NEW |