| OLD | NEW |
| 1 // Copyright (c) 2011 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_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__ | 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__ |
| 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__ | 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_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 "base/compiler_specific.h" |
| 13 #include "chrome/browser/sync/profile_sync_components_factory.h" | 13 #include "chrome/browser/sync/profile_sync_components_factory.h" |
| 14 | 14 |
| 15 class CommandLine; | 15 class CommandLine; |
| 16 class Profile; | 16 class Profile; |
| 17 | 17 |
| 18 class ProfileSyncComponentsFactoryImpl : public ProfileSyncComponentsFactory { | 18 class ProfileSyncComponentsFactoryImpl : public ProfileSyncComponentsFactory { |
| 19 public: | 19 public: |
| 20 ProfileSyncComponentsFactoryImpl(Profile* profile, | 20 ProfileSyncComponentsFactoryImpl(Profile* profile, |
| 21 CommandLine* command_line); | 21 CommandLine* command_line); |
| 22 virtual ~ProfileSyncComponentsFactoryImpl() {} | 22 virtual ~ProfileSyncComponentsFactoryImpl() {} |
| 23 | 23 |
| 24 // ProfileSyncComponentsFactory interface. | |
| 25 virtual ProfileSyncService* CreateProfileSyncService() OVERRIDE; | |
| 26 | |
| 27 virtual void RegisterDataTypes(ProfileSyncService* pss) OVERRIDE; | 24 virtual void RegisterDataTypes(ProfileSyncService* pss) OVERRIDE; |
| 28 | 25 |
| 29 virtual browser_sync::DataTypeManager* CreateDataTypeManager( | 26 virtual browser_sync::DataTypeManager* CreateDataTypeManager( |
| 30 browser_sync::SyncBackendHost* backend, | 27 browser_sync::SyncBackendHost* backend, |
| 31 const browser_sync::DataTypeController::TypeMap* controllers) OVERRIDE; | 28 const browser_sync::DataTypeController::TypeMap* controllers) OVERRIDE; |
| 32 | 29 |
| 33 virtual browser_sync::GenericChangeProcessor* CreateGenericChangeProcessor( | 30 virtual browser_sync::GenericChangeProcessor* CreateGenericChangeProcessor( |
| 34 ProfileSyncService* profile_sync_service, | 31 ProfileSyncService* profile_sync_service, |
| 35 browser_sync::UnrecoverableErrorHandler* error_handler, | 32 browser_sync::UnrecoverableErrorHandler* error_handler, |
| 36 const base::WeakPtr<SyncableService>& local_service) OVERRIDE; | 33 const base::WeakPtr<SyncableService>& local_service) OVERRIDE; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 browser_sync::UnrecoverableErrorHandler* error_handler) OVERRIDE; | 91 browser_sync::UnrecoverableErrorHandler* error_handler) OVERRIDE; |
| 95 | 92 |
| 96 private: | 93 private: |
| 97 Profile* profile_; | 94 Profile* profile_; |
| 98 CommandLine* command_line_; | 95 CommandLine* command_line_; |
| 99 | 96 |
| 100 DISALLOW_COPY_AND_ASSIGN(ProfileSyncComponentsFactoryImpl); | 97 DISALLOW_COPY_AND_ASSIGN(ProfileSyncComponentsFactoryImpl); |
| 101 }; | 98 }; |
| 102 | 99 |
| 103 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__ | 100 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__ |
| OLD | NEW |