| 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 | 194 |
| 195 // Requests that the backend forward to the fronent any protocol events in | 195 // Requests that the backend forward to the fronent any protocol events in |
| 196 // its buffer and begin forwarding automatically from now on. Repeated calls | 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 | 197 // to this function may result in the same events being emitted several |
| 198 // times. | 198 // times. |
| 199 virtual void RequestBufferedProtocolEventsAndEnableForwarding() = 0; | 199 virtual void RequestBufferedProtocolEventsAndEnableForwarding() = 0; |
| 200 | 200 |
| 201 // Disables protocol event forwarding. | 201 // Disables protocol event forwarding. |
| 202 virtual void DisableProtocolEventForwarding() = 0; | 202 virtual void DisableProtocolEventForwarding() = 0; |
| 203 | 203 |
| 204 // Returns a ListValue representing all nodes for the specified types through |
| 205 // |callback| on this thread. |
| 206 virtual void GetAllNodesForTypes( |
| 207 syncer::ModelTypeSet types, |
| 208 base::Callback<void(const std::vector<syncer::ModelType>&, |
| 209 ScopedVector<base::ListValue>)> type) = 0; |
| 210 |
| 204 virtual base::MessageLoop* GetSyncLoopForTesting() = 0; | 211 virtual base::MessageLoop* GetSyncLoopForTesting() = 0; |
| 205 | 212 |
| 206 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); | 213 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); |
| 207 }; | 214 }; |
| 208 | 215 |
| 209 } // namespace browser_sync | 216 } // namespace browser_sync |
| 210 | 217 |
| 211 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 218 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
| OLD | NEW |