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

Unified Diff: components/gcm_driver/default_gcm_app_handler.h

Issue 409883006: GCM: D-Bus methods for wake-on-packet (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: GCM: D-Bus methods for wake-on-packet Created 6 years, 4 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 | « chromeos/dbus/shill_manager_client.cc ('k') | components/gcm_driver/default_gcm_app_handler.cc » ('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.h
diff --git a/components/gcm_driver/default_gcm_app_handler.h b/components/gcm_driver/default_gcm_app_handler.h
index 57613a54bada666684f9ac0c95a70b97c2fd295a..56949536801c0e74424c593ccf3234d14af3c551 100644
--- a/components/gcm_driver/default_gcm_app_handler.h
+++ b/components/gcm_driver/default_gcm_app_handler.h
@@ -7,6 +7,7 @@
#include "base/compiler_specific.h"
#include "components/gcm_driver/gcm_app_handler.h"
+#include "net/base/ip_endpoint.h"
namespace gcm {
@@ -28,8 +29,18 @@ class DefaultGCMAppHandler : public GCMAppHandler {
virtual void OnConnected(const net::IPEndPoint& ip_endpoint) OVERRIDE;
virtual void OnDisconnected() OVERRIDE;
+ static void RegisterConnectionCallbacks(
+ void (*on_connected_cb)(const net::IPEndPoint& ip_endpoint),
+ void (*on_disconnected_cb)());
+
private:
DISALLOW_COPY_AND_ASSIGN(DefaultGCMAppHandler);
fgorski 2014/08/21 18:14:16 following stevenjb, move this to the bottom.
+ static void NullCallback(const std::string& result);
fgorski 2014/08/21 18:14:16 I think you don't need NullCallback or ErrorCallba
+ static void ErrorCallback(const std::string& error_name,
+ const std::string& error);
+
+ static void (*on_connected_cb_)(const net::IPEndPoint& ip_endpoint);
fgorski 2014/08/21 18:14:16 could you typedef and document both of the signatu
+ static void (*on_disconnected_cb_)();
};
} // namespace gcm
« no previous file with comments | « chromeos/dbus/shill_manager_client.cc ('k') | components/gcm_driver/default_gcm_app_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698