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 6794005: Move sync notifier contruction out of syncer thread. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Rebase Created 9 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 | 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 14 matching lines...) Expand all
25 #include "chrome/browser/sync/glue/ui_model_worker.h" 25 #include "chrome/browser/sync/glue/ui_model_worker.h"
26 #include "chrome/browser/sync/js_event_router.h" 26 #include "chrome/browser/sync/js_event_router.h"
27 #include "chrome/browser/sync/syncable/model_type.h" 27 #include "chrome/browser/sync/syncable/model_type.h"
28 #include "chrome/common/net/gaia/google_service_auth_error.h" 28 #include "chrome/common/net/gaia/google_service_auth_error.h"
29 #include "googleurl/src/gurl.h" 29 #include "googleurl/src/gurl.h"
30 #include "net/url_request/url_request_context_getter.h" 30 #include "net/url_request/url_request_context_getter.h"
31 31
32 class CancelableTask; 32 class CancelableTask;
33 class Profile; 33 class Profile;
34 34
35 namespace sync_notifier {
36 class SyncNotifier;
37 } // namespace sync_notifier
38
35 namespace browser_sync { 39 namespace browser_sync {
36 40
37 namespace sessions { 41 namespace sessions {
38 struct SyncSessionSnapshot; 42 struct SyncSessionSnapshot;
39 } 43 }
40 44
41 class ChangeProcessor; 45 class ChangeProcessor;
42 class DataTypeController; 46 class DataTypeController;
43 class JsArgList; 47 class JsArgList;
44 48
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 496
493 // Our parent SyncBackendHost 497 // Our parent SyncBackendHost
494 SyncBackendHost* host_; 498 SyncBackendHost* host_;
495 499
496 // The timer used to periodically call SaveChanges. 500 // The timer used to periodically call SaveChanges.
497 base::RepeatingTimer<Core> save_changes_timer_; 501 base::RepeatingTimer<Core> save_changes_timer_;
498 502
499 // The top-level syncapi entry point. 503 // The top-level syncapi entry point.
500 scoped_ptr<sync_api::SyncManager> syncapi_; 504 scoped_ptr<sync_api::SyncManager> syncapi_;
501 505
506 scoped_ptr<sync_notifier::SyncNotifier> sync_notifier_;
507
502 JsSyncManagerObserver sync_manager_observer_; 508 JsSyncManagerObserver sync_manager_observer_;
503 509
504 JsEventRouter* parent_router_; 510 JsEventRouter* parent_router_;
505 511
506 // Denotes if the core is currently attempting to set a passphrase. While 512 // Denotes if the core is currently attempting to set a passphrase. While
507 // this is true, OnPassphraseRequired calls are dropped. 513 // this is true, OnPassphraseRequired calls are dropped.
508 // Note: after initialization, this variable should only ever be accessed or 514 // Note: after initialization, this variable should only ever be accessed or
509 // modified from within the frontend_loop_ (UI thread). 515 // modified from within the frontend_loop_ (UI thread).
510 bool processing_passphrase_; 516 bool processing_passphrase_;
511 517
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 641
636 // Whether we've processed the initialization complete callback. 642 // Whether we've processed the initialization complete callback.
637 bool syncapi_initialized_; 643 bool syncapi_initialized_;
638 644
639 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); 645 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost);
640 }; 646 };
641 647
642 } // namespace browser_sync 648 } // namespace browser_sync
643 649
644 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ 650 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/engine/syncapi_unittest.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