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 29 matching lines...) Expand all Loading... | |
40 | 40 |
41 // content::BrowserMessageFilter overrides. | 41 // content::BrowserMessageFilter overrides. |
42 virtual void OnChannelClosing() OVERRIDE; | 42 virtual void OnChannelClosing() 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 #if defined(ENABLE_WEBRTC) | |
jam
2014/07/16 18:27:23
nit: put the comment inside the ifdef. also, if yo
| |
50 void StartRtpDump( | 51 void StartRtpDump( |
51 bool incoming, | 52 bool incoming, |
52 bool outgoing, | 53 bool outgoing, |
53 const RenderProcessHost::WebRtcRtpPacketCallback& packet_callback); | 54 const RenderProcessHost::WebRtcRtpPacketCallback& packet_callback); |
55 #endif | |
54 | 56 |
55 // Stops the RTP packet header dumping. Must be Called on the UI thread. | 57 // Stops the RTP packet header dumping. Must be Called on the UI thread. |
56 void StopRtpDumpOnUIThread(bool incoming, bool outgoing); | 58 void StopRtpDumpOnUIThread(bool incoming, bool outgoing); |
57 | 59 |
58 protected: | 60 protected: |
59 virtual ~P2PSocketDispatcherHost(); | 61 virtual ~P2PSocketDispatcherHost(); |
60 | 62 |
61 private: | 63 private: |
62 friend struct BrowserThread::DeleteOnThread<BrowserThread::IO>; | 64 friend struct BrowserThread::DeleteOnThread<BrowserThread::IO>; |
63 friend class base::DeleteHelper<P2PSocketDispatcherHost>; | 65 friend class base::DeleteHelper<P2PSocketDispatcherHost>; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
102 | 104 |
103 SocketsMap sockets_; | 105 SocketsMap sockets_; |
104 | 106 |
105 bool monitoring_networks_; | 107 bool monitoring_networks_; |
106 | 108 |
107 std::set<DnsRequest*> dns_requests_; | 109 std::set<DnsRequest*> dns_requests_; |
108 P2PMessageThrottler throttler_; | 110 P2PMessageThrottler throttler_; |
109 | 111 |
110 bool dump_incoming_rtp_packet_; | 112 bool dump_incoming_rtp_packet_; |
111 bool dump_outgoing_rtp_packet_; | 113 bool dump_outgoing_rtp_packet_; |
114 #if defined(ENABLE_WEBRTC) | |
112 RenderProcessHost::WebRtcRtpPacketCallback packet_callback_; | 115 RenderProcessHost::WebRtcRtpPacketCallback packet_callback_; |
116 #endif | |
113 | 117 |
114 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcherHost); | 118 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcherHost); |
115 }; | 119 }; |
116 | 120 |
117 } // namespace content | 121 } // namespace content |
118 | 122 |
119 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_ | 123 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_ |
OLD | NEW |