| 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 // using a token previously received. | 183 // using a token previously received. |
| 184 virtual bool IsCryptographerReady( | 184 virtual bool IsCryptographerReady( |
| 185 const syncer::BaseTransaction* trans) const = 0; | 185 const syncer::BaseTransaction* trans) const = 0; |
| 186 | 186 |
| 187 virtual void GetModelSafeRoutingInfo( | 187 virtual void GetModelSafeRoutingInfo( |
| 188 syncer::ModelSafeRoutingInfo* out) const = 0; | 188 syncer::ModelSafeRoutingInfo* out) const = 0; |
| 189 | 189 |
| 190 // Fetches the DeviceInfo tracker. | 190 // Fetches the DeviceInfo tracker. |
| 191 virtual SyncedDeviceTracker* GetSyncedDeviceTracker() const = 0; | 191 virtual SyncedDeviceTracker* GetSyncedDeviceTracker() const = 0; |
| 192 | 192 |
| 193 // Send a message to the sync thread to persist the Directory to disk. |
| 194 virtual void FlushDirectory() const = 0; |
| 195 |
| 193 // Requests that the backend forward to the fronent any protocol events in | 196 // Requests that the backend forward to the fronent any protocol events in |
| 194 // its buffer and begin forwarding automatically from now on. Repeated calls | 197 // its buffer and begin forwarding automatically from now on. Repeated calls |
| 195 // to this function may result in the same events being emitted several | 198 // to this function may result in the same events being emitted several |
| 196 // times. | 199 // times. |
| 197 virtual void RequestBufferedProtocolEventsAndEnableForwarding() = 0; | 200 virtual void RequestBufferedProtocolEventsAndEnableForwarding() = 0; |
| 198 | 201 |
| 199 // Disables protocol event forwarding. | 202 // Disables protocol event forwarding. |
| 200 virtual void DisableProtocolEventForwarding() = 0; | 203 virtual void DisableProtocolEventForwarding() = 0; |
| 201 | 204 |
| 202 // Returns a ListValue representing all nodes for the specified types through | 205 // Returns a ListValue representing all nodes for the specified types through |
| (...skipping 12 matching lines...) Expand all Loading... |
| 215 virtual void DisableDirectoryTypeDebugInfoForwarding() = 0; | 218 virtual void DisableDirectoryTypeDebugInfoForwarding() = 0; |
| 216 | 219 |
| 217 virtual base::MessageLoop* GetSyncLoopForTesting() = 0; | 220 virtual base::MessageLoop* GetSyncLoopForTesting() = 0; |
| 218 | 221 |
| 219 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); | 222 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); |
| 220 }; | 223 }; |
| 221 | 224 |
| 222 } // namespace browser_sync | 225 } // namespace browser_sync |
| 223 | 226 |
| 224 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 227 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
| OLD | NEW |