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 COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__ | 5 #ifndef COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__ |
6 #define COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__ | 6 #define COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 CreateLocalDeviceInfoProvider() override; | 78 CreateLocalDeviceInfoProvider() override; |
79 std::unique_ptr<syncer::AttachmentService> CreateAttachmentService( | 79 std::unique_ptr<syncer::AttachmentService> CreateAttachmentService( |
80 std::unique_ptr<syncer::AttachmentStoreForSync> attachment_store, | 80 std::unique_ptr<syncer::AttachmentStoreForSync> attachment_store, |
81 const syncer::UserShare& user_share, | 81 const syncer::UserShare& user_share, |
82 const std::string& store_birthday, | 82 const std::string& store_birthday, |
83 syncer::ModelType model_type, | 83 syncer::ModelType model_type, |
84 syncer::AttachmentService::Delegate* delegate) override; | 84 syncer::AttachmentService::Delegate* delegate) override; |
85 sync_driver::SyncApiComponentFactory::SyncComponents | 85 sync_driver::SyncApiComponentFactory::SyncComponents |
86 CreateBookmarkSyncComponents( | 86 CreateBookmarkSyncComponents( |
87 sync_driver::SyncService* sync_service, | 87 sync_driver::SyncService* sync_service, |
88 sync_driver::DataTypeErrorHandler* error_handler) override; | 88 syncer::DataTypeErrorHandler* error_handler) override; |
89 | 89 |
90 private: | 90 private: |
91 // Register data types which are enabled on both desktop and mobile. | 91 // Register data types which are enabled on both desktop and mobile. |
92 // |disabled_types| and |enabled_types| correspond only to those types | 92 // |disabled_types| and |enabled_types| correspond only to those types |
93 // being explicitly enabled/disabled by the command line. | 93 // being explicitly enabled/disabled by the command line. |
94 void RegisterCommonDataTypes(sync_driver::SyncService* sync_service, | 94 void RegisterCommonDataTypes(sync_driver::SyncService* sync_service, |
95 syncer::ModelTypeSet disabled_types, | 95 syncer::ModelTypeSet disabled_types, |
96 syncer::ModelTypeSet enabled_types); | 96 syncer::ModelTypeSet enabled_types); |
97 | 97 |
98 void DisableBrokenType(syncer::ModelType type, | 98 void DisableBrokenType(syncer::ModelType type, |
(...skipping 14 matching lines...) Expand all Loading... |
113 net::URLRequestContextGetter* const url_request_context_getter_; | 113 net::URLRequestContextGetter* const url_request_context_getter_; |
114 const scoped_refptr<autofill::AutofillWebDataService> web_data_service_; | 114 const scoped_refptr<autofill::AutofillWebDataService> web_data_service_; |
115 const scoped_refptr<password_manager::PasswordStore> password_store_; | 115 const scoped_refptr<password_manager::PasswordStore> password_store_; |
116 | 116 |
117 base::WeakPtrFactory<ProfileSyncComponentsFactoryImpl> weak_factory_; | 117 base::WeakPtrFactory<ProfileSyncComponentsFactoryImpl> weak_factory_; |
118 | 118 |
119 DISALLOW_COPY_AND_ASSIGN(ProfileSyncComponentsFactoryImpl); | 119 DISALLOW_COPY_AND_ASSIGN(ProfileSyncComponentsFactoryImpl); |
120 }; | 120 }; |
121 | 121 |
122 #endif // COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_
H__ | 122 #endif // COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_
H__ |
OLD | NEW |