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

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

Issue 272043002: Invoke AttachmentUploader and update AttachmentIds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android build Created 6 years, 7 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_H__ 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_H__
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_H__ 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_H__
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // TODO(zea): Have all datatypes using the new API switch to returning 64 // TODO(zea): Have all datatypes using the new API switch to returning
65 // SyncableService weak pointers instead of SyncComponents (crbug.com/100114). 65 // SyncableService weak pointers instead of SyncComponents (crbug.com/100114).
66 struct SyncComponents { 66 struct SyncComponents {
67 browser_sync::AssociatorInterface* model_associator; 67 browser_sync::AssociatorInterface* model_associator;
68 browser_sync::ChangeProcessor* change_processor; 68 browser_sync::ChangeProcessor* change_processor;
69 SyncComponents(browser_sync::AssociatorInterface* ma, 69 SyncComponents(browser_sync::AssociatorInterface* ma,
70 browser_sync::ChangeProcessor* cp) 70 browser_sync::ChangeProcessor* cp)
71 : model_associator(ma), change_processor(cp) {} 71 : model_associator(ma), change_processor(cp) {}
72 }; 72 };
73 73
74 virtual ~ProfileSyncComponentsFactory() {} 74 virtual ~ProfileSyncComponentsFactory() OVERRIDE {}
75 75
76 // Creates and registers enabled datatypes with the provided 76 // Creates and registers enabled datatypes with the provided
77 // ProfileSyncService. 77 // ProfileSyncService.
78 virtual void RegisterDataTypes(ProfileSyncService* pss) = 0; 78 virtual void RegisterDataTypes(ProfileSyncService* pss) = 0;
79 79
80 // Instantiates a new DataTypeManager with a SyncBackendHost, a list of data 80 // Instantiates a new DataTypeManager with a SyncBackendHost, a list of data
81 // type controllers and a DataTypeManagerObserver. The return pointer is 81 // type controllers and a DataTypeManagerObserver. The return pointer is
82 // owned by the caller. 82 // owned by the caller.
83 virtual browser_sync::DataTypeManager* CreateDataTypeManager( 83 virtual browser_sync::DataTypeManager* CreateDataTypeManager(
84 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>& 84 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>&
(...skipping 15 matching lines...) Expand all
100 virtual SyncComponents CreateBookmarkSyncComponents( 100 virtual SyncComponents CreateBookmarkSyncComponents(
101 ProfileSyncService* profile_sync_service, 101 ProfileSyncService* profile_sync_service,
102 browser_sync::DataTypeErrorHandler* error_handler) = 0; 102 browser_sync::DataTypeErrorHandler* error_handler) = 0;
103 virtual SyncComponents CreateTypedUrlSyncComponents( 103 virtual SyncComponents CreateTypedUrlSyncComponents(
104 ProfileSyncService* profile_sync_service, 104 ProfileSyncService* profile_sync_service,
105 history::HistoryBackend* history_backend, 105 history::HistoryBackend* history_backend,
106 browser_sync::DataTypeErrorHandler* error_handler) = 0; 106 browser_sync::DataTypeErrorHandler* error_handler) = 0;
107 }; 107 };
108 108
109 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_H__ 109 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698