OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 } | 45 } |
46 | 46 |
47 void It2MeHostUserInterface::InitFrom(DisconnectWindow* disconnect_window, | 47 void It2MeHostUserInterface::InitFrom(DisconnectWindow* disconnect_window, |
48 ContinueWindow* continue_window, | 48 ContinueWindow* continue_window, |
49 LocalInputMonitor* monitor) { | 49 LocalInputMonitor* monitor) { |
50 disconnect_window_.reset(disconnect_window); | 50 disconnect_window_.reset(disconnect_window); |
51 continue_window_.reset(continue_window); | 51 continue_window_.reset(continue_window); |
52 local_input_monitor_.reset(monitor); | 52 local_input_monitor_.reset(monitor); |
53 } | 53 } |
54 | 54 |
55 void It2MeHostUserInterface::OnSignallingConnected( | |
56 SignalStrategy* signal_strategy) { | |
57 } | |
58 | |
59 void It2MeHostUserInterface::OnSignallingDisconnected() { | |
60 } | |
61 | |
62 void It2MeHostUserInterface::OnClientAuthenticated(const std::string& jid) { | 55 void It2MeHostUserInterface::OnClientAuthenticated(const std::string& jid) { |
63 // There should not be more than one concurrent authenticated connection. | 56 // There should not be more than one concurrent authenticated connection. |
64 DCHECK(authenticated_jid_.empty()); | 57 DCHECK(authenticated_jid_.empty()); |
65 authenticated_jid_ = jid; | 58 authenticated_jid_ = jid; |
66 | 59 |
67 std::string username = jid.substr(0, jid.find('/')); | 60 std::string username = jid.substr(0, jid.find('/')); |
68 ui_thread_proxy_.PostTask(FROM_HERE, base::Bind( | 61 ui_thread_proxy_.PostTask(FROM_HERE, base::Bind( |
69 &It2MeHostUserInterface::ProcessOnClientAuthenticated, | 62 &It2MeHostUserInterface::ProcessOnClientAuthenticated, |
70 base::Unretained(this), | 63 base::Unretained(this), |
71 username)); | 64 username)); |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 } | 183 } |
191 | 184 |
192 void It2MeHostUserInterface::OnShutdownHostTimer() { | 185 void It2MeHostUserInterface::OnShutdownHostTimer() { |
193 DCHECK(context_->ui_message_loop()->BelongsToCurrentThread()); | 186 DCHECK(context_->ui_message_loop()->BelongsToCurrentThread()); |
194 | 187 |
195 ShowContinueWindow(false); | 188 ShowContinueWindow(false); |
196 host_->Shutdown(base::Closure()); | 189 host_->Shutdown(base::Closure()); |
197 } | 190 } |
198 | 191 |
199 } // namespace remoting | 192 } // namespace remoting |
OLD | NEW |