forked from sanyaade-mobiledev/chromium.src
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault_gcm_app_handler.cc
50 lines (38 loc) · 1.38 KB
/
default_gcm_app_handler.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// Copyright (c) 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/gcm_driver/default_gcm_app_handler.h"
#include "base/logging.h"
#include "net/base/ip_endpoint.h"
namespace gcm {
DefaultGCMAppHandler::DefaultGCMAppHandler() {
}
DefaultGCMAppHandler::~DefaultGCMAppHandler() {
}
void DefaultGCMAppHandler::ShutdownHandler() {
// Nothing to do.
}
void DefaultGCMAppHandler::OnMessage(
const std::string& app_id,
const GCMClient::IncomingMessage& message) {
LOG(ERROR) << "No app handler is found to route message for " << app_id;
}
void DefaultGCMAppHandler::OnMessagesDeleted(const std::string& app_id) {
LOG(ERROR) << "No app handler is found to route deleted message for "
<< app_id;
}
void DefaultGCMAppHandler::OnSendError(
const std::string& app_id,
const GCMClient::SendErrorDetails& send_error_details) {
LOG(ERROR) << "No app handler is found to route send error message for "
<< app_id;
}
void DefaultGCMAppHandler::OnConnected(const net::IPEndPoint& ip_endpoint) {
// TODO(semenzato): update CrOS NIC state.
DVLOG(1) << "GCM connected to " << ip_endpoint.ToString();
}
void DefaultGCMAppHandler::OnDisconnected() {
// TODO(semenzato): update CrOS NIC state.
DVLOG(1) << "GCM disconnected";
}
} // namespace gcm