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

Side by Side Diff: components/sync/engine/sync_engine.h

Issue 2770933007: [Sync] Replace ClearServerDataCallback with Closure. (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « components/sync/engine/fake_sync_manager.cc ('k') | components/sync/engine/sync_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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_SYNC_ENGINE_SYNC_ENGINE_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_H_
6 #define COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_H_ 6 #define COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 // for all counters be emitted. 174 // for all counters be emitted.
175 virtual void EnableDirectoryTypeDebugInfoForwarding() = 0; 175 virtual void EnableDirectoryTypeDebugInfoForwarding() = 0;
176 176
177 // Disables the sending of directory type debug counters. 177 // Disables the sending of directory type debug counters.
178 virtual void DisableDirectoryTypeDebugInfoForwarding() = 0; 178 virtual void DisableDirectoryTypeDebugInfoForwarding() = 0;
179 179
180 // Triggers sync cycle to update |types|. 180 // Triggers sync cycle to update |types|.
181 virtual void RefreshTypesForTest(ModelTypeSet types) = 0; 181 virtual void RefreshTypesForTest(ModelTypeSet types) = 0;
182 182
183 // See SyncManager::ClearServerData. 183 // See SyncManager::ClearServerData.
184 virtual void ClearServerData( 184 virtual void ClearServerData(const base::Closure& callback) = 0;
185 const SyncManager::ClearServerDataCallback& callback) = 0;
186 185
187 // Notify the syncer that the cookie jar has changed. 186 // Notify the syncer that the cookie jar has changed.
188 // See SyncManager::OnCookieJarChanged. 187 // See SyncManager::OnCookieJarChanged.
189 virtual void OnCookieJarChanged(bool account_mismatch, 188 virtual void OnCookieJarChanged(bool account_mismatch,
190 bool empty_jar, 189 bool empty_jar,
191 const base::Closure& callback) = 0; 190 const base::Closure& callback) = 0;
192 191
193 private: 192 private:
194 DISALLOW_COPY_AND_ASSIGN(SyncEngine); 193 DISALLOW_COPY_AND_ASSIGN(SyncEngine);
195 }; 194 };
196 195
197 } // namespace syncer 196 } // namespace syncer
198 197
199 #endif // COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_H_ 198 #endif // COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_H_
OLDNEW
« no previous file with comments | « components/sync/engine/fake_sync_manager.cc ('k') | components/sync/engine/sync_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698