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

Unified Diff: content/renderer/p2p/socket_client_impl.cc

Issue 193663003: Push remote hostname to P2P socket host. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | « content/renderer/p2p/socket_client_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/p2p/socket_client_impl.cc
diff --git a/content/renderer/p2p/socket_client_impl.cc b/content/renderer/p2p/socket_client_impl.cc
index 7b13c054cb6b4be2eeeae217a4e791595956fd9b..804a9a8b671ed6c41cf55e5e613495edd4424491 100644
--- a/content/renderer/p2p/socket_client_impl.cc
+++ b/content/renderer/p2p/socket_client_impl.cc
@@ -25,17 +25,6 @@ uint64 GetUniqueId(uint32 random_socket_id, uint32 packet_id) {
namespace content {
-scoped_refptr<P2PSocketClient> P2PSocketClient::Create(
- P2PSocketType type,
- const net::IPEndPoint& local_address,
- const net::IPEndPoint& remote_address,
- P2PSocketClientDelegate* delegate) {
- P2PSocketClientImpl* impl = new P2PSocketClientImpl(
- RenderThreadImpl::current()->p2p_socket_dispatcher());
- impl->Init(type, local_address, remote_address, delegate);
- return impl;
-}
-
P2PSocketClientImpl::P2PSocketClientImpl(P2PSocketDispatcher* dispatcher)
: dispatcher_(dispatcher),
ipc_message_loop_(dispatcher->message_loop()),
@@ -54,7 +43,7 @@ P2PSocketClientImpl::~P2PSocketClientImpl() {
void P2PSocketClientImpl::Init(
P2PSocketType type,
const net::IPEndPoint& local_address,
- const net::IPEndPoint& remote_address,
+ const P2PHostAndIPEndPoint& remote_address,
P2PSocketClientDelegate* delegate) {
DCHECK(delegate_message_loop_->BelongsToCurrentThread());
// |delegate_| is only accessesed on |delegate_message_loop_|.
@@ -70,7 +59,7 @@ void P2PSocketClientImpl::Init(
void P2PSocketClientImpl::DoInit(P2PSocketType type,
const net::IPEndPoint& local_address,
- const net::IPEndPoint& remote_address) {
+ const P2PHostAndIPEndPoint& remote_address) {
DCHECK_EQ(state_, STATE_UNINITIALIZED);
DCHECK(delegate_);
state_ = STATE_OPENING;
« no previous file with comments | « content/renderer/p2p/socket_client_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698