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

Side by Side Diff: remoting/host/ipc_host_event_logger.cc

Issue 1061903002: Disable chromoting service on permanent errors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "remoting/host/ipc_host_event_logger.h" 5 #include "remoting/host/ipc_host_event_logger.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ipc/ipc_sender.h" 8 #include "ipc/ipc_sender.h"
9 #include "net/base/ip_endpoint.h" 9 #include "net/base/ip_endpoint.h"
10 #include "remoting/host/chromoting_messages.h" 10 #include "remoting/host/chromoting_messages.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 serialized_route.type = route.type; 62 serialized_route.type = route.type;
63 serialized_route.remote_address = route.remote_address.address(); 63 serialized_route.remote_address = route.remote_address.address();
64 serialized_route.remote_port = route.remote_address.port(); 64 serialized_route.remote_port = route.remote_address.port();
65 serialized_route.local_address = route.local_address.address(); 65 serialized_route.local_address = route.local_address.address();
66 serialized_route.local_port = route.local_address.port(); 66 serialized_route.local_port = route.local_address.port();
67 67
68 daemon_channel_->Send(new ChromotingNetworkDaemonMsg_ClientRouteChange( 68 daemon_channel_->Send(new ChromotingNetworkDaemonMsg_ClientRouteChange(
69 jid, channel_name, serialized_route)); 69 jid, channel_name, serialized_route));
70 } 70 }
71 71
72 void IpcHostEventLogger::OnShutdown() { 72 void IpcHostEventLogger::OnShutdown(HostExitCodes exit_code) {
73 DCHECK(CalledOnValidThread()); 73 DCHECK(CalledOnValidThread());
74 74
75 daemon_channel_->Send(new ChromotingNetworkDaemonMsg_HostShutdown()); 75 daemon_channel_->Send(new ChromotingNetworkDaemonMsg_HostShutdown(exit_code));
76 } 76 }
77 77
78 void IpcHostEventLogger::OnStart(const std::string& xmpp_login) { 78 void IpcHostEventLogger::OnStart(const std::string& xmpp_login) {
79 DCHECK(CalledOnValidThread()); 79 DCHECK(CalledOnValidThread());
80 80
81 daemon_channel_->Send(new ChromotingNetworkDaemonMsg_HostStarted(xmpp_login)); 81 daemon_channel_->Send(new ChromotingNetworkDaemonMsg_HostStarted(xmpp_login));
82 } 82 }
83 83
84 } // namespace remoting 84 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698