OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |