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

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

Issue 10917167: Refactor the P2PSocketDispatcher to be created on the RenderThread instead of the RenderView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change P2PSocketDispatcher to take the io message loop as input to fix existing unit tests Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "content/common/p2p_sockets.h" 10 #include "content/common/p2p_sockets.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 void OnAddressResolved(DnsRequest* request, 75 void OnAddressResolved(DnsRequest* request,
76 const net::IPAddressNumber& result); 76 const net::IPAddressNumber& result);
77 77
78 content::ResourceContext* resource_context_; 78 content::ResourceContext* resource_context_;
79 79
80 SocketsMap sockets_; 80 SocketsMap sockets_;
81 81
82 bool monitoring_networks_; 82 bool monitoring_networks_;
83 83
84 // List or routing IDs for the hosts that have subscribed to the
85 // network list notifications.
86 std::set<int> notifications_routing_ids_;
87
88 std::set<DnsRequest*> dns_requests_; 84 std::set<DnsRequest*> dns_requests_;
89 85
90 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcherHost); 86 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcherHost);
91 }; 87 };
92 88
93 } // namespace content 89 } // namespace content
94 90
95 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_ 91 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698