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

Unified Diff: components/gcm_driver/default_gcm_app_handler.cc

Issue 320993003: [GCM] Add app handler support for connection events (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « components/gcm_driver/default_gcm_app_handler.h ('k') | components/gcm_driver/fake_gcm_app_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/gcm_driver/default_gcm_app_handler.cc
diff --git a/components/gcm_driver/default_gcm_app_handler.cc b/components/gcm_driver/default_gcm_app_handler.cc
index 80aee2f87ec89847ae31e743fbcd6ac68ed44d2d..2e745a031c8fac5d4a7699181be01d22eec47c93 100644
--- a/components/gcm_driver/default_gcm_app_handler.cc
+++ b/components/gcm_driver/default_gcm_app_handler.cc
@@ -5,6 +5,7 @@
#include "components/gcm_driver/default_gcm_app_handler.h"
#include "base/logging.h"
+#include "net/base/ip_endpoint.h"
namespace gcm {
@@ -36,4 +37,14 @@ void DefaultGCMAppHandler::OnSendError(
<< app_id;
}
+void DefaultGCMAppHandler::OnConnected(const net::IPEndPoint& ip_endpoint) {
+ // TODO(semenzato): update CrOS NIC state.
+ DVLOG(1) << "GCM connected to " << ip_endpoint.ToString();
+}
+
+void DefaultGCMAppHandler::OnDisconnected() {
+ // TODO(semenzato): update CrOS NIC state.
+ DVLOG(1) << "GCM disconnected";
+}
+
} // namespace gcm
« no previous file with comments | « components/gcm_driver/default_gcm_app_handler.h ('k') | components/gcm_driver/fake_gcm_app_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698