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

Unified Diff: chrome/browser/services/gcm/chromeos_gcm_connection_observer.h

Issue 409883006: GCM: D-Bus methods for wake-on-packet (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remember to register the observer Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « DEPS ('k') | chrome/browser/services/gcm/chromeos_gcm_connection_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/services/gcm/chromeos_gcm_connection_observer.h
diff --git a/chrome/browser/services/gcm/chromeos_gcm_connection_observer.h b/chrome/browser/services/gcm/chromeos_gcm_connection_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..212ebec593f584da0e3257c93df8c7fc09aed00d
--- /dev/null
+++ b/chrome/browser/services/gcm/chromeos_gcm_connection_observer.h
@@ -0,0 +1,34 @@
+// Copyright (c) 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_SERVICES_GCM_CHROMEOS_GCM_CONNECTION_OBSERVER_H_
+#define CHROME_BROWSER_SERVICES_GCM_CHROMEOS_GCM_CONNECTION_OBSERVER_H_
+
+#include "base/compiler_specific.h"
+#include "components/gcm_driver/gcm_connection_observer.h"
+#include "net/base/ip_endpoint.h"
fgorski 2014/09/08 21:48:18 nit: you can forward declare it here I think.
Luigi Semenzato 2014/09/11 18:43:33 I don't think so, I have a class member of type IP
+
fgorski 2014/09/08 21:48:18 nit: extra line not necessary
Luigi Semenzato 2014/09/11 18:43:33 Done.
+
+namespace gcm {
+
+class ChromeOSGCMConnectionObserver : public GCMConnectionObserver {
+ public:
+ ChromeOSGCMConnectionObserver();
+ virtual ~ChromeOSGCMConnectionObserver();
+ virtual void OnConnected(const net::IPEndPoint& ip_endpoint) OVERRIDE;
fgorski 2014/09/08 21:48:18 nit: add comment above: // gcm::GCMConnectionObse
Luigi Semenzato 2014/09/11 18:43:33 Done.
+ virtual void OnDisconnected() OVERRIDE;
+
+ static void ErrorCallback(
+ const std::string& error_name,
+ const std::string& error);
+
+ private:
+ net::IPEndPoint ip_endpoint_;
+
+ DISALLOW_COPY_AND_ASSIGN(ChromeOSGCMConnectionObserver);
+};
+
+} // namespace gcm
+
+#endif // CHROME_BROWSER_SERVICES_GCM_CHROMEOS_GCM_CONNECTION_OBSERVER_H_
« no previous file with comments | « DEPS ('k') | chrome/browser/services/gcm/chromeos_gcm_connection_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698