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

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

Issue 8912009: Move BrowserMessageFilter to public, and into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to LKGR. Created 9 years 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::BrowserMessageFilter;
19 using content::BrowserThread; 20 using content::BrowserThread;
20 21
21 namespace content { 22 namespace content {
22 23
23 class P2PSocketDispatcherHost::DnsRequest { 24 class P2PSocketDispatcherHost::DnsRequest {
24 public: 25 public:
25 typedef base::Callback<void(const net::IPAddressNumber&)> DoneCallback; 26 typedef base::Callback<void(const net::IPAddressNumber&)> DoneCallback;
26 27
27 DnsRequest(int32 routing_id, int32 request_id, 28 DnsRequest(int32 routing_id, int32 request_id,
28 net::HostResolver* host_resolver) 29 net::HostResolver* host_resolver)
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 ExtendedSocketId(msg.routing_id(), socket_id)); 280 ExtendedSocketId(msg.routing_id(), socket_id));
280 if (it != sockets_.end()) { 281 if (it != sockets_.end()) {
281 delete it->second; 282 delete it->second;
282 sockets_.erase(it); 283 sockets_.erase(it);
283 } else { 284 } else {
284 LOG(ERROR) << "Received P2PHostMsg_DestroySocket for invalid socket_id."; 285 LOG(ERROR) << "Received P2PHostMsg_DestroySocket for invalid socket_id.";
285 } 286 }
286 } 287 }
287 288
288 } // namespace content 289 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698