Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(398)

Side by Side Diff: chrome/browser/sync/profile_sync_components_factory_impl.h

Issue 367153005: Sync: Refactoring of DEVICE_INFO syncable type - Part 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed scoped_ptr issue in ProfileSyncService constructor Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 browser_sync::FailedDataTypesHandler* failed_data_types_handler) 54 browser_sync::FailedDataTypesHandler* failed_data_types_handler)
55 OVERRIDE; 55 OVERRIDE;
56 56
57 virtual browser_sync::SyncBackendHost* CreateSyncBackendHost( 57 virtual browser_sync::SyncBackendHost* CreateSyncBackendHost(
58 const std::string& name, 58 const std::string& name,
59 Profile* profile, 59 Profile* profile,
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>
65 CreateLocalDeviceInfoProvider() OVERRIDE;
66
64 virtual base::WeakPtr<syncer::SyncableService> GetSyncableServiceForType( 67 virtual base::WeakPtr<syncer::SyncableService> GetSyncableServiceForType(
65 syncer::ModelType type) OVERRIDE; 68 syncer::ModelType type) OVERRIDE;
66 virtual scoped_ptr<syncer::AttachmentService> CreateAttachmentService( 69 virtual scoped_ptr<syncer::AttachmentService> CreateAttachmentService(
67 const syncer::UserShare& user_share, 70 const syncer::UserShare& user_share,
68 syncer::AttachmentService::Delegate* delegate) OVERRIDE; 71 syncer::AttachmentService::Delegate* delegate) OVERRIDE;
69 72
70 // Legacy datatypes that need to be converted to the SyncableService API. 73 // Legacy datatypes that need to be converted to the SyncableService API.
71 virtual SyncComponents CreateBookmarkSyncComponents( 74 virtual SyncComponents CreateBookmarkSyncComponents(
72 ProfileSyncService* profile_sync_service, 75 ProfileSyncService* profile_sync_service,
73 browser_sync::DataTypeErrorHandler* error_handler) OVERRIDE; 76 browser_sync::DataTypeErrorHandler* error_handler) OVERRIDE;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 const GURL sync_service_url_; 111 const GURL sync_service_url_;
109 OAuth2TokenService* const token_service_; 112 OAuth2TokenService* const token_service_;
110 net::URLRequestContextGetter* const url_request_context_getter_; 113 net::URLRequestContextGetter* const url_request_context_getter_;
111 114
112 base::WeakPtrFactory<ProfileSyncComponentsFactoryImpl> weak_factory_; 115 base::WeakPtrFactory<ProfileSyncComponentsFactoryImpl> weak_factory_;
113 116
114 DISALLOW_COPY_AND_ASSIGN(ProfileSyncComponentsFactoryImpl); 117 DISALLOW_COPY_AND_ASSIGN(ProfileSyncComponentsFactoryImpl);
115 }; 118 };
116 119
117 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__ 120 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_components_factory.h ('k') | chrome/browser/sync/profile_sync_components_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698