OLD | NEW |
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 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 21 matching lines...) Expand all Loading... |
32 class ResourceContext; | 32 class ResourceContext; |
33 | 33 |
34 class P2PSocketDispatcherHost | 34 class P2PSocketDispatcherHost |
35 : public content::BrowserMessageFilter, | 35 : public content::BrowserMessageFilter, |
36 public net::NetworkChangeNotifier::IPAddressObserver { | 36 public net::NetworkChangeNotifier::IPAddressObserver { |
37 public: | 37 public: |
38 P2PSocketDispatcherHost(content::ResourceContext* resource_context, | 38 P2PSocketDispatcherHost(content::ResourceContext* resource_context, |
39 net::URLRequestContextGetter* url_context); | 39 net::URLRequestContextGetter* url_context); |
40 | 40 |
41 // content::BrowserMessageFilter overrides. | 41 // content::BrowserMessageFilter overrides. |
42 virtual void OnChannelClosing() OVERRIDE; | 42 virtual void OnSenderClosing() OVERRIDE; |
43 virtual void OnDestruct() const OVERRIDE; | 43 virtual void OnDestruct() const OVERRIDE; |
44 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 44 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
45 | 45 |
46 // net::NetworkChangeNotifier::IPAddressObserver interface. | 46 // net::NetworkChangeNotifier::IPAddressObserver interface. |
47 virtual void OnIPAddressChanged() OVERRIDE; | 47 virtual void OnIPAddressChanged() OVERRIDE; |
48 | 48 |
49 // Starts the RTP packet header dumping. Must be called on the IO thread. | 49 // Starts the RTP packet header dumping. Must be called on the IO thread. |
50 void StartRtpDump( | 50 void StartRtpDump( |
51 bool incoming, | 51 bool incoming, |
52 bool outgoing, | 52 bool outgoing, |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 bool dump_incoming_rtp_packet_; | 110 bool dump_incoming_rtp_packet_; |
111 bool dump_outgoing_rtp_packet_; | 111 bool dump_outgoing_rtp_packet_; |
112 RenderProcessHost::WebRtcRtpPacketCallback packet_callback_; | 112 RenderProcessHost::WebRtcRtpPacketCallback packet_callback_; |
113 | 113 |
114 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcherHost); | 114 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcherHost); |
115 }; | 115 }; |
116 | 116 |
117 } // namespace content | 117 } // namespace content |
118 | 118 |
119 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_ | 119 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_ |
OLD | NEW |