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

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

Issue 515763002: [GCM] Extracting GCMConnectionObserver from GCMAppHandler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing CR feedback 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
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/logging.h" 7 #include "base/logging.h"
8 #include "net/base/ip_endpoint.h"
9 8
10 namespace gcm { 9 namespace gcm {
11 10
12 DefaultGCMAppHandler::DefaultGCMAppHandler() { 11 DefaultGCMAppHandler::DefaultGCMAppHandler() {
13 } 12 }
14 13
15 DefaultGCMAppHandler::~DefaultGCMAppHandler() { 14 DefaultGCMAppHandler::~DefaultGCMAppHandler() {
16 } 15 }
17 16
18 void DefaultGCMAppHandler::ShutdownHandler() { 17 void DefaultGCMAppHandler::ShutdownHandler() {
(...skipping 16 matching lines...) Expand all
35 DVLOG(1) << "No app handler is found to route send error message for " 34 DVLOG(1) << "No app handler is found to route send error message for "
36 << app_id; 35 << app_id;
37 } 36 }
38 37
39 void DefaultGCMAppHandler::OnSendAcknowledged(const std::string& app_id, 38 void DefaultGCMAppHandler::OnSendAcknowledged(const std::string& app_id,
40 const std::string& message_id) { 39 const std::string& message_id) {
41 DVLOG(1) << "No app handler is found to route send acknoledgement for " 40 DVLOG(1) << "No app handler is found to route send acknoledgement for "
42 << app_id; 41 << app_id;
43 } 42 }
44 43
45 void DefaultGCMAppHandler::OnConnected(const net::IPEndPoint& ip_endpoint) {
46 // TODO(semenzato): update CrOS NIC state.
47 DVLOG(1) << "GCM connected to " << ip_endpoint.ToString();
48 }
49
50 void DefaultGCMAppHandler::OnDisconnected() {
51 // TODO(semenzato): update CrOS NIC state.
52 DVLOG(1) << "GCM disconnected";
53 }
54
55 } // namespace gcm 44 } // namespace gcm
OLDNEW
« no previous file with comments | « components/gcm_driver/default_gcm_app_handler.h ('k') | components/gcm_driver/fake_gcm_app_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698