| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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( | 55 void It2MeHostUserInterface::OnSignallingConnected( |
| 56 SignalStrategy* signal_strategy, const std::string& full_jid) { | 56 SignalStrategy* signal_strategy) { |
| 57 } | 57 } |
| 58 | 58 |
| 59 void It2MeHostUserInterface::OnSignallingDisconnected() { | 59 void It2MeHostUserInterface::OnSignallingDisconnected() { |
| 60 } | 60 } |
| 61 | 61 |
| 62 void It2MeHostUserInterface::OnClientAuthenticated(const std::string& jid) { | 62 void It2MeHostUserInterface::OnClientAuthenticated(const std::string& jid) { |
| 63 // There should not be more than one concurrent authenticated connection. | 63 // There should not be more than one concurrent authenticated connection. |
| 64 DCHECK(authenticated_jid_.empty()); | 64 DCHECK(authenticated_jid_.empty()); |
| 65 authenticated_jid_ = jid; | 65 authenticated_jid_ = jid; |
| 66 | 66 |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 } | 190 } |
| 191 | 191 |
| 192 void It2MeHostUserInterface::OnShutdownHostTimer() { | 192 void It2MeHostUserInterface::OnShutdownHostTimer() { |
| 193 DCHECK(context_->ui_message_loop()->BelongsToCurrentThread()); | 193 DCHECK(context_->ui_message_loop()->BelongsToCurrentThread()); |
| 194 | 194 |
| 195 ShowContinueWindow(false); | 195 ShowContinueWindow(false); |
| 196 host_->Shutdown(base::Closure()); | 196 host_->Shutdown(base::Closure()); |
| 197 } | 197 } |
| 198 | 198 |
| 199 } // namespace remoting | 199 } // namespace remoting |
| OLD | NEW |