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

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

Issue 2276943006: [USS] Move GetAllNodes from backend to controller (Closed)
Patch Set: update for Max 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 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 COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_
6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_ 6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 // time sync is enabled for a user (to prevent accidentally reusing old 236 // time sync is enabled for a user (to prevent accidentally reusing old
237 // sync databases), as well as shutdown when you're no longer syncing. 237 // sync databases), as well as shutdown when you're no longer syncing.
238 void DeleteSyncDataFolder(); 238 void DeleteSyncDataFolder();
239 239
240 // We expose this member because it's required in the construction of the 240 // We expose this member because it's required in the construction of the
241 // HttpBridgeFactory. 241 // HttpBridgeFactory.
242 syncer::CancelationSignal* GetRequestContextCancelationSignal() { 242 syncer::CancelationSignal* GetRequestContextCancelationSignal() {
243 return &release_request_context_signal_; 243 return &release_request_context_signal_;
244 } 244 }
245 245
246 void GetAllNodesForTypes(
247 syncer::ModelTypeSet types,
248 scoped_refptr<base::SequencedTaskRunner> task_runner,
249 base::Callback<void(const std::vector<syncer::ModelType>& type,
250 std::vector<std::unique_ptr<base::ListValue>>)>
251 callback);
252
253 // Tell the sync manager to persist its state by writing to disk. 246 // Tell the sync manager to persist its state by writing to disk.
254 // Called on the sync thread, both by a timer and, on Android, when the 247 // Called on the sync thread, both by a timer and, on Android, when the
255 // application is backgrounded. 248 // application is backgrounded.
256 void SaveChanges(); 249 void SaveChanges();
257 250
258 void DoClearServerData( 251 void DoClearServerData(
259 const syncer::SyncManager::ClearServerDataCallback& frontend_callback); 252 const syncer::SyncManager::ClearServerDataCallback& frontend_callback);
260 253
261 // Notify the syncer that the cookie jar has changed. 254 // Notify the syncer that the cookie jar has changed.
262 void DoOnCookieJarChanged(bool account_mismatch, bool empty_jar); 255 void DoOnCookieJarChanged(bool account_mismatch, bool empty_jar);
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 std::map<syncer::ModelType, int64_t> last_invalidation_versions_; 325 std::map<syncer::ModelType, int64_t> last_invalidation_versions_;
333 326
334 base::WeakPtrFactory<SyncBackendHostCore> weak_ptr_factory_; 327 base::WeakPtrFactory<SyncBackendHostCore> weak_ptr_factory_;
335 328
336 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostCore); 329 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostCore);
337 }; 330 };
338 331
339 } // namespace browser_sync 332 } // namespace browser_sync
340 333
341 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_ 334 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_
OLDNEW
« no previous file with comments | « components/sync/driver/glue/sync_backend_host.h ('k') | components/sync/driver/glue/sync_backend_host_core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698