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

Unified Diff: content/browser/renderer_host/p2p/socket_host_tcp.h

Issue 17132012: Proxy support for P2P TCP Socket (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 6 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
Index: content/browser/renderer_host/p2p/socket_host_tcp.h
===================================================================
--- content/browser/renderer_host/p2p/socket_host_tcp.h (revision 207453)
+++ content/browser/renderer_host/p2p/socket_host_tcp.h (working copy)
@@ -21,13 +21,15 @@
class DrainableIOBuffer;
class GrowableIOBuffer;
class StreamSocket;
+class URLRequestContextGetter;
} // namespace net
namespace content {
class CONTENT_EXPORT P2PSocketHostTcpBase : public P2PSocketHost {
public:
- P2PSocketHostTcpBase(IPC::Sender* message_sender, int id);
+ P2PSocketHostTcpBase(IPC::Sender* message_sender, int id,
+ net::URLRequestContextGetter* url_context);
virtual ~P2PSocketHostTcpBase();
bool InitAccepted(const net::IPEndPoint& remote_address,
@@ -52,9 +54,8 @@
void OnError();
private:
- friend class P2PSocketHostTcpTest;
+ friend class P2PSocketHostTcpTestBase;
friend class P2PSocketHostTcpServerTest;
- friend class P2PSocketHostStunTcpTest;
void DidCompleteRead(int result);
void DoRead();
@@ -78,12 +79,15 @@
bool connected_;
+ scoped_refptr<net::URLRequestContextGetter> url_context_;
+
DISALLOW_COPY_AND_ASSIGN(P2PSocketHostTcpBase);
};
class CONTENT_EXPORT P2PSocketHostTcp : public P2PSocketHostTcpBase {
public:
- P2PSocketHostTcp(IPC::Sender* message_sender, int id);
+ P2PSocketHostTcp(IPC::Sender* message_sender, int id,
+ net::URLRequestContextGetter* url_context);
virtual ~P2PSocketHostTcp();
protected:
@@ -100,7 +104,8 @@
// Formatting of messages is defined in RFC5766.
class CONTENT_EXPORT P2PSocketHostStunTcp : public P2PSocketHostTcpBase {
public:
- P2PSocketHostStunTcp(IPC::Sender* message_sender, int id);
+ P2PSocketHostStunTcp(IPC::Sender* message_sender, int id,
+ net::URLRequestContextGetter* url_context);
virtual ~P2PSocketHostStunTcp();
protected:

Powered by Google App Engine
This is Rietveld 408576698