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

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

Issue 6905044: Refactor preference syncing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix the previous fix Created 9 years, 8 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_FACTORY_H__ 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_H__
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_H__ 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_H__
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 // Instantiates both a model associator and change processor for the 105 // Instantiates both a model associator and change processor for the
106 // password data type. The pointers in the return struct are 106 // password data type. The pointers in the return struct are
107 // owned by the caller. 107 // owned by the caller.
108 virtual SyncComponents CreatePasswordSyncComponents( 108 virtual SyncComponents CreatePasswordSyncComponents(
109 ProfileSyncService* profile_sync_service, 109 ProfileSyncService* profile_sync_service,
110 PasswordStore* password_store, 110 PasswordStore* password_store,
111 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; 111 browser_sync::UnrecoverableErrorHandler* error_handler) = 0;
112 112
113 // Instantiates both a model associator and change processor for the 113 // Instantiates both a model associator and change processor for the
114 // preference data type. The pointers in the return struct are
115 // owned by the caller.
116 virtual SyncComponents CreatePreferenceSyncComponents(
117 ProfileSyncService* profile_sync_service,
118 browser_sync::UnrecoverableErrorHandler* error_handler) = 0;
119
120 // Instantiates both a model associator and change processor for the
121 // theme data type. The pointers in the return struct are 114 // theme data type. The pointers in the return struct are
122 // owned by the caller. 115 // owned by the caller.
123 virtual SyncComponents CreateThemeSyncComponents( 116 virtual SyncComponents CreateThemeSyncComponents(
124 ProfileSyncService* profile_sync_service, 117 ProfileSyncService* profile_sync_service,
125 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; 118 browser_sync::UnrecoverableErrorHandler* error_handler) = 0;
126 119
127 // Instantiates both a model associator and change processor for the 120 // Instantiates both a model associator and change processor for the
128 // typed_url data type. The pointers in the return struct are owned 121 // typed_url data type. The pointers in the return struct are owned
129 // by the caller. 122 // by the caller.
130 virtual SyncComponents CreateTypedUrlSyncComponents( 123 virtual SyncComponents CreateTypedUrlSyncComponents(
131 ProfileSyncService* profile_sync_service, 124 ProfileSyncService* profile_sync_service,
132 history::HistoryBackend* history_backend, 125 history::HistoryBackend* history_backend,
133 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; 126 browser_sync::UnrecoverableErrorHandler* error_handler) = 0;
134 127
135 // Instantiates both a model associator and change processor for the 128 // Instantiates both a model associator and change processor for the
136 // session data type. The pointers in the return struct are 129 // session data type. The pointers in the return struct are
137 // owned by the caller. 130 // owned by the caller.
138 virtual SyncComponents CreateSessionSyncComponents( 131 virtual SyncComponents CreateSessionSyncComponents(
139 ProfileSyncService* profile_sync_service, 132 ProfileSyncService* profile_sync_service,
140 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; 133 browser_sync::UnrecoverableErrorHandler* error_handler) = 0;
141 }; 134 };
142 135
143 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_H__ 136 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698