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

Unified Diff: components/gcm_driver/gcm_client_impl.h

Issue 317723004: [GCM] Add ConnectionListener support, and hook up to debug page (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile + rebase Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/gcm_driver/gcm_client_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/gcm_driver/gcm_client_impl.h
diff --git a/components/gcm_driver/gcm_client_impl.h b/components/gcm_driver/gcm_client_impl.h
index e74a8aa2b135578298b79bfdfd441d315fa09d03..464b707099638311cd1c6ae7942025e2587a1ee6 100644
--- a/components/gcm_driver/gcm_client_impl.h
+++ b/components/gcm_driver/gcm_client_impl.h
@@ -74,12 +74,13 @@ class GCMInternalsBuilder {
// Checkins. It also allows for registering user delegates that host
// applications that send and receive messages.
class GCMClientImpl
- : public GCMClient, public GCMStatsRecorder::Delegate {
+ : public GCMClient, public GCMStatsRecorder::Delegate,
+ public ConnectionFactory::ConnectionListener {
public:
explicit GCMClientImpl(scoped_ptr<GCMInternalsBuilder> internals_builder);
virtual ~GCMClientImpl();
- // Overridden from GCMClient:
+ // GCMClient implementation.
virtual void Initialize(
const ChromeBuildInfo& chrome_build_info,
const base::FilePath& store_path,
@@ -101,8 +102,15 @@ class GCMClientImpl
virtual void SetRecording(bool recording) OVERRIDE;
virtual void ClearActivityLogs() OVERRIDE;
virtual GCMStatistics GetStatistics() const OVERRIDE;
+
+ // GCMStatsRecorder::Delegate implemenation.
virtual void OnActivityRecorded() OVERRIDE;
+ // ConnectionFactory::ConnectionListener implementation.
+ virtual void OnConnected(const GURL& current_server,
+ const net::IPEndPoint& ip_endpoint) OVERRIDE;
+ virtual void OnDisconnected() OVERRIDE;
+
private:
// State representation of the GCMClient.
// Any change made to this enum should have corresponding change in the
« no previous file with comments | « no previous file | components/gcm_driver/gcm_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698