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

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

Issue 10696087: [Sync] Move ModelType and related classes to 'syncer' namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sort headers, update copyrights Created 8 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 | Annotate | Revision Log
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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 browser_sync::DataTypeErrorHandler* error_handler, 78 browser_sync::DataTypeErrorHandler* error_handler,
79 const base::WeakPtr<syncer::SyncableService>& local_service) = 0; 79 const base::WeakPtr<syncer::SyncableService>& local_service) = 0;
80 80
81 virtual browser_sync::SharedChangeProcessor* 81 virtual browser_sync::SharedChangeProcessor*
82 CreateSharedChangeProcessor() = 0; 82 CreateSharedChangeProcessor() = 0;
83 83
84 // Returns a weak pointer to the syncable service specified by |type|. 84 // Returns a weak pointer to the syncable service specified by |type|.
85 // Weak pointer may be unset if service is already destroyed. 85 // Weak pointer may be unset if service is already destroyed.
86 // Note: Should only be called on the same thread on which a datatype resides. 86 // Note: Should only be called on the same thread on which a datatype resides.
87 virtual base::WeakPtr<syncer::SyncableService> GetSyncableServiceForType( 87 virtual base::WeakPtr<syncer::SyncableService> GetSyncableServiceForType(
88 syncable::ModelType type) = 0; 88 syncer::ModelType type) = 0;
89 89
90 // Legacy datatypes that need to be converted to the SyncableService API. 90 // Legacy datatypes that need to be converted to the SyncableService API.
91 virtual SyncComponents CreateBookmarkSyncComponents( 91 virtual SyncComponents CreateBookmarkSyncComponents(
92 ProfileSyncService* profile_sync_service, 92 ProfileSyncService* profile_sync_service,
93 browser_sync::DataTypeErrorHandler* error_handler) = 0; 93 browser_sync::DataTypeErrorHandler* error_handler) = 0;
94 virtual SyncComponents CreatePasswordSyncComponents( 94 virtual SyncComponents CreatePasswordSyncComponents(
95 ProfileSyncService* profile_sync_service, 95 ProfileSyncService* profile_sync_service,
96 PasswordStore* password_store, 96 PasswordStore* password_store,
97 browser_sync::DataTypeErrorHandler* error_handler) = 0; 97 browser_sync::DataTypeErrorHandler* error_handler) = 0;
98 #if defined(ENABLE_THEMES) 98 #if defined(ENABLE_THEMES)
99 virtual SyncComponents CreateThemeSyncComponents( 99 virtual SyncComponents CreateThemeSyncComponents(
100 ProfileSyncService* profile_sync_service, 100 ProfileSyncService* profile_sync_service,
101 browser_sync::DataTypeErrorHandler* error_handler) = 0; 101 browser_sync::DataTypeErrorHandler* error_handler) = 0;
102 #endif 102 #endif
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 virtual SyncComponents CreateSessionSyncComponents( 107 virtual SyncComponents CreateSessionSyncComponents(
108 ProfileSyncService* profile_sync_service, 108 ProfileSyncService* profile_sync_service,
109 browser_sync::DataTypeErrorHandler* error_handler) = 0; 109 browser_sync::DataTypeErrorHandler* error_handler) = 0;
110 }; 110 };
111 111
112 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_H__ 112 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698