OLD | NEW |
1 // Copyright (c) 2010 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 Profile; | 15 class Profile; |
16 | 16 |
17 class ProfileSyncFactoryImpl : public ProfileSyncFactory { | 17 class ProfileSyncFactoryImpl : public ProfileSyncFactory { |
18 public: | 18 public: |
19 ProfileSyncFactoryImpl(Profile* profile, CommandLine* command_line); | 19 ProfileSyncFactoryImpl(Profile* profile, CommandLine* command_line); |
20 virtual ~ProfileSyncFactoryImpl() {} | 20 virtual ~ProfileSyncFactoryImpl() {} |
21 | 21 |
22 // ProfileSyncFactory interface. | 22 // ProfileSyncFactory interface. |
23 virtual ProfileSyncService* CreateProfileSyncService( | 23 virtual ProfileSyncService* CreateProfileSyncService( |
24 const std::string& cros_user); | 24 const std::string& cros_user); |
25 | 25 |
| 26 virtual void RegisterDataTypes(ProfileSyncService* pss); |
| 27 |
26 virtual browser_sync::DataTypeManager* CreateDataTypeManager( | 28 virtual browser_sync::DataTypeManager* CreateDataTypeManager( |
27 browser_sync::SyncBackendHost* backend, | 29 browser_sync::SyncBackendHost* backend, |
28 const browser_sync::DataTypeController::TypeMap& controllers); | 30 const browser_sync::DataTypeController::TypeMap& controllers); |
29 | 31 |
30 virtual SyncComponents CreateAppSyncComponents( | 32 virtual SyncComponents CreateAppSyncComponents( |
31 ProfileSyncService* profile_sync_service, | 33 ProfileSyncService* profile_sync_service, |
32 browser_sync::UnrecoverableErrorHandler* error_handler); | 34 browser_sync::UnrecoverableErrorHandler* error_handler); |
33 | 35 |
34 virtual SyncComponents CreateAutofillSyncComponents( | 36 virtual SyncComponents CreateAutofillSyncComponents( |
35 ProfileSyncService* profile_sync_service, | 37 ProfileSyncService* profile_sync_service, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 browser_sync::UnrecoverableErrorHandler* error_handler); | 76 browser_sync::UnrecoverableErrorHandler* error_handler); |
75 | 77 |
76 private: | 78 private: |
77 Profile* profile_; | 79 Profile* profile_; |
78 CommandLine* command_line_; | 80 CommandLine* command_line_; |
79 | 81 |
80 DISALLOW_COPY_AND_ASSIGN(ProfileSyncFactoryImpl); | 82 DISALLOW_COPY_AND_ASSIGN(ProfileSyncFactoryImpl); |
81 }; | 83 }; |
82 | 84 |
83 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_IMPL_H__ | 85 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_IMPL_H__ |
OLD | NEW |