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

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

Issue 324143002: Decouple IPC::MessageFilter from IPC::Channel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing compilation errors Created 6 years, 6 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 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 21 matching lines...) Expand all
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698