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

Unified Diff: remoting/jingle_glue/chromium_port_allocator.h

Issue 390983003: Remove remoting/jingle_glue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/jingle_glue/DEPS ('k') | remoting/jingle_glue/chromium_port_allocator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/jingle_glue/chromium_port_allocator.h
diff --git a/remoting/jingle_glue/chromium_port_allocator.h b/remoting/jingle_glue/chromium_port_allocator.h
deleted file mode 100644
index d5c850f5839174e90f21389a870e51c4fabae94f..0000000000000000000000000000000000000000
--- a/remoting/jingle_glue/chromium_port_allocator.h
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright 2013 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.
-
-#ifndef REMOTING_JINGLE_GLUE_CHROMIUM_PORT_ALLOCATOR_H_
-#define REMOTING_JINGLE_GLUE_CHROMIUM_PORT_ALLOCATOR_H_
-
-#include <set>
-
-#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
-#include "third_party/libjingle/source/talk/p2p/client/httpportallocator.h"
-
-namespace net {
-class URLRequestContextGetter;
-} // namespace net
-
-namespace remoting {
-
-struct NetworkSettings;
-
-// An implementation of cricket::PortAllocator for libjingle that
-// uses Chromium's network stack and configures itself according
-// to the specified NetworkSettings.
-class ChromiumPortAllocator : public cricket::HttpPortAllocatorBase {
- public:
- static scoped_ptr<ChromiumPortAllocator> Create(
- const scoped_refptr<net::URLRequestContextGetter>& url_context,
- const NetworkSettings& network_settings);
-
- virtual ~ChromiumPortAllocator();
-
- // cricket::HttpPortAllocatorBase overrides.
- virtual cricket::PortAllocatorSession* CreateSessionInternal(
- const std::string& content_name,
- int component,
- const std::string& ice_username_fragment,
- const std::string& ice_password) OVERRIDE;
-
- private:
- ChromiumPortAllocator(
- const scoped_refptr<net::URLRequestContextGetter>& url_context,
- scoped_ptr<talk_base::NetworkManager> network_manager,
- scoped_ptr<talk_base::PacketSocketFactory> socket_factory);
-
- scoped_refptr<net::URLRequestContextGetter> url_context_;
- scoped_ptr<talk_base::NetworkManager> network_manager_;
- scoped_ptr<talk_base::PacketSocketFactory> socket_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(ChromiumPortAllocator);
-};
-
-} // namespace remoting
-
-#endif // REMOTING_HOST_HOST_PORT_ALLOCATOR_H_
« no previous file with comments | « remoting/jingle_glue/DEPS ('k') | remoting/jingle_glue/chromium_port_allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698