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

Unified Diff: components/sync/driver/startup_controller.h

Issue 2388673002: Revert of [Sync] Move //components/sync to the syncer namespace. (patchset #5 id:40001 of https://co (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: components/sync/driver/startup_controller.h
diff --git a/components/sync/driver/startup_controller.h b/components/sync/driver/startup_controller.h
index 6444ed962cf0151c1529990d0a0685eaf07b552c..3bee48627258ebc60b877db3fea3fcafef3632b0 100644
--- a/components/sync/driver/startup_controller.h
+++ b/components/sync/driver/startup_controller.h
@@ -10,16 +10,18 @@
#include "base/time/time.h"
#include "components/sync/base/model_type.h"
-namespace syncer {
-
+namespace sync_driver {
class SyncPrefs;
+}
+
+namespace browser_sync {
// This class is used by ProfileSyncService to manage all logic and state
// pertaining to initialization of the SyncBackendHost (colloquially referred
// to as "the backend").
class StartupController {
public:
- StartupController(const SyncPrefs* sync_prefs,
+ StartupController(const sync_driver::SyncPrefs* sync_prefs,
base::Callback<bool()> can_start,
base::Closure start_backend);
~StartupController();
@@ -38,7 +40,7 @@ class StartupController {
// still in deferred start mode, meaning the SyncableService hasn't been
// told to MergeDataAndStartSyncing yet.
// It is expected that |type| is a currently active datatype.
- void OnDataTypeRequestsSyncStartup(ModelType type);
+ void OnDataTypeRequestsSyncStartup(syncer::ModelType type);
// Prepares this object for a new attempt to start sync, forgetting
// whether or not preconditions were previously met.
@@ -46,7 +48,7 @@ class StartupController {
// touch values that are explicitly set and reset by higher layers to
// tell this class whether a setup UI dialog is being shown to the user.
// See setup_in_progress_.
- void Reset(const ModelTypeSet registered_types);
+ void Reset(const syncer::ModelTypeSet registered_types);
// Sets the setup in progress flag and tries to start sync if it's true.
void SetSetupInProgress(bool setup_in_progress);
@@ -86,7 +88,7 @@ class StartupController {
// due to explicit requests to do so via SetSetupInProgress.
bool setup_in_progress_;
- const SyncPrefs* sync_prefs_;
+ const sync_driver::SyncPrefs* sync_prefs_;
// A function that can be invoked repeatedly to determine whether sync can be
// started. |start_backend_| should not be invoked unless this returns true.
@@ -102,11 +104,11 @@ class StartupController {
base::TimeDelta fallback_timeout_;
// Used to compute preferred_types from SyncPrefs as-needed.
- ModelTypeSet registered_types_;
+ syncer::ModelTypeSet registered_types_;
base::WeakPtrFactory<StartupController> weak_factory_;
};
-} // namespace syncer
+} // namespace browser_sync
#endif // COMPONENTS_SYNC_DRIVER_STARTUP_CONTROLLER_H_
« no previous file with comments | « components/sync/driver/shared_change_processor_unittest.cc ('k') | components/sync/driver/startup_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698