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

Side by Side Diff: remoting/protocol/ice_transport_factory.cc

Issue 1420273002: Add TransportSession interface to prepare for WebRTC-based transport. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/ice_transport_factory.h ('k') | remoting/protocol/ice_transport_session.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "remoting/protocol/ice_transport_factory.h"
6
7 #include "remoting/protocol/ice_transport_session.h"
8 #include "remoting/protocol/libjingle_transport_factory.h"
9 #include "third_party/webrtc/p2p/client/httpportallocator.h"
10
11 namespace remoting {
12 namespace protocol {
13
14 IceTransportFactory::IceTransportFactory(
15 SignalStrategy* signal_strategy,
16 scoped_ptr<cricket::HttpPortAllocatorBase> port_allocator,
17 const NetworkSettings& network_settings,
18 TransportRole role)
19 : libjingle_transport_factory_(
20 new LibjingleTransportFactory(signal_strategy,
21 port_allocator.Pass(),
22 network_settings,
23 role)) {}
24 IceTransportFactory::~IceTransportFactory() {}
25
26 void IceTransportFactory::PrepareTokens() {
27 libjingle_transport_factory_->PrepareTokens();
28 }
29
30 scoped_ptr<TransportSession>
31 IceTransportFactory::CreateTransportSession() {
32 return make_scoped_ptr(
33 new IceTransportSession(libjingle_transport_factory_.get()));
34 }
35
36 } // namespace protocol
37 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/ice_transport_factory.h ('k') | remoting/protocol/ice_transport_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698