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

Unified Diff: components/sync_driver/non_blocking_data_type_manager.h

Issue 1315063008: Sync: Remove NonBlockingDataTypeManager and any ProfileSyncService code related to it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « components/sync_driver/BUILD.gn ('k') | components/sync_driver/non_blocking_data_type_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync_driver/non_blocking_data_type_manager.h
diff --git a/components/sync_driver/non_blocking_data_type_manager.h b/components/sync_driver/non_blocking_data_type_manager.h
deleted file mode 100644
index f93fa00ca0e907c385498da777442e1b6e3bc5f2..0000000000000000000000000000000000000000
--- a/components/sync_driver/non_blocking_data_type_manager.h
+++ /dev/null
@@ -1,77 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_SYNC_DRIVER_NON_BLOCKING_DATA_TYPE_MANAGER_H_
-#define COMPONENTS_SYNC_DRIVER_NON_BLOCKING_DATA_TYPE_MANAGER_H_
-
-#include "base/containers/scoped_ptr_map.h"
-#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/memory/weak_ptr.h"
-#include "sync/internal_api/public/base/model_type.h"
-
-namespace base {
-class SequencedTaskRunner;
-} // namespace base
-
-namespace syncer_v2 {
-class ModelTypeProcessorImpl;
-class SyncContextProxy;
-} // namespace syncer_v2
-
-namespace sync_driver_v2 {
-
-class NonBlockingDataTypeController;
-
-// Manages a set of NonBlockingDataTypeControllers.
-//
-// Each NonBlockingDataTypeController instance handles the logic around
-// enabling and disabling sync for a particular non-blocking type. This class
-// manages all the controllers.
-class NonBlockingDataTypeManager {
- public:
- NonBlockingDataTypeManager();
- ~NonBlockingDataTypeManager();
-
- // Declares |type| as a non-blocking type. Should be done early
- // on during sync initialization.
- //
- // The |preferred| flag indicates whether or not this type should be synced.
- void RegisterType(syncer::ModelType type, bool preferred);
-
- // Connects the ModelTypeProcessorImpl and associated model type
- // thread to its NonBlockingDataTypeController on the UI thread.
- void InitializeType(
- syncer::ModelType type,
- const scoped_refptr<base::SequencedTaskRunner>& task_runner,
- const base::WeakPtr<syncer_v2::ModelTypeProcessorImpl>& type_processor);
-
- // Connects the sync backend, as represented by a SyncContextProxy, to the
- // NonBlockingDataTypeController on the UI thread.
- void ConnectSyncBackend(scoped_ptr<syncer_v2::SyncContextProxy> proxy);
-
- // Disconnects the sync backend from the UI thread. Should be called
- // early on during shutdown, but the whole procedure is asynchronous so
- // there's not much downside to calling it later.
- void DisconnectSyncBackend();
-
- // Updates the set of types the user wants to have synced.
- void SetPreferredTypes(syncer::ModelTypeSet types);
-
- // Returns the list of all known non-blocking sync types that registered with
- // RegisterType.
- syncer::ModelTypeSet GetRegisteredTypes() const;
-
- private:
- typedef base::ScopedPtrMap<syncer::ModelType,
- scoped_ptr<NonBlockingDataTypeController>>
- NonBlockingDataTypeControllerMap;
-
- // List of data type controllers for non-blocking types.
- NonBlockingDataTypeControllerMap non_blocking_data_type_controllers_;
-};
-
-} // namespace sync_driver_v2
-
-#endif // COMPONENTS_SYNC_DRIVER_NON_BLOCKING_DATA_TYPE_MANAGER_H_
« no previous file with comments | « components/sync_driver/BUILD.gn ('k') | components/sync_driver/non_blocking_data_type_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698