| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_PASSWORD_MANAGER_SYNC_BROWSER_PASSWORD_DATA_TYPE_CONTROLLER_H
__ | 5 #ifndef COMPONENTS_PASSWORD_MANAGER_SYNC_BROWSER_PASSWORD_DATA_TYPE_CONTROLLER_H
__ |
| 6 #define COMPONENTS_PASSWORD_MANAGER_SYNC_BROWSER_PASSWORD_DATA_TYPE_CONTROLLER_H
__ | 6 #define COMPONENTS_PASSWORD_MANAGER_SYNC_BROWSER_PASSWORD_DATA_TYPE_CONTROLLER_H
__ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 ~PasswordDataTypeController() override; | 34 ~PasswordDataTypeController() override; |
| 35 | 35 |
| 36 protected: | 36 protected: |
| 37 // AsyncDirectoryTypeController interface. | 37 // AsyncDirectoryTypeController interface. |
| 38 bool PostTaskOnModelThread(const tracked_objects::Location& from_here, | 38 bool PostTaskOnModelThread(const tracked_objects::Location& from_here, |
| 39 const base::Closure& task) override; | 39 const base::Closure& task) override; |
| 40 bool StartModels() override; | 40 bool StartModels() override; |
| 41 void StopModels() override; | 41 void StopModels() override; |
| 42 | 42 |
| 43 // syncer::SyncServiceObserver: | 43 // syncer::SyncServiceObserver: |
| 44 void OnStateChanged() override; | 44 void OnStateChanged(syncer::SyncService* sync) override; |
| 45 | 45 |
| 46 private: | 46 private: |
| 47 syncer::SyncClient* const sync_client_; | 47 syncer::SyncClient* const sync_client_; |
| 48 const base::Closure state_changed_callback_; | 48 const base::Closure state_changed_callback_; |
| 49 scoped_refptr<password_manager::PasswordStore> password_store_; | 49 scoped_refptr<password_manager::PasswordStore> password_store_; |
| 50 | 50 |
| 51 DISALLOW_COPY_AND_ASSIGN(PasswordDataTypeController); | 51 DISALLOW_COPY_AND_ASSIGN(PasswordDataTypeController); |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 } // namespace browser_sync | 54 } // namespace browser_sync |
| 55 | 55 |
| 56 #endif // COMPONENTS_PASSWORD_MANAGER_SYNC_BROWSER_PASSWORD_DATA_TYPE_CONTROLLE
R_H__ | 56 #endif // COMPONENTS_PASSWORD_MANAGER_SYNC_BROWSER_PASSWORD_DATA_TYPE_CONTROLLE
R_H__ |
| OLD | NEW |