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

Side by Side Diff: components/gcm_driver/gcm_connection_observer.h

Issue 1548113002: Switch to standard integer types in components/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn Created 4 years, 12 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_GCM_DRIVER_GCM_CONNECTION_OBSERVER_H_ 5 #ifndef COMPONENTS_GCM_DRIVER_GCM_CONNECTION_OBSERVER_H_
6 #define COMPONENTS_GCM_DRIVER_GCM_CONNECTION_OBSERVER_H_ 6 #define COMPONENTS_GCM_DRIVER_GCM_CONNECTION_OBSERVER_H_
7 7
8 #include "base/basictypes.h"
9 8
10 namespace net { 9 namespace net {
11 class IPEndPoint; 10 class IPEndPoint;
12 } 11 }
13 12
14 namespace gcm { 13 namespace gcm {
15 14
16 // Interface for objects observing GCM connection events. 15 // Interface for objects observing GCM connection events.
17 class GCMConnectionObserver { 16 class GCMConnectionObserver {
18 public: 17 public:
19 GCMConnectionObserver(); 18 GCMConnectionObserver();
20 virtual ~GCMConnectionObserver(); 19 virtual ~GCMConnectionObserver();
21 20
22 // Called when a new connection is established and a successful handshake 21 // Called when a new connection is established and a successful handshake
23 // has been performed. Note that |ip_endpoint| is only set if available for 22 // has been performed. Note that |ip_endpoint| is only set if available for
24 // the current platform. 23 // the current platform.
25 // Default implementation does nothing. 24 // Default implementation does nothing.
26 virtual void OnConnected(const net::IPEndPoint& ip_endpoint); 25 virtual void OnConnected(const net::IPEndPoint& ip_endpoint);
27 26
28 // Called when the connection is interrupted. 27 // Called when the connection is interrupted.
29 // Default implementation does nothing. 28 // Default implementation does nothing.
30 virtual void OnDisconnected(); 29 virtual void OnDisconnected();
31 }; 30 };
32 31
33 } // namespace gcm 32 } // namespace gcm
34 33
35 #endif // COMPONENTS_GCM_DRIVER_GCM_CONNECTION_OBSERVER_H_ 34 #endif // COMPONENTS_GCM_DRIVER_GCM_CONNECTION_OBSERVER_H_
OLDNEW
« no previous file with comments | « components/gcm_driver/gcm_client_impl_unittest.cc ('k') | components/gcm_driver/gcm_delayed_task_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698