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

Side by Side Diff: chrome/browser/sync/profile_sync_factory_impl.h

Issue 8470005: Add OVERRIDE to chrome/browser/sync/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: includes Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_PROFILE_SYNC_FACTORY_IMPL_H__ 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_IMPL_H__
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_IMPL_H__ 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_IMPL_H__
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h"
12 #include "chrome/browser/sync/profile_sync_factory.h" 13 #include "chrome/browser/sync/profile_sync_factory.h"
13 14
14 class CommandLine; 15 class CommandLine;
15 class Profile; 16 class Profile;
16 17
17 class ProfileSyncFactoryImpl : public ProfileSyncFactory { 18 class ProfileSyncFactoryImpl : public ProfileSyncFactory {
18 public: 19 public:
19 ProfileSyncFactoryImpl(Profile* profile, CommandLine* command_line); 20 ProfileSyncFactoryImpl(Profile* profile, CommandLine* command_line);
20 virtual ~ProfileSyncFactoryImpl() {} 21 virtual ~ProfileSyncFactoryImpl() {}
21 22
22 // ProfileSyncFactory interface. 23 // ProfileSyncFactory interface.
23 virtual ProfileSyncService* CreateProfileSyncService( 24 virtual ProfileSyncService* CreateProfileSyncService(
24 const std::string& cros_user); 25 const std::string& cros_user) OVERRIDE;
25 26
26 virtual void RegisterDataTypes(ProfileSyncService* pss); 27 virtual void RegisterDataTypes(ProfileSyncService* pss) OVERRIDE;
27 28
28 virtual browser_sync::DataTypeManager* CreateDataTypeManager( 29 virtual browser_sync::DataTypeManager* CreateDataTypeManager(
29 browser_sync::SyncBackendHost* backend, 30 browser_sync::SyncBackendHost* backend,
30 const browser_sync::DataTypeController::TypeMap* controllers); 31 const browser_sync::DataTypeController::TypeMap* controllers) OVERRIDE;
31 32
32 virtual browser_sync::GenericChangeProcessor* CreateGenericChangeProcessor( 33 virtual browser_sync::GenericChangeProcessor* CreateGenericChangeProcessor(
33 ProfileSyncService* profile_sync_service, 34 ProfileSyncService* profile_sync_service,
34 browser_sync::UnrecoverableErrorHandler* error_handler, 35 browser_sync::UnrecoverableErrorHandler* error_handler,
35 const base::WeakPtr<SyncableService>& local_service); 36 const base::WeakPtr<SyncableService>& local_service) OVERRIDE;
36 37
37 virtual browser_sync::SharedChangeProcessor* CreateSharedChangeProcessor(); 38 virtual browser_sync::SharedChangeProcessor*
39 CreateSharedChangeProcessor() OVERRIDE;
38 40
39 virtual SyncComponents CreateAppSyncComponents( 41 virtual SyncComponents CreateAppSyncComponents(
40 ProfileSyncService* profile_sync_service, 42 ProfileSyncService* profile_sync_service,
41 browser_sync::UnrecoverableErrorHandler* error_handler); 43 browser_sync::UnrecoverableErrorHandler* error_handler) OVERRIDE;
42 44
43 virtual base::WeakPtr<SyncableService> GetAutofillProfileSyncableService( 45 virtual base::WeakPtr<SyncableService> GetAutofillProfileSyncableService(
44 WebDataService* web_data_service) const; 46 WebDataService* web_data_service) const OVERRIDE;
45 47
46 virtual base::WeakPtr<SyncableService> GetAutocompleteSyncableService( 48 virtual base::WeakPtr<SyncableService> GetAutocompleteSyncableService(
47 WebDataService* web_data_service) const; 49 WebDataService* web_data_service) const OVERRIDE;
48 50
49 virtual SyncComponents CreateBookmarkSyncComponents( 51 virtual SyncComponents CreateBookmarkSyncComponents(
50 ProfileSyncService* profile_sync_service, 52 ProfileSyncService* profile_sync_service,
51 browser_sync::UnrecoverableErrorHandler* error_handler); 53 browser_sync::UnrecoverableErrorHandler* error_handler) OVERRIDE;
52 54
53 virtual SyncComponents CreateExtensionOrAppSettingSyncComponents( 55 virtual SyncComponents CreateExtensionOrAppSettingSyncComponents(
54 // Either EXTENSION_SETTING or APP_SETTING. 56 // Either EXTENSION_SETTING or APP_SETTING.
55 syncable::ModelType type, 57 syncable::ModelType type,
56 SyncableService* settings_service, 58 SyncableService* settings_service,
57 ProfileSyncService* profile_sync_service, 59 ProfileSyncService* profile_sync_service,
58 browser_sync::UnrecoverableErrorHandler* error_handler); 60 browser_sync::UnrecoverableErrorHandler* error_handler) OVERRIDE;
59 61
60 virtual SyncComponents CreateExtensionSyncComponents( 62 virtual SyncComponents CreateExtensionSyncComponents(
61 ProfileSyncService* profile_sync_service, 63 ProfileSyncService* profile_sync_service,
62 browser_sync::UnrecoverableErrorHandler* error_handler); 64 browser_sync::UnrecoverableErrorHandler* error_handler) OVERRIDE;
63 65
64 virtual SyncComponents CreatePasswordSyncComponents( 66 virtual SyncComponents CreatePasswordSyncComponents(
65 ProfileSyncService* profile_sync_service, 67 ProfileSyncService* profile_sync_service,
66 PasswordStore* password_store, 68 PasswordStore* password_store,
67 browser_sync::UnrecoverableErrorHandler* error_handler); 69 browser_sync::UnrecoverableErrorHandler* error_handler) OVERRIDE;
68 70
69 virtual SyncComponents CreatePreferenceSyncComponents( 71 virtual SyncComponents CreatePreferenceSyncComponents(
70 ProfileSyncService* profile_sync_service, 72 ProfileSyncService* profile_sync_service,
71 browser_sync::UnrecoverableErrorHandler* error_handler); 73 browser_sync::UnrecoverableErrorHandler* error_handler) OVERRIDE;
72 74
73 virtual SyncComponents CreateThemeSyncComponents( 75 virtual SyncComponents CreateThemeSyncComponents(
74 ProfileSyncService* profile_sync_service, 76 ProfileSyncService* profile_sync_service,
75 browser_sync::UnrecoverableErrorHandler* error_handler); 77 browser_sync::UnrecoverableErrorHandler* error_handler) OVERRIDE;
76 78
77 virtual SyncComponents CreateTypedUrlSyncComponents( 79 virtual SyncComponents CreateTypedUrlSyncComponents(
78 ProfileSyncService* profile_sync_service, 80 ProfileSyncService* profile_sync_service,
79 history::HistoryBackend* history_backend, 81 history::HistoryBackend* history_backend,
80 browser_sync::UnrecoverableErrorHandler* error_handler); 82 browser_sync::UnrecoverableErrorHandler* error_handler) OVERRIDE;
81 83
82 virtual SyncComponents CreateSessionSyncComponents( 84 virtual SyncComponents CreateSessionSyncComponents(
83 ProfileSyncService* profile_sync_service, 85 ProfileSyncService* profile_sync_service,
84 browser_sync::UnrecoverableErrorHandler* error_handler); 86 browser_sync::UnrecoverableErrorHandler* error_handler) OVERRIDE;
85 87
86 virtual SyncComponents CreateSearchEngineSyncComponents( 88 virtual SyncComponents CreateSearchEngineSyncComponents(
87 ProfileSyncService* profile_sync_service, 89 ProfileSyncService* profile_sync_service,
88 browser_sync::UnrecoverableErrorHandler* error_handler); 90 browser_sync::UnrecoverableErrorHandler* error_handler) OVERRIDE;
89 91
90 virtual SyncComponents CreateAppNotificationSyncComponents( 92 virtual SyncComponents CreateAppNotificationSyncComponents(
91 ProfileSyncService* profile_sync_service, 93 ProfileSyncService* profile_sync_service,
92 browser_sync::UnrecoverableErrorHandler* error_handler); 94 browser_sync::UnrecoverableErrorHandler* error_handler) OVERRIDE;
93 95
94 private: 96 private:
95 Profile* profile_; 97 Profile* profile_;
96 CommandLine* command_line_; 98 CommandLine* command_line_;
97 99
98 DISALLOW_COPY_AND_ASSIGN(ProfileSyncFactoryImpl); 100 DISALLOW_COPY_AND_ASSIGN(ProfileSyncFactoryImpl);
99 }; 101 };
100 102
101 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_IMPL_H__ 103 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_IMPL_H__
OLDNEW
« no previous file with comments | « chrome/browser/sync/notifier/p2p_notifier.h ('k') | chrome/browser/sync/profile_sync_service_autofill_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698