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

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

Issue 292443004: Remove IPC_BEGIN_MESSAGE_MAP_EX macro since r270839 made all bad IPCs kill their child processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 7 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 22 matching lines...) Expand all
33 class P2PSocketDispatcherHost 33 class P2PSocketDispatcherHost
34 : public content::BrowserMessageFilter, 34 : public content::BrowserMessageFilter,
35 public net::NetworkChangeNotifier::IPAddressObserver { 35 public net::NetworkChangeNotifier::IPAddressObserver {
36 public: 36 public:
37 P2PSocketDispatcherHost(content::ResourceContext* resource_context, 37 P2PSocketDispatcherHost(content::ResourceContext* resource_context,
38 net::URLRequestContextGetter* url_context); 38 net::URLRequestContextGetter* url_context);
39 39
40 // content::BrowserMessageFilter overrides. 40 // content::BrowserMessageFilter overrides.
41 virtual void OnChannelClosing() OVERRIDE; 41 virtual void OnChannelClosing() OVERRIDE;
42 virtual void OnDestruct() const OVERRIDE; 42 virtual void OnDestruct() const OVERRIDE;
43 virtual bool OnMessageReceived(const IPC::Message& message, 43 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
44 bool* message_was_ok) OVERRIDE;
45 44
46 // net::NetworkChangeNotifier::IPAddressObserver interface. 45 // net::NetworkChangeNotifier::IPAddressObserver interface.
47 virtual void OnIPAddressChanged() OVERRIDE; 46 virtual void OnIPAddressChanged() OVERRIDE;
48 47
49 protected: 48 protected:
50 virtual ~P2PSocketDispatcherHost(); 49 virtual ~P2PSocketDispatcherHost();
51 50
52 private: 51 private:
53 friend struct BrowserThread::DeleteOnThread<BrowserThread::IO>; 52 friend struct BrowserThread::DeleteOnThread<BrowserThread::IO>;
54 friend class base::DeleteHelper<P2PSocketDispatcherHost>; 53 friend class base::DeleteHelper<P2PSocketDispatcherHost>;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 94
96 std::set<DnsRequest*> dns_requests_; 95 std::set<DnsRequest*> dns_requests_;
97 P2PMessageThrottler throttler_; 96 P2PMessageThrottler throttler_;
98 97
99 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcherHost); 98 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcherHost);
100 }; 99 };
101 100
102 } // namespace content 101 } // namespace content
103 102
104 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_ 103 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698