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