| OLD | NEW |
| 1 // Copyright (c) 2012 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 invalidation::InvalidationService* invalidator, | 60 invalidation::InvalidationService* invalidator, |
| 61 const base::WeakPtr<sync_driver::SyncPrefs>& sync_prefs, | 61 const base::WeakPtr<sync_driver::SyncPrefs>& sync_prefs, |
| 62 const base::FilePath& sync_folder) OVERRIDE; | 62 const base::FilePath& sync_folder) OVERRIDE; |
| 63 | 63 |
| 64 virtual scoped_ptr<browser_sync::LocalDeviceInfoProvider> | 64 virtual scoped_ptr<browser_sync::LocalDeviceInfoProvider> |
| 65 CreateLocalDeviceInfoProvider() OVERRIDE; | 65 CreateLocalDeviceInfoProvider() OVERRIDE; |
| 66 | 66 |
| 67 virtual base::WeakPtr<syncer::SyncableService> GetSyncableServiceForType( | 67 virtual base::WeakPtr<syncer::SyncableService> GetSyncableServiceForType( |
| 68 syncer::ModelType type) OVERRIDE; | 68 syncer::ModelType type) OVERRIDE; |
| 69 virtual scoped_ptr<syncer::AttachmentService> CreateAttachmentService( | 69 virtual scoped_ptr<syncer::AttachmentService> CreateAttachmentService( |
| 70 const scoped_refptr<syncer::AttachmentStore>& attachment_store, |
| 70 const syncer::UserShare& user_share, | 71 const syncer::UserShare& user_share, |
| 71 syncer::AttachmentService::Delegate* delegate) OVERRIDE; | 72 syncer::AttachmentService::Delegate* delegate) OVERRIDE; |
| 72 | 73 |
| 73 // Legacy datatypes that need to be converted to the SyncableService API. | 74 // Legacy datatypes that need to be converted to the SyncableService API. |
| 74 virtual SyncComponents CreateBookmarkSyncComponents( | 75 virtual SyncComponents CreateBookmarkSyncComponents( |
| 75 ProfileSyncService* profile_sync_service, | 76 ProfileSyncService* profile_sync_service, |
| 76 sync_driver::DataTypeErrorHandler* error_handler) OVERRIDE; | 77 sync_driver::DataTypeErrorHandler* error_handler) OVERRIDE; |
| 77 virtual SyncComponents CreateTypedUrlSyncComponents( | 78 virtual SyncComponents CreateTypedUrlSyncComponents( |
| 78 ProfileSyncService* profile_sync_service, | 79 ProfileSyncService* profile_sync_service, |
| 79 history::HistoryBackend* history_backend, | 80 history::HistoryBackend* history_backend, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 107 const GURL sync_service_url_; | 108 const GURL sync_service_url_; |
| 108 OAuth2TokenService* const token_service_; | 109 OAuth2TokenService* const token_service_; |
| 109 net::URLRequestContextGetter* const url_request_context_getter_; | 110 net::URLRequestContextGetter* const url_request_context_getter_; |
| 110 | 111 |
| 111 base::WeakPtrFactory<ProfileSyncComponentsFactoryImpl> weak_factory_; | 112 base::WeakPtrFactory<ProfileSyncComponentsFactoryImpl> weak_factory_; |
| 112 | 113 |
| 113 DISALLOW_COPY_AND_ASSIGN(ProfileSyncComponentsFactoryImpl); | 114 DISALLOW_COPY_AND_ASSIGN(ProfileSyncComponentsFactoryImpl); |
| 114 }; | 115 }; |
| 115 | 116 |
| 116 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__ | 117 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__ |
| OLD | NEW |