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 |