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

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

Issue 9243017: Log client jid for rejected clients. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 8 years, 11 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
« no previous file with comments | « remoting/host/it2me_host_user_interface.h ('k') | remoting/host/log_to_server.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/it2me_host_user_interface.h" 5 #include "remoting/host/it2me_host_user_interface.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "remoting/host/chromoting_host.h" 8 #include "remoting/host/chromoting_host.h"
9 #include "remoting/host/chromoting_host_context.h" 9 #include "remoting/host/chromoting_host_context.h"
10 #include "remoting/host/continue_window.h" 10 #include "remoting/host/continue_window.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 } 73 }
74 74
75 void It2MeHostUserInterface::OnClientDisconnected(const std::string& jid) { 75 void It2MeHostUserInterface::OnClientDisconnected(const std::string& jid) {
76 if (jid == authenticated_jid_) { 76 if (jid == authenticated_jid_) {
77 ui_thread_proxy_.PostTask(FROM_HERE, base::Bind( 77 ui_thread_proxy_.PostTask(FROM_HERE, base::Bind(
78 &It2MeHostUserInterface::ProcessOnClientDisconnected, 78 &It2MeHostUserInterface::ProcessOnClientDisconnected,
79 base::Unretained(this))); 79 base::Unretained(this)));
80 } 80 }
81 } 81 }
82 82
83 void It2MeHostUserInterface::OnAccessDenied() { 83 void It2MeHostUserInterface::OnAccessDenied(const std::string& jid) {
84 } 84 }
85 85
86 void It2MeHostUserInterface::OnShutdown() { 86 void It2MeHostUserInterface::OnShutdown() {
87 // Host status observers must be removed on the network thread, so 87 // Host status observers must be removed on the network thread, so
88 // it must happen here instead of in the destructor. 88 // it must happen here instead of in the destructor.
89 host_->RemoveStatusObserver(this); 89 host_->RemoveStatusObserver(this);
90 } 90 }
91 91
92 void It2MeHostUserInterface::Shutdown() { 92 void It2MeHostUserInterface::Shutdown() {
93 DCHECK(context_->ui_message_loop()->BelongsToCurrentThread()); 93 DCHECK(context_->ui_message_loop()->BelongsToCurrentThread());
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 } 193 }
194 194
195 void It2MeHostUserInterface::OnShutdownHostTimer() { 195 void It2MeHostUserInterface::OnShutdownHostTimer() {
196 DCHECK(context_->ui_message_loop()->BelongsToCurrentThread()); 196 DCHECK(context_->ui_message_loop()->BelongsToCurrentThread());
197 197
198 ShowContinueWindow(false); 198 ShowContinueWindow(false);
199 host_->Shutdown(base::Closure()); 199 host_->Shutdown(base::Closure());
200 } 200 }
201 201
202 } // namespace remoting 202 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/it2me_host_user_interface.h ('k') | remoting/host/log_to_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698