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

Side by Side Diff: remoting/test/it2me_standalone_host.cc

Issue 2967793002: [Chromoting] Remove DataChannelManagerCallbacks constructor parameter of ClientSession (Closed)
Patch Set: Resolve review comments Created 3 years, 5 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
« no previous file with comments | « remoting/protocol/data_channel_manager.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/test/it2me_standalone_host.h" 5 #include "remoting/test/it2me_standalone_host.h"
6 6
7 #include <iostream> 7 #include <iostream>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 base::ConstRef(event_logger_))); 83 base::ConstRef(event_logger_)));
84 } 84 }
85 85
86 void It2MeStandaloneHost::Connect() { 86 void It2MeStandaloneHost::Connect() {
87 DesktopEnvironmentOptions options = 87 DesktopEnvironmentOptions options =
88 DesktopEnvironmentOptions::CreateDefault(); 88 DesktopEnvironmentOptions::CreateDefault();
89 options.set_enable_user_interface(false); 89 options.set_enable_user_interface(false);
90 session_.reset(new ClientSession( 90 session_.reset(new ClientSession(
91 &handler_, std::unique_ptr<protocol::ConnectionToClient>(&connection_), 91 &handler_, std::unique_ptr<protocol::ConnectionToClient>(&connection_),
92 &factory_, options, base::TimeDelta(), 92 &factory_, options, base::TimeDelta(),
93 scoped_refptr<protocol::PairingRegistry>(), std::vector<HostExtension*>(), 93 scoped_refptr<protocol::PairingRegistry>(),
94 std::vector<protocol::DataChannelManager::NameCallbackPair>())); 94 std::vector<HostExtension*>()));
95 session_->OnConnectionAuthenticated(); 95 session_->OnConnectionAuthenticated();
96 session_->OnConnectionChannelsConnected(); 96 session_->OnConnectionChannelsConnected();
97 session_->CreateMediaStreams(); 97 session_->CreateMediaStreams();
98 } 98 }
99 99
100 } // namespace test 100 } // namespace test
101 } // namespace remoting 101 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/data_channel_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698