| Index: chrome/browser/sync/glue/data_type_manager_impl2.h
|
| diff --git a/chrome/browser/sync/glue/data_type_manager_impl2.h b/chrome/browser/sync/glue/data_type_manager_impl2.h
|
| deleted file mode 100644
|
| index 1db2908a56b15bbdf9b2a6c470f2875b2e7df0ed..0000000000000000000000000000000000000000
|
| --- a/chrome/browser/sync/glue/data_type_manager_impl2.h
|
| +++ /dev/null
|
| @@ -1,81 +0,0 @@
|
| -// Copyright (c) 2011 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 CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_MANAGER_IMPL2_H__
|
| -#define CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_MANAGER_IMPL2_H__
|
| -#pragma once
|
| -
|
| -#include "chrome/browser/sync/glue/data_type_manager.h"
|
| -
|
| -#include <map>
|
| -#include <vector>
|
| -
|
| -#include "base/basictypes.h"
|
| -#include "base/task.h"
|
| -
|
| -namespace browser_sync {
|
| -
|
| -class DataTypeController;
|
| -class SyncBackendHost;
|
| -
|
| -class DataTypeManagerImpl2 : public DataTypeManager {
|
| - public:
|
| - DataTypeManagerImpl2(SyncBackendHost* backend,
|
| - const DataTypeController::TypeMap& controllers);
|
| - virtual ~DataTypeManagerImpl2();
|
| -
|
| - // DataTypeManager interface.
|
| - virtual void Configure(const TypeSet& desired_types);
|
| - virtual void Stop();
|
| - virtual const DataTypeController::TypeMap& controllers();
|
| - virtual State state();
|
| -
|
| - private:
|
| - // Starts the next data type in the kStartOrder list, indicated by
|
| - // the current_type_ member. If there are no more data types to
|
| - // start, the stashed start_callback_ is invoked.
|
| - void StartNextType();
|
| -
|
| - // Callback passed to each data type controller on startup.
|
| - void TypeStartCallback(DataTypeController::StartResult result,
|
| - const tracked_objects::Location& from_here);
|
| -
|
| - // Stops all data types.
|
| - void FinishStop();
|
| - void FinishStopAndNotify(ConfigureResult result,
|
| - const tracked_objects::Location& location);
|
| -
|
| - // Returns true if any last_requested_types_ currently needs to start model
|
| - // association. If non-null, fills |needs_start| with all such controllers.
|
| - bool GetControllersNeedingStart(
|
| - std::vector<DataTypeController*>* needs_start);
|
| -
|
| - void Restart();
|
| - void DownloadReady();
|
| - void NotifyStart();
|
| - void NotifyDone(ConfigureResult result,
|
| - const tracked_objects::Location& location);
|
| -
|
| - SyncBackendHost* backend_;
|
| - // Map of all data type controllers that are available for sync.
|
| - // This list is determined at startup by various command line flags.
|
| - const DataTypeController::TypeMap controllers_;
|
| - State state_;
|
| - std::map<syncable::ModelType, int> start_order_;
|
| - TypeSet last_requested_types_;
|
| - std::vector<DataTypeController*> needs_start_;
|
| - std::vector<DataTypeController*> needs_stop_;
|
| -
|
| - // Whether an attempt to reconfigure was made while we were busy configuring.
|
| - // The |last_requested_types_| will reflect the newest set of requested types.
|
| - bool needs_reconfigure_;
|
| -
|
| - ScopedRunnableMethodFactory<DataTypeManagerImpl2> method_factory_;
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(DataTypeManagerImpl2);
|
| -};
|
| -
|
| -} // namespace browser_sync
|
| -
|
| -#endif // CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_MANAGER_IMPL2_H__
|
|
|