| // Copyright (c) 2012 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_PASSWORD_DATA_TYPE_CONTROLLER_H__ |
| #define CHROME_BROWSER_SYNC_GLUE_PASSWORD_DATA_TYPE_CONTROLLER_H__ |
| |
| #include <string> |
| |
| #include "base/compiler_specific.h" |
| #include "base/memory/ref_counted.h" |
| #include "chrome/browser/sync/glue/non_frontend_data_type_controller.h" |
| |
| class PasswordStore; |
| |
| namespace browser_sync { |
| |
| // A class that manages the startup and shutdown of password sync. |
| class PasswordDataTypeController : public NonFrontendDataTypeController { |
| public: |
| PasswordDataTypeController( |
| ProfileSyncComponentsFactory* profile_sync_factory, |
| Profile* profile, |
| ProfileSyncService* sync_service); |
| |
| // NonFrontendDataTypeController implementation |
| virtual syncer::ModelType type() const OVERRIDE; |
| virtual syncer::ModelSafeGroup model_safe_group() const OVERRIDE; |
| |
| protected: |
| virtual ~PasswordDataTypeController(); |
| |
| // NonFrontendDataTypeController interface. |
| virtual bool PostTaskOnBackendThread( |
| const tracked_objects::Location& from_here, |
| const base::Closure& task) OVERRIDE; |
| virtual bool StartModels() OVERRIDE; |
| virtual ProfileSyncComponentsFactory::SyncComponents CreateSyncComponents() |
| OVERRIDE; |
| virtual void DisconnectProcessor(ChangeProcessor* processor) OVERRIDE; |
| |
| private: |
| scoped_refptr<PasswordStore> password_store_; |
| |
| DISALLOW_COPY_AND_ASSIGN(PasswordDataTypeController); |
| }; |
| |
| } // namespace browser_sync |
| |
| #endif // CHROME_BROWSER_SYNC_GLUE_PASSWORD_DATA_TYPE_CONTROLLER_H__ |