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

Side by Side Diff: chrome/browser/sync/glue/password_data_type_controller.h

Issue 408003002: [Sync] Fix namespace for sync_driver component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 CHROME_BROWSER_SYNC_GLUE_PASSWORD_DATA_TYPE_CONTROLLER_H__ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_PASSWORD_DATA_TYPE_CONTROLLER_H__
6 #define CHROME_BROWSER_SYNC_GLUE_PASSWORD_DATA_TYPE_CONTROLLER_H__ 6 #define CHROME_BROWSER_SYNC_GLUE_PASSWORD_DATA_TYPE_CONTROLLER_H__
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "components/sync_driver/non_ui_data_type_controller.h" 11 #include "components/sync_driver/non_ui_data_type_controller.h"
12 12
13 class Profile; 13 class Profile;
14 class ProfileSyncComponentsFactory; 14 class ProfileSyncComponentsFactory;
15 15
16 namespace password_manager { 16 namespace password_manager {
17 class PasswordStore; 17 class PasswordStore;
18 } 18 }
19 19
20 namespace browser_sync { 20 namespace browser_sync {
21 21
22 // A class that manages the startup and shutdown of password sync. 22 // A class that manages the startup and shutdown of password sync.
23 class PasswordDataTypeController : public NonUIDataTypeController { 23 class PasswordDataTypeController : public sync_driver::NonUIDataTypeController {
24 public: 24 public:
25 PasswordDataTypeController( 25 PasswordDataTypeController(
26 ProfileSyncComponentsFactory* profile_sync_factory, 26 ProfileSyncComponentsFactory* profile_sync_factory,
27 Profile* profile, 27 Profile* profile,
28 const DisableTypeCallback& disable_callback); 28 const DisableTypeCallback& disable_callback);
29 29
30 // NonFrontendDataTypeController implementation 30 // NonFrontendDataTypeController implementation
31 virtual syncer::ModelType type() const OVERRIDE; 31 virtual syncer::ModelType type() const OVERRIDE;
32 virtual syncer::ModelSafeGroup model_safe_group() const OVERRIDE; 32 virtual syncer::ModelSafeGroup model_safe_group() const OVERRIDE;
33 33
34 protected: 34 protected:
35 virtual ~PasswordDataTypeController(); 35 virtual ~PasswordDataTypeController();
36 36
37 // NonUIDataTypeController interface. 37 // NonUIDataTypeController interface.
38 virtual bool PostTaskOnBackendThread( 38 virtual bool PostTaskOnBackendThread(
39 const tracked_objects::Location& from_here, 39 const tracked_objects::Location& from_here,
40 const base::Closure& task) OVERRIDE; 40 const base::Closure& task) OVERRIDE;
41 virtual bool StartModels() OVERRIDE; 41 virtual bool StartModels() OVERRIDE;
42 42
43 private: 43 private:
44 Profile* const profile_; 44 Profile* const profile_;
45 scoped_refptr<password_manager::PasswordStore> password_store_; 45 scoped_refptr<password_manager::PasswordStore> password_store_;
46 46
47 DISALLOW_COPY_AND_ASSIGN(PasswordDataTypeController); 47 DISALLOW_COPY_AND_ASSIGN(PasswordDataTypeController);
48 }; 48 };
49 49
50 } // namespace browser_sync 50 } // namespace browser_sync
51 51
52 #endif // CHROME_BROWSER_SYNC_GLUE_PASSWORD_DATA_TYPE_CONTROLLER_H__ 52 #endif // CHROME_BROWSER_SYNC_GLUE_PASSWORD_DATA_TYPE_CONTROLLER_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698