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

Unified Diff: chrome/browser/sync/glue/sync_backend_registrar.h

Issue 408003002: [Sync] Fix namespace for sync_driver component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/glue/sync_backend_registrar.h
diff --git a/chrome/browser/sync/glue/sync_backend_registrar.h b/chrome/browser/sync/glue/sync_backend_registrar.h
index d9883070f91ea041bc51d82c43a5dcfad1f4c75c..744bad2ac8dff15ebd74abfaa76642d642223c3f 100644
--- a/chrome/browser/sync/glue/sync_backend_registrar.h
+++ b/chrome/browser/sync/glue/sync_backend_registrar.h
@@ -27,9 +27,12 @@ namespace syncer {
struct UserShare;
} // namespace syncer
+namespace sync_driver {
+class ChangeProcessor;
+}
+
namespace browser_sync {
-class ChangeProcessor;
class UIModelWorker;
// A class that keep track of the workers, change processors, and
@@ -88,7 +91,7 @@ class SyncBackendRegistrar : public syncer::SyncManager::ChangeDelegate,
// from |group|'s native thread.
void ActivateDataType(syncer::ModelType type,
syncer::ModelSafeGroup group,
- ChangeProcessor* change_processor,
+ sync_driver::ChangeProcessor* change_processor,
syncer::UserShare* user_share);
// Deactivates the given type if necessary. Must be called from the
@@ -126,7 +129,7 @@ class SyncBackendRegistrar : public syncer::SyncManager::ChangeDelegate,
private:
typedef std::map<syncer::ModelSafeGroup,
scoped_refptr<syncer::ModelSafeWorker> > WorkerMap;
- typedef std::map<syncer::ModelType, ChangeProcessor*>
+ typedef std::map<syncer::ModelType, sync_driver::ChangeProcessor*>
ProcessorMap;
// Callback after workers unregister from observing destruction of their
@@ -137,12 +140,13 @@ class SyncBackendRegistrar : public syncer::SyncManager::ChangeDelegate,
// Returns the change processor for the given model, or NULL if none
// exists. Must be called from |group|'s native thread.
- ChangeProcessor* GetProcessor(syncer::ModelType type) const;
+ sync_driver::ChangeProcessor* GetProcessor(syncer::ModelType type) const;
// Must be called with |lock_| held. Simply returns the change
// processor for the given type, if it exists. May be called from
// any thread.
- ChangeProcessor* GetProcessorUnsafe(syncer::ModelType type) const;
+ sync_driver::ChangeProcessor* GetProcessorUnsafe(
+ syncer::ModelType type) const;
// Return true if |model_type| lives on the current thread. Must be
// called with |lock_| held. May be called on any thread.
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host_mock.cc ('k') | chrome/browser/sync/glue/sync_backend_registrar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698