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

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

Issue 15780020: Setup Sync to use OAuth token for managed users. (Closed) Base URL: http://git.chromium.org/chromium/src.git@issue226464a
Patch Set: fix 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
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 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 bool use_oauth2_token,
339 bool create_invalidator);
339 ~DoInitializeOptions(); 340 ~DoInitializeOptions();
340 341
341 base::MessageLoop* sync_loop; 342 base::MessageLoop* sync_loop;
342 SyncBackendRegistrar* registrar; 343 SyncBackendRegistrar* registrar;
343 syncer::ModelSafeRoutingInfo routing_info; 344 syncer::ModelSafeRoutingInfo routing_info;
344 std::vector<syncer::ModelSafeWorker*> workers; 345 std::vector<syncer::ModelSafeWorker*> workers;
345 syncer::ExtensionsActivityMonitor* extensions_activity_monitor; 346 syncer::ExtensionsActivityMonitor* extensions_activity_monitor;
346 syncer::WeakHandle<syncer::JsEventHandler> event_handler; 347 syncer::WeakHandle<syncer::JsEventHandler> event_handler;
347 GURL service_url; 348 GURL service_url;
348 // Overridden by tests. 349 // Overridden by tests.
349 MakeHttpBridgeFactoryFn make_http_bridge_factory_fn; 350 MakeHttpBridgeFactoryFn make_http_bridge_factory_fn;
350 syncer::SyncCredentials credentials; 351 syncer::SyncCredentials credentials;
351 AndroidInvalidatorBridge* const android_invalidator_bridge; 352 AndroidInvalidatorBridge* const android_invalidator_bridge;
352 syncer::InvalidatorFactory* const invalidator_factory; 353 syncer::InvalidatorFactory* const invalidator_factory;
353 syncer::SyncManagerFactory* const sync_manager_factory; 354 syncer::SyncManagerFactory* const sync_manager_factory;
354 std::string lsid; 355 std::string lsid;
355 bool delete_sync_data_folder; 356 bool delete_sync_data_folder;
356 std::string restored_key_for_bootstrapping; 357 std::string restored_key_for_bootstrapping;
357 std::string restored_keystore_key_for_bootstrapping; 358 std::string restored_keystore_key_for_bootstrapping;
358 syncer::InternalComponentsFactory* internal_components_factory; 359 syncer::InternalComponentsFactory* internal_components_factory;
359 syncer::UnrecoverableErrorHandler* unrecoverable_error_handler; 360 syncer::UnrecoverableErrorHandler* unrecoverable_error_handler;
360 syncer::ReportUnrecoverableErrorFunction 361 syncer::ReportUnrecoverableErrorFunction
361 report_unrecoverable_error_function; 362 report_unrecoverable_error_function;
362 bool use_oauth2_token; 363 bool use_oauth2_token;
364 bool create_invalidator;
363 }; 365 };
364 366
365 // Allows tests to perform alternate core initialization work. 367 // Allows tests to perform alternate core initialization work.
366 virtual void InitCore(const DoInitializeOptions& options); 368 virtual void InitCore(const DoInitializeOptions& options);
367 369
368 // Request the syncer to reconfigure with the specfied params. 370 // Request the syncer to reconfigure with the specfied params.
369 // Virtual for testing. 371 // Virtual for testing.
370 virtual void RequestConfigureSyncer( 372 virtual void RequestConfigureSyncer(
371 syncer::ConfigureReason reason, 373 syncer::ConfigureReason reason,
372 syncer::ModelTypeSet to_download, 374 syncer::ModelTypeSet to_download,
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 // HandleInitializationCompletedOnFrontendLoop. 581 // HandleInitializationCompletedOnFrontendLoop.
580 syncer::WeakHandle<syncer::JsBackend> js_backend_; 582 syncer::WeakHandle<syncer::JsBackend> js_backend_;
581 syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_; 583 syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_;
582 584
583 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); 585 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost);
584 }; 586 };
585 587
586 } // namespace browser_sync 588 } // namespace browser_sync
587 589
588 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ 590 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698