OLD | NEW |
---|---|
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 #include "components/gcm_driver/default_gcm_app_handler.h" | 5 #include "components/gcm_driver/default_gcm_app_handler.h" |
6 | 6 |
7 #include "base/callback.h" | |
fgorski
2014/08/26 22:26:08
not needed.
Luigi Semenzato
2014/09/05 18:02:33
Done.
| |
7 #include "base/logging.h" | 8 #include "base/logging.h" |
8 #include "net/base/ip_endpoint.h" | 9 #include "net/base/ip_endpoint.h" |
9 | 10 |
10 namespace gcm { | 11 namespace gcm { |
11 | 12 |
12 DefaultGCMAppHandler::DefaultGCMAppHandler() { | 13 DefaultGCMAppHandler::DefaultGCMAppHandler() { |
13 } | 14 } |
14 | 15 |
15 DefaultGCMAppHandler::~DefaultGCMAppHandler() { | 16 DefaultGCMAppHandler::~DefaultGCMAppHandler() { |
16 } | 17 } |
(...skipping 14 matching lines...) Expand all Loading... | |
31 } | 32 } |
32 | 33 |
33 void DefaultGCMAppHandler::OnSendError( | 34 void DefaultGCMAppHandler::OnSendError( |
34 const std::string& app_id, | 35 const std::string& app_id, |
35 const GCMClient::SendErrorDetails& send_error_details) { | 36 const GCMClient::SendErrorDetails& send_error_details) { |
36 LOG(ERROR) << "No app handler is found to route send error message for " | 37 LOG(ERROR) << "No app handler is found to route send error message for " |
37 << app_id; | 38 << app_id; |
38 } | 39 } |
39 | 40 |
40 void DefaultGCMAppHandler::OnConnected(const net::IPEndPoint& ip_endpoint) { | 41 void DefaultGCMAppHandler::OnConnected(const net::IPEndPoint& ip_endpoint) { |
41 // TODO(semenzato): update CrOS NIC state. | |
42 DVLOG(1) << "GCM connected to " << ip_endpoint.ToString(); | |
43 } | 42 } |
44 | 43 |
45 void DefaultGCMAppHandler::OnDisconnected() { | 44 void DefaultGCMAppHandler::OnDisconnected() { |
46 // TODO(semenzato): update CrOS NIC state. | |
47 DVLOG(1) << "GCM disconnected"; | |
48 } | 45 } |
49 | 46 |
50 } // namespace gcm | 47 } // namespace gcm |
OLD | NEW |