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

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

Issue 515763002: [GCM] Extracting GCMConnectionObserver from GCMAppHandler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Finishing the CL on a box that compiles much faster... 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 unified diff | Download patch
OLDNEW
(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 COMPONENTS_GCM_DRIVER_GCM_CONNECTION_OBSERVER_H_
6 #define COMPONENTS_GCM_DRIVER_GCM_CONNECTION_OBSERVER_H_
7
8 #include "base/basictypes.h"
9
10 namespace net {
11 class IPEndPoint;
12 }
13
14 namespace gcm {
15
16 // Defines the interface to provide handling and event routing logic for a given
jianli 2014/08/27 23:34:17 Update comment.
fgorski 2014/08/27 23:51:45 Done.
17 // app.
18 class GCMConnectionObserver {
19 public:
20 GCMConnectionObserver();
21 virtual ~GCMConnectionObserver();
22
23 // Called when a new connection is established and a successful handshake
24 // has been performed. Note that |ip_endpoint| is only set if available for
25 // the current platform.
26 // Default implementation does nothing.
27 virtual void OnConnected(const net::IPEndPoint& ip_endpoint);
28
29 // Called when the connection is interrupted.
30 // Default implementation does nothing.
31 virtual void OnDisconnected();
32 };
33
34 } // namespace gcm
35
36 #endif // COMPONENTS_GCM_DRIVER_GCM_APP_HANDLER_H_
jianli 2014/08/27 23:34:17 Update comment.
fgorski 2014/08/27 23:51:45 Done.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698