Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(468)

Side by Side Diff: components/sync/driver/glue/sync_backend_host.h

Issue 2276943006: [USS] Move GetAllNodes from backend to controller (Closed)
Patch Set: remove task runnner Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_H_
6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_H_ 6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 196
197 // Requests that the backend forward to the fronent any protocol events in 197 // Requests that the backend forward to the fronent any protocol events in
198 // its buffer and begin forwarding automatically from now on. Repeated calls 198 // its buffer and begin forwarding automatically from now on. Repeated calls
199 // to this function may result in the same events being emitted several 199 // to this function may result in the same events being emitted several
200 // times. 200 // times.
201 virtual void RequestBufferedProtocolEventsAndEnableForwarding() = 0; 201 virtual void RequestBufferedProtocolEventsAndEnableForwarding() = 0;
202 202
203 // Disables protocol event forwarding. 203 // Disables protocol event forwarding.
204 virtual void DisableProtocolEventForwarding() = 0; 204 virtual void DisableProtocolEventForwarding() = 0;
205 205
206 // Returns a ListValue representing all nodes for the specified types through
207 // |callback| on this thread.
208 virtual void GetAllNodesForTypes(
209 syncer::ModelTypeSet types,
210 base::Callback<void(const std::vector<syncer::ModelType>&,
211 ScopedVector<base::ListValue>)> type) = 0;
212
213 // Enables the sending of directory type debug counters. Also, for every 206 // Enables the sending of directory type debug counters. Also, for every
214 // time it is called, it makes an explicit request that updates to an update 207 // time it is called, it makes an explicit request that updates to an update
215 // for all counters be emitted. 208 // for all counters be emitted.
216 virtual void EnableDirectoryTypeDebugInfoForwarding() = 0; 209 virtual void EnableDirectoryTypeDebugInfoForwarding() = 0;
217 210
218 // Disables the sending of directory type debug counters. 211 // Disables the sending of directory type debug counters.
219 virtual void DisableDirectoryTypeDebugInfoForwarding() = 0; 212 virtual void DisableDirectoryTypeDebugInfoForwarding() = 0;
220 213
221 virtual base::MessageLoop* GetSyncLoopForTesting() = 0; 214 virtual base::MessageLoop* GetSyncLoopForTesting() = 0;
222 215
223 // Triggers sync cycle to update |types|. 216 // Triggers sync cycle to update |types|.
224 virtual void RefreshTypesForTest(syncer::ModelTypeSet types) = 0; 217 virtual void RefreshTypesForTest(syncer::ModelTypeSet types) = 0;
225 218
226 // See SyncManager::ClearServerData. 219 // See SyncManager::ClearServerData.
227 virtual void ClearServerData( 220 virtual void ClearServerData(
228 const syncer::SyncManager::ClearServerDataCallback& callback) = 0; 221 const syncer::SyncManager::ClearServerDataCallback& callback) = 0;
229 222
230 // Notify the syncer that the cookie jar has changed. 223 // Notify the syncer that the cookie jar has changed.
231 // See SyncManager::OnCookieJarChanged. 224 // See SyncManager::OnCookieJarChanged.
232 virtual void OnCookieJarChanged(bool account_mismatch, bool empty_jar) = 0; 225 virtual void OnCookieJarChanged(bool account_mismatch, bool empty_jar) = 0;
233 226
234 private: 227 private:
235 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); 228 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost);
236 }; 229 };
237 230
238 } // namespace browser_sync 231 } // namespace browser_sync
239 232
240 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_H_ 233 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698