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

Unified Diff: components/browser_sync/browser/profile_sync_service.h

Issue 2276943006: [USS] Move GetAllNodes from backend to controller (Closed)
Patch Set: remove task runnner Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: components/browser_sync/browser/profile_sync_service.h
diff --git a/components/browser_sync/browser/profile_sync_service.h b/components/browser_sync/browser/profile_sync_service.h
index f6c426846c7385446f3a789785bec1c64988ead9..9ccd5245210b9a9a3ffe711f232c1e1846a87038 100644
--- a/components/browser_sync/browser/profile_sync_service.h
+++ b/components/browser_sync/browser/profile_sync_service.h
@@ -332,6 +332,18 @@ class ProfileSyncService : public sync_driver::SyncService,
base::WeakPtr<syncer::JsController> GetJsController() override;
void GetAllNodes(const base::Callback<void(std::unique_ptr<base::ListValue>)>&
callback) override;
+ // Returns a ListValue representing all nodes for the specified types through
+ // |callback| on this thread.
+ void AllNodesForTypes(
+ syncer::ModelTypeSet types,
+ base::Callback<void(const syncer::ModelType,
+ ScopedVector<base::ListValue>)> type);
+
+ void GetAllNodesForTypes(
pavely 2016/08/26 23:17:09 I think you only have/use GetAllNodesForTypes in i
Gang Wu 2016/08/29 20:07:41 Done.
+ syncer::ModelTypeSet types,
+ base::Callback<void(const syncer::ModelType type,
+ std::unique_ptr<base::ListValue>)> callback);
+ std::unique_ptr<base::ListValue> GetAllNodesForType(syncer::ModelType type);
// Add a sync type preference provider. Each provider may only be added once.
void AddPreferenceProvider(SyncTypePreferenceProvider* provider);
@@ -939,6 +951,7 @@ class ProfileSyncService : public sync_driver::SyncService,
// * If sync is disabled, PSS claims ownership from backend.
// * If sync is reenabled, PSS passes ownership to new backend.
std::unique_ptr<base::Thread> sync_thread_;
+ base::Thread* sync_thread_test_;
pavely 2016/08/26 23:17:09 Cleanup.
Gang Wu 2016/08/29 20:07:41 I dont know where this line come from, will delete
Gang Wu 2016/08/29 20:07:41 Done.
// ProfileSyncService uses this service to get access tokens.
ProfileOAuth2TokenService* const oauth2_token_service_;

Powered by Google App Engine
This is Rietveld 408576698