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

Side by Side Diff: chrome/browser/sync/glue/sync_backend_host.h

Issue 1081413003: [Sync] Have configuration specify which datatypes are ready to sync (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix components_unittests Created 5 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
« no previous file with comments | « no previous file | chrome/browser/sync/glue/sync_backend_host_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_GLUE_SYNC_BACKEND_HOST_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_
6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 virtual scoped_ptr<base::Thread> Shutdown(syncer::ShutdownReason reason) = 0; 126 virtual scoped_ptr<base::Thread> Shutdown(syncer::ShutdownReason reason) = 0;
127 127
128 // Removes all current registrations from the backend on the 128 // Removes all current registrations from the backend on the
129 // InvalidationService. 129 // InvalidationService.
130 virtual void UnregisterInvalidationIds() = 0; 130 virtual void UnregisterInvalidationIds() = 0;
131 131
132 // Changes the set of data types that are currently being synced. 132 // Changes the set of data types that are currently being synced.
133 // The ready_task will be run when configuration is done with the 133 // The ready_task will be run when configuration is done with the
134 // set of all types that failed configuration (i.e., if its argument 134 // set of all types that failed configuration (i.e., if its argument
135 // is non-empty, then an error was encountered). 135 // is non-empty, then an error was encountered).
136 void ConfigureDataTypes( 136 // Returns the set of types that are ready to start without needing any
137 // further sync activity.
138 // BackendDataTypeConfigurer implementation.
139 syncer::ModelTypeSet ConfigureDataTypes(
137 syncer::ConfigureReason reason, 140 syncer::ConfigureReason reason,
138 const DataTypeConfigStateMap& config_state_map, 141 const DataTypeConfigStateMap& config_state_map,
139 const base::Callback<void(syncer::ModelTypeSet, syncer::ModelTypeSet)>& 142 const base::Callback<void(syncer::ModelTypeSet, syncer::ModelTypeSet)>&
140 ready_task, 143 ready_task,
141 const base::Callback<void()>& retry_callback) override = 0; 144 const base::Callback<void()>& retry_callback) override = 0;
142 145
143 // Turns on encryption of all present and future sync data. 146 // Turns on encryption of all present and future sync data.
144 virtual void EnableEncryptEverything() = 0; 147 virtual void EnableEncryptEverything() = 0;
145 148
146 // Called on |frontend_loop_| to obtain a handle to the UserShare needed for 149 // Called on |frontend_loop_| to obtain a handle to the UserShare needed for
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 virtual void DisableDirectoryTypeDebugInfoForwarding() = 0; 216 virtual void DisableDirectoryTypeDebugInfoForwarding() = 0;
214 217
215 virtual base::MessageLoop* GetSyncLoopForTesting() = 0; 218 virtual base::MessageLoop* GetSyncLoopForTesting() = 0;
216 219
217 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); 220 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost);
218 }; 221 };
219 222
220 } // namespace browser_sync 223 } // namespace browser_sync
221 224
222 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ 225 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync/glue/sync_backend_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698