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

Side by Side Diff: content/browser/renderer_host/p2p/socket_dispatcher_host.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h" 5 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/stl_util.h" 8 #include "base/stl_util.h"
9 #include "content/browser/renderer_host/p2p/socket_host.h" 9 #include "content/browser/renderer_host/p2p/socket_host.h"
10 #include "content/browser/resource_context.h" 10 #include "content/browser/resource_context.h"
11 #include "content/common/p2p_messages.h" 11 #include "content/common/p2p_messages.h"
12 #include "net/base/address_list.h" 12 #include "net/base/address_list.h"
13 #include "net/base/completion_callback.h" 13 #include "net/base/completion_callback.h"
14 #include "net/base/net_errors.h" 14 #include "net/base/net_errors.h"
15 #include "net/base/net_log.h" 15 #include "net/base/net_log.h"
16 #include "net/base/single_request_host_resolver.h" 16 #include "net/base/single_request_host_resolver.h"
17 #include "net/base/sys_addrinfo.h" 17 #include "net/base/sys_addrinfo.h"
18 18
19 using content::BrowserThread;
20
19 namespace content { 21 namespace content {
20 22
21 class P2PSocketDispatcherHost::DnsRequest { 23 class P2PSocketDispatcherHost::DnsRequest {
22 public: 24 public:
23 typedef base::Callback<void(const net::IPAddressNumber&)> DoneCallback; 25 typedef base::Callback<void(const net::IPAddressNumber&)> DoneCallback;
24 26
25 DnsRequest(int32 routing_id, int32 request_id, 27 DnsRequest(int32 routing_id, int32 request_id,
26 net::HostResolver* host_resolver) 28 net::HostResolver* host_resolver)
27 : routing_id_(routing_id), 29 : routing_id_(routing_id),
28 request_id_(request_id), 30 request_id_(request_id),
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 ExtendedSocketId(msg.routing_id(), socket_id)); 280 ExtendedSocketId(msg.routing_id(), socket_id));
279 if (it != sockets_.end()) { 281 if (it != sockets_.end()) {
280 delete it->second; 282 delete it->second;
281 sockets_.erase(it); 283 sockets_.erase(it);
282 } else { 284 } else {
283 LOG(ERROR) << "Received P2PHostMsg_DestroySocket for invalid socket_id."; 285 LOG(ERROR) << "Received P2PHostMsg_DestroySocket for invalid socket_id.";
284 } 286 }
285 } 287 }
286 288
287 } // namespace content 289 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698