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

Side by Side Diff: content/renderer/p2p/network_list_observer.h

Issue 1405963021: Add support for default local address in IpcNetworkManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update test cases. Created 5 years, 1 month 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_RENDERER_P2P_NETWORK_LIST_OBSERVER_H_ 5 #ifndef CONTENT_RENDERER_P2P_NETWORK_LIST_OBSERVER_H_
6 #define CONTENT_RENDERER_P2P_NETWORK_LIST_OBSERVER_H_ 6 #define CONTENT_RENDERER_P2P_NETWORK_LIST_OBSERVER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "net/base/ip_endpoint.h"
Sergey Ulanov 2015/11/10 22:44:17 nit: forward declare IPEndPoint. No need to includ
guoweis_webrtc 2015/11/11 00:11:51 Moved to IPAddressNumber and it's a typedef so kee
11
10 namespace net { 12 namespace net {
11 struct NetworkInterface; 13 struct NetworkInterface;
12 typedef std::vector<NetworkInterface> NetworkInterfaceList; 14 typedef std::vector<NetworkInterface> NetworkInterfaceList;
13 } // namespace net 15 } // namespace net
14 16
15 namespace content { 17 namespace content {
16 18
17 class NetworkListObserver { 19 class NetworkListObserver {
18 public: 20 public:
19 virtual ~NetworkListObserver() {} 21 virtual ~NetworkListObserver() {}
20 22
21 virtual void OnNetworkListChanged( 23 virtual void OnNetworkListChanged(
22 const net::NetworkInterfaceList& list) = 0; 24 const net::NetworkInterfaceList& list,
25 const net::IPEndPoint& default_ipv4_local_address,
26 const net::IPEndPoint& default_ipv6_local_address) = 0;
23 27
24 protected: 28 protected:
25 NetworkListObserver() {} 29 NetworkListObserver() {}
26 }; 30 };
27 31
28 } // namespace content 32 } // namespace content
29 33
30 #endif // CONTENT_RENDERER_P2P_NETWORK_LIST_OBSERVER_H_ 34 #endif // CONTENT_RENDERER_P2P_NETWORK_LIST_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698