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

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

Issue 17552014: [Sync] Have SBH tell SyncManager which types to purge (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Self review Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_
6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 }; 361 };
362 362
363 // Allows tests to perform alternate core initialization work. 363 // Allows tests to perform alternate core initialization work.
364 virtual void InitCore(const DoInitializeOptions& options); 364 virtual void InitCore(const DoInitializeOptions& options);
365 365
366 // Request the syncer to reconfigure with the specfied params. 366 // Request the syncer to reconfigure with the specfied params.
367 // Virtual for testing. 367 // Virtual for testing.
368 virtual void RequestConfigureSyncer( 368 virtual void RequestConfigureSyncer(
369 syncer::ConfigureReason reason, 369 syncer::ConfigureReason reason,
370 syncer::ModelTypeSet to_download, 370 syncer::ModelTypeSet to_download,
371 syncer::ModelTypeSet to_purge,
371 syncer::ModelTypeSet to_journal, 372 syncer::ModelTypeSet to_journal,
372 syncer::ModelTypeSet to_unapply, 373 syncer::ModelTypeSet to_unapply,
373 syncer::ModelTypeSet to_ignore, 374 syncer::ModelTypeSet to_ignore,
374 const syncer::ModelSafeRoutingInfo& routing_info, 375 const syncer::ModelSafeRoutingInfo& routing_info,
375 const base::Callback<void(syncer::ModelTypeSet, 376 const base::Callback<void(syncer::ModelTypeSet,
376 syncer::ModelTypeSet)>& ready_task, 377 syncer::ModelTypeSet)>& ready_task,
377 const base::Closure& retry_callback); 378 const base::Closure& retry_callback);
378 379
379 // Called when the syncer has finished performing a configuration. 380 // Called when the syncer has finished performing a configuration.
380 void FinishConfigureDataTypesOnFrontendLoop( 381 void FinishConfigureDataTypesOnFrontendLoop(
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 // HandleInitializationCompletedOnFrontendLoop. 578 // HandleInitializationCompletedOnFrontendLoop.
578 syncer::WeakHandle<syncer::JsBackend> js_backend_; 579 syncer::WeakHandle<syncer::JsBackend> js_backend_;
579 syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_; 580 syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_;
580 581
581 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); 582 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost);
582 }; 583 };
583 584
584 } // namespace browser_sync 585 } // namespace browser_sync
585 586
586 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ 587 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync/glue/sync_backend_host.cc » ('j') | chrome/browser/sync/glue/sync_backend_registrar.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698