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

Side by Side Diff: components/browser_sync/browser/profile_sync_service.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 (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 COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_ 5 #ifndef COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_
6 #define COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_ 6 #define COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 796
797 // Restarts sync clearing directory in the process. 797 // Restarts sync clearing directory in the process.
798 void OnClearServerDataDone(); 798 void OnClearServerDataDone();
799 799
800 // True if setup has been completed at least once and is not in progress. 800 // True if setup has been completed at least once and is not in progress.
801 bool CanConfigureDataTypes() const; 801 bool CanConfigureDataTypes() const;
802 802
803 // Called when a SetupInProgressHandle issued by this instance is destroyed. 803 // Called when a SetupInProgressHandle issued by this instance is destroyed.
804 virtual void OnSetupInProgressHandleDestroyed(); 804 virtual void OnSetupInProgressHandleDestroyed();
805 805
806 // Returns a ListValue representing all nodes for the specified types through
807 // |callback| on this thread.
808 void GetAllNodesForTypes(
809 syncer::ModelTypeSet types,
810 scoped_refptr<base::SequencedTaskRunner> task_runner,
maxbogue 2016/08/25 23:38:59 You don't need to pass a task runner here.
Gang Wu 2016/08/26 16:48:04 Done.
811 base::Callback<void(const std::vector<syncer::ModelType>& type,
812 ScopedVector<base::ListValue>)> callback);
813
806 // This profile's SyncClient, which abstracts away non-Sync dependencies and 814 // This profile's SyncClient, which abstracts away non-Sync dependencies and
807 // the Sync API component factory. 815 // the Sync API component factory.
808 std::unique_ptr<sync_driver::SyncClient> sync_client_; 816 std::unique_ptr<sync_driver::SyncClient> sync_client_;
809 817
810 // The class that handles getting, setting, and persisting sync 818 // The class that handles getting, setting, and persisting sync
811 // preferences. 819 // preferences.
812 sync_driver::SyncPrefs sync_prefs_; 820 sync_driver::SyncPrefs sync_prefs_;
813 821
814 // TODO(ncarter): Put this in a profile, once there is UI for it. 822 // TODO(ncarter): Put this in a profile, once there is UI for it.
815 // This specifies where to find the sync server. 823 // This specifies where to find the sync server.
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
1020 base::WeakPtrFactory<ProfileSyncService> weak_factory_; 1028 base::WeakPtrFactory<ProfileSyncService> weak_factory_;
1021 1029
1022 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 1030 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
1023 }; 1031 };
1024 1032
1025 bool ShouldShowActionOnUI( 1033 bool ShouldShowActionOnUI(
1026 const syncer::SyncProtocolError& error); 1034 const syncer::SyncProtocolError& error);
1027 1035
1028 1036
1029 #endif // COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_ 1037 #endif // COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698