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

Unified 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, 2 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/ice_transport_factory.cc
diff --git a/remoting/protocol/ice_transport_factory.cc b/remoting/protocol/ice_transport_factory.cc
new file mode 100644
index 0000000000000000000000000000000000000000..1cca9bedeb415bf12be027b12594ec8f5bf88d91
--- /dev/null
+++ b/remoting/protocol/ice_transport_factory.cc
@@ -0,0 +1,37 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "remoting/protocol/ice_transport_factory.h"
+
+#include "remoting/protocol/ice_transport_session.h"
+#include "remoting/protocol/libjingle_transport_factory.h"
+#include "third_party/webrtc/p2p/client/httpportallocator.h"
+
+namespace remoting {
+namespace protocol {
+
+IceTransportFactory::IceTransportFactory(
+ SignalStrategy* signal_strategy,
+ scoped_ptr<cricket::HttpPortAllocatorBase> port_allocator,
+ const NetworkSettings& network_settings,
+ TransportRole role)
+ : libjingle_transport_factory_(
+ new LibjingleTransportFactory(signal_strategy,
+ port_allocator.Pass(),
+ network_settings,
+ role)) {}
+IceTransportFactory::~IceTransportFactory() {}
+
+void IceTransportFactory::PrepareTokens() {
+ libjingle_transport_factory_->PrepareTokens();
+}
+
+scoped_ptr<TransportSession>
+IceTransportFactory::CreateTransportSession() {
+ return make_scoped_ptr(
+ new IceTransportSession(libjingle_transport_factory_.get()));
+}
+
+} // namespace protocol
+} // namespace remoting
« 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