| 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 #include <utility> | 10 #include <utility> | 
| (...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 616 | 616 | 
| 617   // Simulate an incoming notification for the given id and payload. | 617   // Simulate an incoming notification for the given id and payload. | 
| 618   void EmitInvalidationForTest( | 618   void EmitInvalidationForTest( | 
| 619       const invalidation::ObjectId& id, | 619       const invalidation::ObjectId& id, | 
| 620       const std::string& payload); | 620       const std::string& payload); | 
| 621 | 621 | 
| 622  protected: | 622  protected: | 
| 623   // Used by test classes that derive from ProfileSyncService. | 623   // Used by test classes that derive from ProfileSyncService. | 
| 624   virtual browser_sync::SyncBackendHost* GetBackendForTest(); | 624   virtual browser_sync::SyncBackendHost* GetBackendForTest(); | 
| 625 | 625 | 
|  | 626   // Helper to configure the priority data types. | 
|  | 627   void ConfigurePriorityDataTypes(); | 
|  | 628 | 
| 626   // Helper to install and configure a data type manager. | 629   // Helper to install and configure a data type manager. | 
| 627   void ConfigureDataTypeManager(); | 630   void ConfigureDataTypeManager(); | 
| 628 | 631 | 
| 629   // Shuts down the backend sync components. | 632   // Shuts down the backend sync components. | 
| 630   // |sync_disabled| indicates if syncing is being disabled or not. | 633   // |sync_disabled| indicates if syncing is being disabled or not. | 
| 631   void ShutdownImpl(bool sync_disabled); | 634   void ShutdownImpl(bool sync_disabled); | 
| 632 | 635 | 
| 633   // Return SyncCredentials from the TokenService. | 636   // Return SyncCredentials from the TokenService. | 
| 634   syncer::SyncCredentials GetCredentials(); | 637   syncer::SyncCredentials GetCredentials(); | 
| 635 | 638 | 
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 928   syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_; | 931   syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_; | 
| 929 | 932 | 
| 930   DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 933   DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 
| 931 }; | 934 }; | 
| 932 | 935 | 
| 933 bool ShouldShowActionOnUI( | 936 bool ShouldShowActionOnUI( | 
| 934     const syncer::SyncProtocolError& error); | 937     const syncer::SyncProtocolError& error); | 
| 935 | 938 | 
| 936 | 939 | 
| 937 #endif  // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 940 #endif  // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 
| OLD | NEW | 
|---|