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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(const std::string& jid) { | 83 void It2MeHostUserInterface::OnAccessDenied(const std::string& jid) { |
84 } | 84 } |
85 | 85 |
| 86 void It2MeHostUserInterface::OnClientIpAddress( |
| 87 const std::string& jid, const std::string& channel_name, |
| 88 const net::IPEndPoint& end_point) { |
| 89 } |
| 90 |
86 void It2MeHostUserInterface::OnShutdown() { | 91 void It2MeHostUserInterface::OnShutdown() { |
87 // Host status observers must be removed on the network thread, so | 92 // Host status observers must be removed on the network thread, so |
88 // it must happen here instead of in the destructor. | 93 // it must happen here instead of in the destructor. |
89 host_->RemoveStatusObserver(this); | 94 host_->RemoveStatusObserver(this); |
90 } | 95 } |
91 | 96 |
92 void It2MeHostUserInterface::Shutdown() { | 97 void It2MeHostUserInterface::Shutdown() { |
93 DCHECK(context_->ui_message_loop()->BelongsToCurrentThread()); | 98 DCHECK(context_->ui_message_loop()->BelongsToCurrentThread()); |
94 | 99 |
95 MonitorLocalInputs(false); | 100 MonitorLocalInputs(false); |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 } | 198 } |
194 | 199 |
195 void It2MeHostUserInterface::OnShutdownHostTimer() { | 200 void It2MeHostUserInterface::OnShutdownHostTimer() { |
196 DCHECK(context_->ui_message_loop()->BelongsToCurrentThread()); | 201 DCHECK(context_->ui_message_loop()->BelongsToCurrentThread()); |
197 | 202 |
198 ShowContinueWindow(false); | 203 ShowContinueWindow(false); |
199 host_->Shutdown(base::Closure()); | 204 host_->Shutdown(base::Closure()); |
200 } | 205 } |
201 | 206 |
202 } // namespace remoting | 207 } // namespace remoting |
OLD | NEW |