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

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: 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 ScopedVector<base::ListValue>)> callback);
251
252 // 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.
253 // 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
254 // application is backgrounded. 248 // application is backgrounded.
255 void SaveChanges(); 249 void SaveChanges();
256 250
257 void DoClearServerData( 251 void DoClearServerData(
258 const syncer::SyncManager::ClearServerDataCallback& frontend_callback); 252 const syncer::SyncManager::ClearServerDataCallback& frontend_callback);
259 253
260 // Notify the syncer that the cookie jar has changed. 254 // Notify the syncer that the cookie jar has changed.
261 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
331 std::map<syncer::ModelType, int64_t> last_invalidation_versions_; 325 std::map<syncer::ModelType, int64_t> last_invalidation_versions_;
332 326
333 base::WeakPtrFactory<SyncBackendHostCore> weak_ptr_factory_; 327 base::WeakPtrFactory<SyncBackendHostCore> weak_ptr_factory_;
334 328
335 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostCore); 329 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostCore);
336 }; 330 };
337 331
338 } // namespace browser_sync 332 } // namespace browser_sync
339 333
340 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_ 334 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698