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

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

Issue 11419224: Add missing (and remove superfluous) 'explicit' from constructors. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + remove non-straightforward changes Created 7 years, 11 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 9
10 #include "content/common/p2p_sockets.h" 10 #include "content/common/p2p_sockets.h"
11 #include "content/public/browser/browser_message_filter.h" 11 #include "content/public/browser/browser_message_filter.h"
12 #include "content/public/browser/browser_thread.h" 12 #include "content/public/browser/browser_thread.h"
13 #include "net/base/ip_endpoint.h" 13 #include "net/base/ip_endpoint.h"
14 #include "net/base/network_change_notifier.h" 14 #include "net/base/network_change_notifier.h"
15 15
16 namespace content { 16 namespace content {
17 17
18 class P2PSocketHost; 18 class P2PSocketHost;
19 class ResourceContext; 19 class ResourceContext;
20 20
21 class P2PSocketDispatcherHost 21 class P2PSocketDispatcherHost
22 : public content::BrowserMessageFilter, 22 : public content::BrowserMessageFilter,
23 public net::NetworkChangeNotifier::IPAddressObserver { 23 public net::NetworkChangeNotifier::IPAddressObserver {
24 public: 24 public:
25 P2PSocketDispatcherHost(content::ResourceContext* resource_context); 25 explicit P2PSocketDispatcherHost(content::ResourceContext* resource_context);
26 26
27 // content::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
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 bool monitoring_networks_; 78 bool monitoring_networks_;
79 79
80 std::set<DnsRequest*> dns_requests_; 80 std::set<DnsRequest*> dns_requests_;
81 81
82 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcherHost); 82 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcherHost);
83 }; 83 };
84 84
85 } // namespace content 85 } // namespace content
86 86
87 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_ 87 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698