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

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

Issue 2751333007: [Sync] Try to fix race conditions in CookieJarMismatch. (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 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(
185 const SyncManager::ClearServerDataCallback& callback) = 0; 185 const SyncManager::ClearServerDataCallback& callback) = 0;
186 186
187 // Notify the syncer that the cookie jar has changed. 187 // Notify the syncer that the cookie jar has changed.
188 // See SyncManager::OnCookieJarChanged. 188 // See SyncManager::OnCookieJarChanged.
189 virtual void OnCookieJarChanged(bool account_mismatch, bool empty_jar) = 0; 189 virtual void OnCookieJarChanged(bool account_mismatch,
190 bool empty_jar,
191 const base::Closure& callback) = 0;
190 192
191 private: 193 private:
192 DISALLOW_COPY_AND_ASSIGN(SyncEngine); 194 DISALLOW_COPY_AND_ASSIGN(SyncEngine);
193 }; 195 };
194 196
195 } // namespace syncer 197 } // namespace syncer
196 198
197 #endif // COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_H_ 199 #endif // COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698