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

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

Issue 10915216: Browser test for the push messaging feature (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: CR fixes per DCheng and MihaiP Created 8 years, 3 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
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 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // Method to trigger an invalidation in tests.
579 void SendInvalidationForTest(
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698