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

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

Issue 9005034: Refactor SignalStrategy so that it can be reused for multiple connections. (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) 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
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
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
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