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

Side by Side Diff: chrome/browser/sync/glue/sync_backend_host_mock.h

Issue 1253743003: [Sync] Update SyncBackendHost to forward ClearServerData to SyncManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clearserverdatacommand
Patch Set: Remove unused callback variable Created 5 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 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 CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_
6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ 6 #define CHROME_BROWSER_SYNC_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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 101
102 void GetAllNodesForTypes( 102 void GetAllNodesForTypes(
103 syncer::ModelTypeSet types, 103 syncer::ModelTypeSet types,
104 base::Callback<void(const std::vector<syncer::ModelType>& type, 104 base::Callback<void(const std::vector<syncer::ModelType>& type,
105 ScopedVector<base::ListValue>)> callback) override; 105 ScopedVector<base::ListValue>)> callback) override;
106 106
107 base::MessageLoop* GetSyncLoopForTesting() override; 107 base::MessageLoop* GetSyncLoopForTesting() override;
108 108
109 void RefreshTypesForTest(syncer::ModelTypeSet types) override; 109 void RefreshTypesForTest(syncer::ModelTypeSet types) override;
110 110
111 void ClearServerData(
112 const syncer::SyncManager::ClearServerDataCallback& callback) override;
113
111 void set_fail_initial_download(bool should_fail); 114 void set_fail_initial_download(bool should_fail);
112 115
113 private: 116 private:
114 bool fail_initial_download_; 117 bool fail_initial_download_;
115 }; 118 };
116 119
117 } // namespace browser_sync 120 } // namespace browser_sync
118 121
119 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ 122 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host_impl_unittest.cc ('k') | chrome/browser/sync/glue/sync_backend_host_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698