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

Side by Side Diff: components/sync/engine/sync_manager.h

Issue 2470153002: Revert of [Sync] Adds a new switch for enabling the new local server backend. (Closed)
Patch Set: Created 4 years, 1 month 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 COMPONENTS_SYNC_ENGINE_SYNC_MANAGER_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_SYNC_MANAGER_H_
6 #define COMPONENTS_SYNC_ENGINE_SYNC_MANAGER_H_ 6 #define COMPONENTS_SYNC_ENGINE_SYNC_MANAGER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 // Path in which to create or open sync's sqlite database (aka the 217 // Path in which to create or open sync's sqlite database (aka the
218 // directory). 218 // directory).
219 base::FilePath database_location; 219 base::FilePath database_location;
220 220
221 // Used to propagate events to chrome://sync-internals. Optional. 221 // Used to propagate events to chrome://sync-internals. Optional.
222 WeakHandle<JsEventHandler> event_handler; 222 WeakHandle<JsEventHandler> event_handler;
223 223
224 // URL of the sync server. 224 // URL of the sync server.
225 GURL service_url; 225 GURL service_url;
226 226
227 // Whether the local backend provided by the LoopbackServer should be used
228 // and the location of the local sync backend storage.
229 bool enable_local_sync_backend;
230 base::FilePath local_sync_backend_folder;
231
232 // Used to communicate with the sync server. 227 // Used to communicate with the sync server.
233 std::unique_ptr<HttpPostProviderFactory> post_factory; 228 std::unique_ptr<HttpPostProviderFactory> post_factory;
234 229
235 std::vector<scoped_refptr<ModelSafeWorker>> workers; 230 std::vector<scoped_refptr<ModelSafeWorker>> workers;
236 231
237 // Must outlive SyncManager. 232 // Must outlive SyncManager.
238 ExtensionsActivity* extensions_activity; 233 ExtensionsActivity* extensions_activity;
239 234
240 // Must outlive SyncManager. 235 // Must outlive SyncManager.
241 ChangeDelegate* change_delegate; 236 ChangeDelegate* change_delegate;
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 393
399 // Updates Sync's tracking of whether the cookie jar has a mismatch with the 394 // Updates Sync's tracking of whether the cookie jar has a mismatch with the
400 // chrome account. See ClientConfigParams proto message for more info. 395 // chrome account. See ClientConfigParams proto message for more info.
401 // Note: this does not trigger a sync cycle. It just updates the sync context. 396 // Note: this does not trigger a sync cycle. It just updates the sync context.
402 virtual void OnCookieJarChanged(bool account_mismatch, bool empty_jar) = 0; 397 virtual void OnCookieJarChanged(bool account_mismatch, bool empty_jar) = 0;
403 }; 398 };
404 399
405 } // namespace syncer 400 } // namespace syncer
406 401
407 #endif // COMPONENTS_SYNC_ENGINE_SYNC_MANAGER_H_ 402 #endif // COMPONENTS_SYNC_ENGINE_SYNC_MANAGER_H_
OLDNEW
« no previous file with comments | « components/sync/driver/glue/sync_backend_host_mock.cc ('k') | components/sync/engine/sync_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698