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

Unified Diff: content/renderer/p2p/socket_dispatcher.h

Issue 536133003: MergeNetworkList can't group address under the same interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change the prefix length type from unsigned int to uint32 Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/p2p/network_list_manager.h ('k') | net/base/net_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/p2p/socket_dispatcher.h
diff --git a/content/renderer/p2p/socket_dispatcher.h b/content/renderer/p2p/socket_dispatcher.h
index 6ad48c39c29e8d64f82bc5b66a14c57bc50ba9d8..61a2d3bbca443d953dd12db2baaf46532f122e5d 100644
--- a/content/renderer/p2p/socket_dispatcher.h
+++ b/content/renderer/p2p/socket_dispatcher.h
@@ -30,6 +30,7 @@
#include "base/synchronization/lock.h"
#include "content/common/content_export.h"
#include "content/common/p2p_socket_type.h"
+#include "content/renderer/p2p/network_list_manager.h"
#include "ipc/message_filter.h"
#include "net/base/net_util.h"
@@ -48,19 +49,16 @@ class P2PAsyncAddressResolver;
class P2PSocketClientImpl;
class RenderViewImpl;
-class CONTENT_EXPORT P2PSocketDispatcher : public IPC::MessageFilter {
+class CONTENT_EXPORT P2PSocketDispatcher : public IPC::MessageFilter,
+ public NetworkListManager {
public:
explicit P2PSocketDispatcher(base::MessageLoopProxy* ipc_message_loop);
- // Add a new network list observer. Each observer is called
- // immidiately after it is registered and then later whenever
- // network configuration changes. Can be called on any thread. The
- // observer is always called on the thread it was added.
- void AddNetworkListObserver(NetworkListObserver* network_list_observer);
-
- // Removes network list observer. Must be called on the thread on
- // which the observer was added.
- void RemoveNetworkListObserver(NetworkListObserver* network_list_observer);
+ // NetworkListManager interface:
+ virtual void AddNetworkListObserver(
+ NetworkListObserver* network_list_observer) OVERRIDE;
+ virtual void RemoveNetworkListObserver(
+ NetworkListObserver* network_list_observer) OVERRIDE;
protected:
virtual ~P2PSocketDispatcher();
« no previous file with comments | « content/renderer/p2p/network_list_manager.h ('k') | net/base/net_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698