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

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

Issue 15421011: Use OAuth2 token for sync (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 7 years, 6 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 | « chrome/browser/sync/about_sync_util.cc ('k') | chrome/browser/sync/glue/sync_backend_host.cc » ('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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 const syncer::SyncCredentials& credentials, 327 const syncer::SyncCredentials& credentials,
328 AndroidInvalidatorBridge* android_invalidator_bridge, 328 AndroidInvalidatorBridge* android_invalidator_bridge,
329 syncer::InvalidatorFactory* invalidator_factory, 329 syncer::InvalidatorFactory* invalidator_factory,
330 syncer::SyncManagerFactory* sync_manager_factory, 330 syncer::SyncManagerFactory* sync_manager_factory,
331 bool delete_sync_data_folder, 331 bool delete_sync_data_folder,
332 const std::string& restored_key_for_bootstrapping, 332 const std::string& restored_key_for_bootstrapping,
333 const std::string& restored_keystore_key_for_bootstrapping, 333 const std::string& restored_keystore_key_for_bootstrapping,
334 syncer::InternalComponentsFactory* internal_components_factory, 334 syncer::InternalComponentsFactory* internal_components_factory,
335 syncer::UnrecoverableErrorHandler* unrecoverable_error_handler, 335 syncer::UnrecoverableErrorHandler* unrecoverable_error_handler,
336 syncer::ReportUnrecoverableErrorFunction 336 syncer::ReportUnrecoverableErrorFunction
337 report_unrecoverable_error_function); 337 report_unrecoverable_error_function,
338 bool use_oauth2_token);
338 ~DoInitializeOptions(); 339 ~DoInitializeOptions();
339 340
340 base::MessageLoop* sync_loop; 341 base::MessageLoop* sync_loop;
341 SyncBackendRegistrar* registrar; 342 SyncBackendRegistrar* registrar;
342 syncer::ModelSafeRoutingInfo routing_info; 343 syncer::ModelSafeRoutingInfo routing_info;
343 std::vector<syncer::ModelSafeWorker*> workers; 344 std::vector<syncer::ModelSafeWorker*> workers;
344 syncer::ExtensionsActivityMonitor* extensions_activity_monitor; 345 syncer::ExtensionsActivityMonitor* extensions_activity_monitor;
345 syncer::WeakHandle<syncer::JsEventHandler> event_handler; 346 syncer::WeakHandle<syncer::JsEventHandler> event_handler;
346 GURL service_url; 347 GURL service_url;
347 // Overridden by tests. 348 // Overridden by tests.
348 MakeHttpBridgeFactoryFn make_http_bridge_factory_fn; 349 MakeHttpBridgeFactoryFn make_http_bridge_factory_fn;
349 syncer::SyncCredentials credentials; 350 syncer::SyncCredentials credentials;
350 AndroidInvalidatorBridge* const android_invalidator_bridge; 351 AndroidInvalidatorBridge* const android_invalidator_bridge;
351 syncer::InvalidatorFactory* const invalidator_factory; 352 syncer::InvalidatorFactory* const invalidator_factory;
352 syncer::SyncManagerFactory* const sync_manager_factory; 353 syncer::SyncManagerFactory* const sync_manager_factory;
353 std::string lsid; 354 std::string lsid;
354 bool delete_sync_data_folder; 355 bool delete_sync_data_folder;
355 std::string restored_key_for_bootstrapping; 356 std::string restored_key_for_bootstrapping;
356 std::string restored_keystore_key_for_bootstrapping; 357 std::string restored_keystore_key_for_bootstrapping;
357 syncer::InternalComponentsFactory* internal_components_factory; 358 syncer::InternalComponentsFactory* internal_components_factory;
358 syncer::UnrecoverableErrorHandler* unrecoverable_error_handler; 359 syncer::UnrecoverableErrorHandler* unrecoverable_error_handler;
359 syncer::ReportUnrecoverableErrorFunction 360 syncer::ReportUnrecoverableErrorFunction
360 report_unrecoverable_error_function; 361 report_unrecoverable_error_function;
362 bool use_oauth2_token;
361 }; 363 };
362 364
363 // Allows tests to perform alternate core initialization work. 365 // Allows tests to perform alternate core initialization work.
364 virtual void InitCore(const DoInitializeOptions& options); 366 virtual void InitCore(const DoInitializeOptions& options);
365 367
366 // Request the syncer to reconfigure with the specfied params. 368 // Request the syncer to reconfigure with the specfied params.
367 // Virtual for testing. 369 // Virtual for testing.
368 virtual void RequestConfigureSyncer( 370 virtual void RequestConfigureSyncer(
369 syncer::ConfigureReason reason, 371 syncer::ConfigureReason reason,
370 syncer::ModelTypeSet to_download, 372 syncer::ModelTypeSet to_download,
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 // HandleInitializationCompletedOnFrontendLoop. 579 // HandleInitializationCompletedOnFrontendLoop.
578 syncer::WeakHandle<syncer::JsBackend> js_backend_; 580 syncer::WeakHandle<syncer::JsBackend> js_backend_;
579 syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_; 581 syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_;
580 582
581 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); 583 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost);
582 }; 584 };
583 585
584 } // namespace browser_sync 586 } // namespace browser_sync
585 587
586 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ 588 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/about_sync_util.cc ('k') | chrome/browser/sync/glue/sync_backend_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698