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

Side by Side Diff: components/sync/engine/fake_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
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_ENGINE_FAKE_SYNC_ENGINE_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_FAKE_SYNC_ENGINE_H_
6 #define COMPONENTS_SYNC_ENGINE_FAKE_SYNC_ENGINE_H_ 6 #define COMPONENTS_SYNC_ENGINE_FAKE_SYNC_ENGINE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 void FlushDirectory() const override; 75 void FlushDirectory() const override;
76 76
77 void RequestBufferedProtocolEventsAndEnableForwarding() override; 77 void RequestBufferedProtocolEventsAndEnableForwarding() override;
78 void DisableProtocolEventForwarding() override; 78 void DisableProtocolEventForwarding() override;
79 79
80 void EnableDirectoryTypeDebugInfoForwarding() override; 80 void EnableDirectoryTypeDebugInfoForwarding() override;
81 void DisableDirectoryTypeDebugInfoForwarding() override; 81 void DisableDirectoryTypeDebugInfoForwarding() override;
82 82
83 void RefreshTypesForTest(ModelTypeSet types) override; 83 void RefreshTypesForTest(ModelTypeSet types) override;
84 84
85 void ClearServerData( 85 void ClearServerData(const base::Closure& callback) override;
86 const SyncManager::ClearServerDataCallback& callback) override;
87 86
88 void OnCookieJarChanged(bool account_mismatch, 87 void OnCookieJarChanged(bool account_mismatch,
89 bool empty_jar, 88 bool empty_jar,
90 const base::Closure& callback) override; 89 const base::Closure& callback) override;
91 90
92 void set_fail_initial_download(bool should_fail); 91 void set_fail_initial_download(bool should_fail);
93 92
94 private: 93 private:
95 bool fail_initial_download_; 94 bool fail_initial_download_;
96 }; 95 };
97 96
98 } // namespace syncer 97 } // namespace syncer
99 98
100 #endif // COMPONENTS_SYNC_ENGINE_FAKE_SYNC_ENGINE_H_ 99 #endif // COMPONENTS_SYNC_ENGINE_FAKE_SYNC_ENGINE_H_
OLDNEW
« no previous file with comments | « components/sync/driver/glue/sync_backend_host_impl.cc ('k') | components/sync/engine/fake_sync_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698