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

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

Issue 8295017: [Sync] Support open tabs experiment enabling before sync setup completion. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Refactor Created 9 years, 2 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_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 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 479
480 // The timer used to periodically call SaveChanges. 480 // The timer used to periodically call SaveChanges.
481 base::RepeatingTimer<Core> save_changes_timer_; 481 base::RepeatingTimer<Core> save_changes_timer_;
482 482
483 // The top-level syncapi entry point. Lives on the sync thread. 483 // The top-level syncapi entry point. Lives on the sync thread.
484 scoped_ptr<sync_api::SyncManager> sync_manager_; 484 scoped_ptr<sync_api::SyncManager> sync_manager_;
485 485
486 DISALLOW_COPY_AND_ASSIGN(Core); 486 DISALLOW_COPY_AND_ASSIGN(Core);
487 }; 487 };
488 488
489 // Checks if we have received a notice to turn on experimental datatypes
490 // (via the nigori node) and informs the frontend if that is the case.
491 // Note: it is illegal to call this before the backend is initialized.
492 void AddExperimentalTypes();
493
489 // InitializationComplete passes through the SyncBackendHost to forward 494 // InitializationComplete passes through the SyncBackendHost to forward
490 // on to |frontend_|, and so that tests can intercept here if they need to 495 // on to |frontend_|, and so that tests can intercept here if they need to
491 // set up initial conditions. 496 // set up initial conditions.
492 virtual void HandleInitializationCompletedOnFrontendLoop( 497 virtual void HandleInitializationCompletedOnFrontendLoop(
493 const WeakHandle<JsBackend>& js_backend, 498 const WeakHandle<JsBackend>& js_backend,
494 bool success); 499 bool success);
495 500
496 // Called to finish the job of ConfigureDataTypes once the syncer is in 501 // Called to finish the job of ConfigureDataTypes once the syncer is in
497 // configuration mode. 502 // configuration mode.
498 void FinishConfigureDataTypesOnFrontendLoop(); 503 void FinishConfigureDataTypesOnFrontendLoop();
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 582
578 // UI-thread cache of the last SyncSessionSnapshot received from syncapi. 583 // UI-thread cache of the last SyncSessionSnapshot received from syncapi.
579 scoped_ptr<sessions::SyncSessionSnapshot> last_snapshot_; 584 scoped_ptr<sessions::SyncSessionSnapshot> last_snapshot_;
580 585
581 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); 586 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost);
582 }; 587 };
583 588
584 } // namespace browser_sync 589 } // namespace browser_sync
585 590
586 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ 591 #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.cc » ('j') | chrome/browser/sync/profile_sync_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698