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

Side by Side Diff: components/gcm_driver/default_gcm_app_handler.cc

Issue 409883006: GCM: D-Bus methods for wake-on-packet (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup 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 | Annotate | Revision Log
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 #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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698