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

Side by Side Diff: chrome/browser/sync/profile_sync_service.h

Issue 11348220: sync: centralize sync startup decisions in TryStart. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: zea's review Created 8 years 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) 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_PROFILE_SYNC_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 const std::string& payload); 583 const std::string& payload);
584 584
585 protected: 585 protected:
586 // Used by test classes that derive from ProfileSyncService. 586 // Used by test classes that derive from ProfileSyncService.
587 virtual browser_sync::SyncBackendHost* GetBackendForTest(); 587 virtual browser_sync::SyncBackendHost* GetBackendForTest();
588 588
589 // Helper to install and configure a data type manager. 589 // Helper to install and configure a data type manager.
590 void ConfigureDataTypeManager(); 590 void ConfigureDataTypeManager();
591 591
592 // Starts up the backend sync components. 592 // Starts up the backend sync components.
593 void StartUp(); 593 virtual void StartUp();
594 // Shuts down the backend sync components. 594 // Shuts down the backend sync components.
595 // |sync_disabled| indicates if syncing is being disabled or not. 595 // |sync_disabled| indicates if syncing is being disabled or not.
596 void ShutdownImpl(bool sync_disabled); 596 void ShutdownImpl(bool sync_disabled);
597 597
598 // Return SyncCredentials from the TokenService. 598 // Return SyncCredentials from the TokenService.
599 syncer::SyncCredentials GetCredentials(); 599 syncer::SyncCredentials GetCredentials();
600 600
601 // Test need to override this to create backends that allow setting up 601 // Test need to override this to create backends that allow setting up
602 // initial conditions, such as populating sync nodes. 602 // initial conditions, such as populating sync nodes.
603 // 603 //
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
878 syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_; 878 syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_;
879 879
880 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 880 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
881 }; 881 };
882 882
883 bool ShouldShowActionOnUI( 883 bool ShouldShowActionOnUI(
884 const syncer::SyncProtocolError& error); 884 const syncer::SyncProtocolError& error);
885 885
886 886
887 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 887 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698