OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |