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

Side by Side Diff: components/sync/driver/glue/sync_backend_host_core.h

Issue 2354613002: [Sync] Fix namespaces for the browser_sync component. (Closed)
Patch Set: Address comments. Created 4 years, 2 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_CORE_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_
6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_ 6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 void SaveChanges(); 249 void SaveChanges();
250 250
251 void DoClearServerData( 251 void DoClearServerData(
252 const syncer::SyncManager::ClearServerDataCallback& frontend_callback); 252 const syncer::SyncManager::ClearServerDataCallback& frontend_callback);
253 253
254 // Notify the syncer that the cookie jar has changed. 254 // Notify the syncer that the cookie jar has changed.
255 void DoOnCookieJarChanged(bool account_mismatch, bool empty_jar); 255 void DoOnCookieJarChanged(bool account_mismatch, bool empty_jar);
256 256
257 private: 257 private:
258 friend class base::RefCountedThreadSafe<SyncBackendHostCore>; 258 friend class base::RefCountedThreadSafe<SyncBackendHostCore>;
259 friend class SyncBackendHostForProfileSyncTest;
260 259
261 ~SyncBackendHostCore() override; 260 ~SyncBackendHostCore() override;
262 261
263 // Invoked when initialization of syncapi is complete and we can start 262 // Invoked when initialization of syncapi is complete and we can start
264 // our timer. 263 // our timer.
265 // This must be called from the thread on which SaveChanges is intended to 264 // This must be called from the thread on which SaveChanges is intended to
266 // be run on; the host's |registrar_->sync_thread()|. 265 // be run on; the host's |registrar_->sync_thread()|.
267 void StartSavingChanges(); 266 void StartSavingChanges();
268 267
269 void ClearServerDataDone(const base::Closure& frontend_callback); 268 void ClearServerDataDone(const base::Closure& frontend_callback);
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 std::map<syncer::ModelType, int64_t> last_invalidation_versions_; 324 std::map<syncer::ModelType, int64_t> last_invalidation_versions_;
326 325
327 base::WeakPtrFactory<SyncBackendHostCore> weak_ptr_factory_; 326 base::WeakPtrFactory<SyncBackendHostCore> weak_ptr_factory_;
328 327
329 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostCore); 328 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostCore);
330 }; 329 };
331 330
332 } // namespace browser_sync 331 } // namespace browser_sync
333 332
334 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_ 333 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_
OLDNEW
« no previous file with comments | « components/drive/drive_notification_manager.h ('k') | ios/chrome/browser/passwords/ios_chrome_password_manager_client.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698