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

Unified Diff: remoting/host/session_manager_factory.cc

Issue 1521883006: Add TransportContext class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/host/session_manager_factory.h ('k') | remoting/protocol/chromium_port_allocator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/session_manager_factory.cc
diff --git a/remoting/host/session_manager_factory.cc b/remoting/host/session_manager_factory.cc
deleted file mode 100644
index 58a67521d542a5dbb4e9c174e93fea7254455e4e..0000000000000000000000000000000000000000
--- a/remoting/host/session_manager_factory.cc
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) 2012 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/host/session_manager_factory.h"
-
-#include "remoting/protocol/chromium_port_allocator.h"
-#include "remoting/protocol/chromium_socket_factory.h"
-#include "remoting/protocol/ice_transport_factory.h"
-#include "remoting/protocol/jingle_session_manager.h"
-#include "remoting/protocol/network_settings.h"
-#include "remoting/protocol/session_manager.h"
-
-namespace remoting {
-
-scoped_ptr<protocol::SessionManager> CreateHostSessionManager(
- SignalStrategy* signal_strategy,
- const protocol::NetworkSettings& network_settings,
- const scoped_refptr<net::URLRequestContextGetter>&
- url_request_context_getter) {
- // Use Chrome's network stack to allocate ports for peer-to-peer channels.
- scoped_ptr<protocol::ChromiumPortAllocator> port_allocator(
- protocol::ChromiumPortAllocator::Create(url_request_context_getter,
- network_settings));
-
- scoped_ptr<protocol::TransportFactory> transport_factory(
- new protocol::IceTransportFactory(
- signal_strategy, port_allocator.Pass(), network_settings,
- protocol::TransportRole::SERVER));
-
- scoped_ptr<protocol::JingleSessionManager> session_manager(
- new protocol::JingleSessionManager(transport_factory.Pass()));
- return session_manager.Pass();
-}
-
-} // namespace remoting
« no previous file with comments | « remoting/host/session_manager_factory.h ('k') | remoting/protocol/chromium_port_allocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698