OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_SERVICES_GCM_CHROMEOS_GCM_CONNECTION_OBSERVER_H_ | |
6 #define CHROME_BROWSER_SERVICES_GCM_CHROMEOS_GCM_CONNECTION_OBSERVER_H_ | |
7 | |
8 #include "base/compiler_specific.h" | |
9 #include "components/gcm_driver/gcm_connection_observer.h" | |
10 #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
| |
11 | |
fgorski
2014/09/08 21:48:18
nit: extra line not necessary
Luigi Semenzato
2014/09/11 18:43:33
Done.
| |
12 | |
13 namespace gcm { | |
14 | |
15 class ChromeOSGCMConnectionObserver : public GCMConnectionObserver { | |
16 public: | |
17 ChromeOSGCMConnectionObserver(); | |
18 virtual ~ChromeOSGCMConnectionObserver(); | |
19 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.
| |
20 virtual void OnDisconnected() OVERRIDE; | |
21 | |
22 static void ErrorCallback( | |
23 const std::string& error_name, | |
24 const std::string& error); | |
25 | |
26 private: | |
27 net::IPEndPoint ip_endpoint_; | |
28 | |
29 DISALLOW_COPY_AND_ASSIGN(ChromeOSGCMConnectionObserver); | |
30 }; | |
31 | |
32 } // namespace gcm | |
33 | |
34 #endif // CHROME_BROWSER_SERVICES_GCM_CHROMEOS_GCM_CONNECTION_OBSERVER_H_ | |
OLD | NEW |