OLD | NEW |
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 "chrome/browser/sync/profile_sync_factory.h" | 12 #include "chrome/browser/sync/profile_sync_factory.h" |
13 | 13 |
14 class CommandLine; | 14 class CommandLine; |
| 15 class ExtensionSettings; |
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); |
(...skipping 17 matching lines...) Expand all Loading... |
42 virtual SyncComponents CreateAutofillProfileSyncComponents( | 43 virtual SyncComponents CreateAutofillProfileSyncComponents( |
43 ProfileSyncService* profile_sync_service, | 44 ProfileSyncService* profile_sync_service, |
44 WebDatabase* web_database, | 45 WebDatabase* web_database, |
45 PersonalDataManager* personal_data, | 46 PersonalDataManager* personal_data, |
46 browser_sync::UnrecoverableErrorHandler* error_handler); | 47 browser_sync::UnrecoverableErrorHandler* error_handler); |
47 | 48 |
48 virtual SyncComponents CreateBookmarkSyncComponents( | 49 virtual SyncComponents CreateBookmarkSyncComponents( |
49 ProfileSyncService* profile_sync_service, | 50 ProfileSyncService* profile_sync_service, |
50 browser_sync::UnrecoverableErrorHandler* error_handler); | 51 browser_sync::UnrecoverableErrorHandler* error_handler); |
51 | 52 |
| 53 virtual SyncComponents CreateExtensionSettingSyncComponents( |
| 54 ExtensionSettings* extension_settings, |
| 55 ProfileSyncService* profile_sync_service, |
| 56 browser_sync::UnrecoverableErrorHandler* error_handler); |
| 57 |
52 virtual SyncComponents CreateExtensionSyncComponents( | 58 virtual SyncComponents CreateExtensionSyncComponents( |
53 ProfileSyncService* profile_sync_service, | 59 ProfileSyncService* profile_sync_service, |
54 browser_sync::UnrecoverableErrorHandler* error_handler); | 60 browser_sync::UnrecoverableErrorHandler* error_handler); |
55 | 61 |
56 virtual SyncComponents CreatePasswordSyncComponents( | 62 virtual SyncComponents CreatePasswordSyncComponents( |
57 ProfileSyncService* profile_sync_service, | 63 ProfileSyncService* profile_sync_service, |
58 PasswordStore* password_store, | 64 PasswordStore* password_store, |
59 browser_sync::UnrecoverableErrorHandler* error_handler); | 65 browser_sync::UnrecoverableErrorHandler* error_handler); |
60 | 66 |
61 virtual SyncComponents CreatePreferenceSyncComponents( | 67 virtual SyncComponents CreatePreferenceSyncComponents( |
(...skipping 18 matching lines...) Expand all Loading... |
80 browser_sync::UnrecoverableErrorHandler* error_handler); | 86 browser_sync::UnrecoverableErrorHandler* error_handler); |
81 | 87 |
82 private: | 88 private: |
83 Profile* profile_; | 89 Profile* profile_; |
84 CommandLine* command_line_; | 90 CommandLine* command_line_; |
85 | 91 |
86 DISALLOW_COPY_AND_ASSIGN(ProfileSyncFactoryImpl); | 92 DISALLOW_COPY_AND_ASSIGN(ProfileSyncFactoryImpl); |
87 }; | 93 }; |
88 | 94 |
89 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_IMPL_H__ | 95 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_IMPL_H__ |
OLD | NEW |