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

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

Issue 381683003: Fix enable_webrtc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: enable_webrtc code style fix Created 6 years, 5 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
« no previous file with comments | « no previous file | content/browser/renderer_host/p2p/socket_dispatcher_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 28 matching lines...) Expand all
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 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 #if defined(ENABLE_WEBRTC)
49 // Starts the RTP packet header dumping. Must be called on the IO thread. 50 // Starts the RTP packet header dumping. Must be called on the IO thread.
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);
54 55
55 // Stops the RTP packet header dumping. Must be Called on the UI thread. 56 // Stops the RTP packet header dumping. Must be Called on the UI thread.
56 void StopRtpDumpOnUIThread(bool incoming, bool outgoing); 57 void StopRtpDumpOnUIThread(bool incoming, bool outgoing);
58 #endif
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>;
64 66
65 typedef std::map<int, P2PSocketHost*> SocketsMap; 67 typedef std::map<int, P2PSocketHost*> SocketsMap;
66 68
(...skipping 21 matching lines...) Expand all
88 uint64 packet_id); 90 uint64 packet_id);
89 void OnSetOption(int socket_id, P2PSocketOption option, int value); 91 void OnSetOption(int socket_id, P2PSocketOption option, int value);
90 void OnDestroySocket(int socket_id); 92 void OnDestroySocket(int socket_id);
91 93
92 void DoGetNetworkList(); 94 void DoGetNetworkList();
93 void SendNetworkList(const net::NetworkInterfaceList& list); 95 void SendNetworkList(const net::NetworkInterfaceList& list);
94 96
95 void OnAddressResolved(DnsRequest* request, 97 void OnAddressResolved(DnsRequest* request,
96 const net::IPAddressList& addresses); 98 const net::IPAddressList& addresses);
97 99
98 void StopRtpDumpOnIOThread(bool incoming, bool outgoing); 100 void StopRtpDumpOnIOThread(bool incoming, bool outgoing);
zhaoze.zhou 2014/07/16 21:12:39 hi, I think the StopRtpDumpOnIOThread method also
99 101
100 content::ResourceContext* resource_context_; 102 content::ResourceContext* resource_context_;
101 scoped_refptr<net::URLRequestContextGetter> url_context_; 103 scoped_refptr<net::URLRequestContextGetter> url_context_;
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_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/p2p/socket_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698