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

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

Issue 9004050: Move signaling connection creation out of ChromotingHost. (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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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