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

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

Issue 8912009: Move BrowserMessageFilter to public, and into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to LKGR. Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 9
10 #include "content/browser/browser_message_filter.h"
11 #include "content/common/p2p_sockets.h" 10 #include "content/common/p2p_sockets.h"
11 #include "content/public/browser/browser_message_filter.h"
12 #include "net/base/ip_endpoint.h" 12 #include "net/base/ip_endpoint.h"
13 #include "net/base/network_change_notifier.h" 13 #include "net/base/network_change_notifier.h"
14 14
15 namespace content { 15 namespace content {
16 16
17 class P2PSocketHost; 17 class P2PSocketHost;
18 class ResourceContext; 18 class ResourceContext;
19 19
20 class P2PSocketDispatcherHost 20 class P2PSocketDispatcherHost
21 : public BrowserMessageFilter, 21 : public content::BrowserMessageFilter,
22 public net::NetworkChangeNotifier::IPAddressObserver { 22 public net::NetworkChangeNotifier::IPAddressObserver {
23 public: 23 public:
24 P2PSocketDispatcherHost(const content::ResourceContext* resource_context); 24 P2PSocketDispatcherHost(const content::ResourceContext* resource_context);
25 virtual ~P2PSocketDispatcherHost(); 25 virtual ~P2PSocketDispatcherHost();
26 26
27 // BrowserMessageFilter overrides. 27 // content::BrowserMessageFilter overrides.
28 virtual void OnChannelClosing() OVERRIDE; 28 virtual void OnChannelClosing() OVERRIDE;
29 virtual void OnDestruct() const OVERRIDE; 29 virtual void OnDestruct() const OVERRIDE;
30 virtual bool OnMessageReceived(const IPC::Message& message, 30 virtual bool OnMessageReceived(const IPC::Message& message,
31 bool* message_was_ok) OVERRIDE; 31 bool* message_was_ok) OVERRIDE;
32 32
33 // net::NetworkChangeNotifier::IPAddressObserver interface. 33 // net::NetworkChangeNotifier::IPAddressObserver interface.
34 virtual void OnIPAddressChanged() OVERRIDE; 34 virtual void OnIPAddressChanged() OVERRIDE;
35 35
36 private: 36 private:
37 typedef std::pair<int32, int> ExtendedSocketId; 37 typedef std::pair<int32, int> ExtendedSocketId;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 std::set<int> notifications_routing_ids_; 80 std::set<int> notifications_routing_ids_;
81 81
82 std::set<DnsRequest*> dns_requests_; 82 std::set<DnsRequest*> dns_requests_;
83 83
84 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcherHost); 84 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcherHost);
85 }; 85 };
86 86
87 } // namespace content 87 } // namespace content
88 88
89 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_ 89 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698