Chromium Code Reviews| 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 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 568 virtual void UpdateRegisteredInvalidationIds( | 568 virtual void UpdateRegisteredInvalidationIds( |
| 569 syncer::InvalidationHandler* handler, | 569 syncer::InvalidationHandler* handler, |
| 570 const syncer::ObjectIdSet& ids) OVERRIDE; | 570 const syncer::ObjectIdSet& ids) OVERRIDE; |
| 571 virtual void UnregisterInvalidationHandler( | 571 virtual void UnregisterInvalidationHandler( |
| 572 syncer::InvalidationHandler* handler) OVERRIDE; | 572 syncer::InvalidationHandler* handler) OVERRIDE; |
| 573 virtual syncer::InvalidatorState GetInvalidatorState() const OVERRIDE; | 573 virtual syncer::InvalidatorState GetInvalidatorState() const OVERRIDE; |
| 574 | 574 |
| 575 // ProfileKeyedService implementation. | 575 // ProfileKeyedService implementation. |
| 576 virtual void Shutdown() OVERRIDE; | 576 virtual void Shutdown() OVERRIDE; |
| 577 | 577 |
| 578 // test method for system test to allow a test to send in an invalidation | |
|
dcheng
2012/09/13 21:00:48
I think you could simplify this comment to "Method
Pete Williamson
2012/09/14 19:14:48
Done.
| |
| 579 virtual void SendNotificationForTest( | |
|
dcheng
2012/09/13 21:00:48
Suggestion: this should be called SendInvalidation
dcheng
2012/09/13 21:00:48
Doesn't need to be virtual. It's possible that thi
Pete Williamson
2012/09/14 19:14:48
Done.
Pete Williamson
2012/09/14 19:14:48
Made non virtual, but I didn't want to extend the
| |
| 580 const std::string& id, | |
| 581 const std::string& payload); | |
| 582 | |
| 578 protected: | 583 protected: |
| 579 // Used by test classes that derive from ProfileSyncService. | 584 // Used by test classes that derive from ProfileSyncService. |
| 580 virtual browser_sync::SyncBackendHost* GetBackendForTest(); | 585 virtual browser_sync::SyncBackendHost* GetBackendForTest(); |
| 581 | 586 |
| 582 // Helper to install and configure a data type manager. | 587 // Helper to install and configure a data type manager. |
| 583 void ConfigureDataTypeManager(); | 588 void ConfigureDataTypeManager(); |
| 584 | 589 |
| 585 // Starts up the backend sync components. | 590 // Starts up the backend sync components. |
| 586 void StartUp(); | 591 void StartUp(); |
| 587 // Shuts down the backend sync components. | 592 // Shuts down the backend sync components. |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 850 syncer::InvalidatorRegistrar invalidator_registrar_; | 855 syncer::InvalidatorRegistrar invalidator_registrar_; |
| 851 | 856 |
| 852 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 857 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 853 }; | 858 }; |
| 854 | 859 |
| 855 bool ShouldShowActionOnUI( | 860 bool ShouldShowActionOnUI( |
| 856 const syncer::SyncProtocolError& error); | 861 const syncer::SyncProtocolError& error); |
| 857 | 862 |
| 858 | 863 |
| 859 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 864 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |