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

Unified Diff: chrome/renderer/p2p/ipc_socket_factory.h

Issue 6673090: Move core renderer subdirectories to content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 | « chrome/renderer/p2p/ipc_network_manager.cc ('k') | chrome/renderer/p2p/ipc_socket_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/p2p/ipc_socket_factory.h
===================================================================
--- chrome/renderer/p2p/ipc_socket_factory.h (revision 78386)
+++ chrome/renderer/p2p/ipc_socket_factory.h (working copy)
@@ -1,43 +0,0 @@
-// Copyright (c) 2011 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 CHROME_RENDERER_P2P_IPC_SOCKET_FACTORY_H_
-#define CHROME_RENDERER_P2P_IPC_SOCKET_FACTORY_H_
-
-#include "base/basictypes.h"
-#include "third_party/libjingle/source/talk/base/packetsocketfactory.h"
-
-class P2PSocketDispatcher;
-
-// IpcPacketSocketFactory implements talk_base::PacketSocketFactory
-// interface for libjingle using IPC-based P2P sockets. The class must
-// be used on a thread that is a libjingle thread (implements
-// talk_base::Thread) and also has associated base::MessageLoop. Each
-// socket created by the factory must be used on the thread it was
-// created on.
-class IpcPacketSocketFactory : public talk_base::PacketSocketFactory {
- public:
- explicit IpcPacketSocketFactory(P2PSocketDispatcher* socket_dispatcher);
- virtual ~IpcPacketSocketFactory();
-
- virtual talk_base::AsyncPacketSocket* CreateUdpSocket(
- const talk_base::SocketAddress& local_address,
- int min_port, int max_port);
- virtual talk_base::AsyncPacketSocket* CreateServerTcpSocket(
- const talk_base::SocketAddress& local_address, int min_port, int max_port,
- bool listen, bool ssl);
- virtual talk_base::AsyncPacketSocket* CreateClientTcpSocket(
- const talk_base::SocketAddress& local_address,
- const talk_base::SocketAddress& remote_address,
- const talk_base::ProxyInfo& proxy_info,
- const std::string& user_agent,
- bool ssl);
-
- private:
- P2PSocketDispatcher* socket_dispatcher_;
-
- DISALLOW_COPY_AND_ASSIGN(IpcPacketSocketFactory);
-};
-
-#endif // CHROME_RENDERER_P2P_IPC_SOCKET_FACTORY_H_
« no previous file with comments | « chrome/renderer/p2p/ipc_network_manager.cc ('k') | chrome/renderer/p2p/ipc_socket_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698