OLD | NEW |
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 #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/browser/browser_message_filter.h" | 10 #include "content/browser/browser_message_filter.h" |
11 #include "content/common/p2p_sockets.h" | 11 #include "content/common/p2p_sockets.h" |
12 #include "net/base/ip_endpoint.h" | 12 #include "net/base/ip_endpoint.h" |
13 #include "net/base/network_change_notifier.h" | 13 #include "net/base/network_change_notifier.h" |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 class ResourceContext; | |
17 } // namespace content | |
18 | 16 |
19 class P2PSocketHost; | 17 class P2PSocketHost; |
| 18 class ResourceContext; |
20 | 19 |
21 class P2PSocketDispatcherHost | 20 class P2PSocketDispatcherHost |
22 : public BrowserMessageFilter, | 21 : public BrowserMessageFilter, |
23 public net::NetworkChangeNotifier::IPAddressObserver { | 22 public net::NetworkChangeNotifier::IPAddressObserver { |
24 public: | 23 public: |
25 P2PSocketDispatcherHost(const content::ResourceContext* resource_context); | 24 P2PSocketDispatcherHost(const content::ResourceContext* resource_context); |
26 virtual ~P2PSocketDispatcherHost(); | 25 virtual ~P2PSocketDispatcherHost(); |
27 | 26 |
28 // BrowserMessageFilter overrides. | 27 // BrowserMessageFilter overrides. |
29 virtual void OnChannelClosing() OVERRIDE; | 28 virtual void OnChannelClosing() OVERRIDE; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 | 77 |
79 // List or routing IDs for the hosts that have subscribed to the | 78 // List or routing IDs for the hosts that have subscribed to the |
80 // network list notifications. | 79 // network list notifications. |
81 std::set<int> notifications_routing_ids_; | 80 std::set<int> notifications_routing_ids_; |
82 | 81 |
83 std::set<DnsRequest*> dns_requests_; | 82 std::set<DnsRequest*> dns_requests_; |
84 | 83 |
85 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcherHost); | 84 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcherHost); |
86 }; | 85 }; |
87 | 86 |
| 87 } // namespace content |
| 88 |
88 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_ | 89 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_ |
OLD | NEW |