| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "chrome/browser/sync/profile_sync_factory.h" | 9 #include "chrome/browser/sync/profile_sync_factory.h" |
| 10 | 10 |
| 11 class CommandLine; | 11 class CommandLine; |
| 12 class Profile; | 12 class Profile; |
| 13 | 13 |
| 14 namespace chrome_common_net { | |
| 15 class NetworkChangeNotifierThread; | |
| 16 } | |
| 17 | |
| 18 class ProfileSyncFactoryImpl : public ProfileSyncFactory { | 14 class ProfileSyncFactoryImpl : public ProfileSyncFactory { |
| 19 public: | 15 public: |
| 20 ProfileSyncFactoryImpl( | 16 ProfileSyncFactoryImpl(Profile* profile, CommandLine* command_line); |
| 21 Profile* profile, | |
| 22 chrome_common_net::NetworkChangeNotifierThread* | |
| 23 network_change_notifier_thread, | |
| 24 CommandLine* command_line); | |
| 25 virtual ~ProfileSyncFactoryImpl() {} | 17 virtual ~ProfileSyncFactoryImpl() {} |
| 26 | 18 |
| 27 // ProfileSyncFactory interface. | 19 // ProfileSyncFactory interface. |
| 28 virtual ProfileSyncService* CreateProfileSyncService(); | 20 virtual ProfileSyncService* CreateProfileSyncService(); |
| 29 | 21 |
| 30 virtual browser_sync::DataTypeManager* CreateDataTypeManager( | 22 virtual browser_sync::DataTypeManager* CreateDataTypeManager( |
| 31 browser_sync::SyncBackendHost* backend, | 23 browser_sync::SyncBackendHost* backend, |
| 32 const browser_sync::DataTypeController::TypeMap& controllers); | 24 const browser_sync::DataTypeController::TypeMap& controllers); |
| 33 | 25 |
| 34 virtual SyncComponents CreateAutofillSyncComponents( | 26 virtual SyncComponents CreateAutofillSyncComponents( |
| (...skipping 23 matching lines...) Expand all Loading... |
| 58 ProfileSyncService* profile_sync_service, | 50 ProfileSyncService* profile_sync_service, |
| 59 browser_sync::UnrecoverableErrorHandler* error_handler); | 51 browser_sync::UnrecoverableErrorHandler* error_handler); |
| 60 | 52 |
| 61 virtual SyncComponents CreateTypedUrlSyncComponents( | 53 virtual SyncComponents CreateTypedUrlSyncComponents( |
| 62 ProfileSyncService* profile_sync_service, | 54 ProfileSyncService* profile_sync_service, |
| 63 history::HistoryBackend* history_backend, | 55 history::HistoryBackend* history_backend, |
| 64 browser_sync::UnrecoverableErrorHandler* error_handler); | 56 browser_sync::UnrecoverableErrorHandler* error_handler); |
| 65 | 57 |
| 66 private: | 58 private: |
| 67 Profile* profile_; | 59 Profile* profile_; |
| 68 chrome_common_net::NetworkChangeNotifierThread* | |
| 69 network_change_notifier_thread_; | |
| 70 CommandLine* command_line_; | 60 CommandLine* command_line_; |
| 71 | 61 |
| 72 DISALLOW_COPY_AND_ASSIGN(ProfileSyncFactoryImpl); | 62 DISALLOW_COPY_AND_ASSIGN(ProfileSyncFactoryImpl); |
| 73 }; | 63 }; |
| 74 | 64 |
| 75 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_IMPL_H__ | 65 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_IMPL_H__ |
| OLD | NEW |