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

Side by Side Diff: components/sync/driver/glue/sync_backend_host_mock.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_MOCK_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_MOCK_H_
6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_MOCK_H_ 6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_MOCK_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 syncer::ModelSafeRoutingInfo* out) const override; 102 syncer::ModelSafeRoutingInfo* out) const override;
103 103
104 void FlushDirectory() const override; 104 void FlushDirectory() const override;
105 105
106 void RequestBufferedProtocolEventsAndEnableForwarding() override; 106 void RequestBufferedProtocolEventsAndEnableForwarding() override;
107 void DisableProtocolEventForwarding() override; 107 void DisableProtocolEventForwarding() override;
108 108
109 void EnableDirectoryTypeDebugInfoForwarding() override; 109 void EnableDirectoryTypeDebugInfoForwarding() override;
110 void DisableDirectoryTypeDebugInfoForwarding() override; 110 void DisableDirectoryTypeDebugInfoForwarding() override;
111 111
112 void GetAllNodesForTypes(
113 syncer::ModelTypeSet types,
114 base::Callback<void(const std::vector<syncer::ModelType>& type,
115 std::vector<std::unique_ptr<base::ListValue>>)>
116 callback) override;
117
118 base::MessageLoop* GetSyncLoopForTesting() override; 112 base::MessageLoop* GetSyncLoopForTesting() override;
119 113
120 void RefreshTypesForTest(syncer::ModelTypeSet types) override; 114 void RefreshTypesForTest(syncer::ModelTypeSet types) override;
121 115
122 void ClearServerData( 116 void ClearServerData(
123 const syncer::SyncManager::ClearServerDataCallback& callback) override; 117 const syncer::SyncManager::ClearServerDataCallback& callback) override;
124 118
125 void OnCookieJarChanged(bool account_mismatch, bool empty_jar) override; 119 void OnCookieJarChanged(bool account_mismatch, bool empty_jar) override;
126 120
127 void set_fail_initial_download(bool should_fail); 121 void set_fail_initial_download(bool should_fail);
128 122
129 private: 123 private:
130 bool fail_initial_download_; 124 bool fail_initial_download_;
131 }; 125 };
132 126
133 } // namespace browser_sync 127 } // namespace browser_sync
134 128
135 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_MOCK_H_ 129 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_MOCK_H_
OLDNEW
« no previous file with comments | « components/sync/driver/glue/sync_backend_host_impl.cc ('k') | components/sync/driver/glue/sync_backend_host_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698