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

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

Issue 7669073: [Sync] Add support for enabling session sync remotely. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: DOUBLE R..ebase Created 9 years, 4 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 // Creates and registers enabled datatypes with the provided 55 // Creates and registers enabled datatypes with the provided
56 // ProfileSyncService. 56 // ProfileSyncService.
57 virtual void RegisterDataTypes(ProfileSyncService* pss) = 0; 57 virtual void RegisterDataTypes(ProfileSyncService* pss) = 0;
58 58
59 // Instantiates a new DataTypeManager with a SyncBackendHost and a 59 // Instantiates a new DataTypeManager with a SyncBackendHost and a
60 // list of data type controllers. The return pointer is owned by 60 // list of data type controllers. The return pointer is owned by
61 // the caller. 61 // the caller.
62 virtual browser_sync::DataTypeManager* CreateDataTypeManager( 62 virtual browser_sync::DataTypeManager* CreateDataTypeManager(
63 browser_sync::SyncBackendHost* backend, 63 browser_sync::SyncBackendHost* backend,
64 const browser_sync::DataTypeController::TypeMap& controllers) = 0; 64 const browser_sync::DataTypeController::TypeMap* controllers) = 0;
65 65
66 // Instantiates both a model associator and change processor for the 66 // Instantiates both a model associator and change processor for the
67 // app data type. The pointers in the return struct are 67 // app data type. The pointers in the return struct are
68 // owned by the caller. 68 // owned by the caller.
69 virtual SyncComponents CreateAppSyncComponents( 69 virtual SyncComponents CreateAppSyncComponents(
70 ProfileSyncService* profile_sync_service, 70 ProfileSyncService* profile_sync_service,
71 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; 71 browser_sync::UnrecoverableErrorHandler* error_handler) = 0;
72 72
73 // Instantiates both a model associator and change processor for the 73 // Instantiates both a model associator and change processor for the
74 // autofill data type. The pointers in the return struct are owned 74 // autofill data type. The pointers in the return struct are owned
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 134
135 // Instantiates both a model associator and change processor for the 135 // Instantiates both a model associator and change processor for the
136 // session data type. The pointers in the return struct are 136 // session data type. The pointers in the return struct are
137 // owned by the caller. 137 // owned by the caller.
138 virtual SyncComponents CreateSessionSyncComponents( 138 virtual SyncComponents CreateSessionSyncComponents(
139 ProfileSyncService* profile_sync_service, 139 ProfileSyncService* profile_sync_service,
140 browser_sync::UnrecoverableErrorHandler* error_handler) = 0; 140 browser_sync::UnrecoverableErrorHandler* error_handler) = 0;
141 }; 141 };
142 142
143 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_H__ 143 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_H__
OLDNEW
« no previous file with comments | « chrome/browser/sync/internal_api/sync_manager.cc ('k') | chrome/browser/sync/profile_sync_factory_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698