| OLD | NEW |
| 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_address_number.h" | |
| 11 | |
| 12 namespace net { | 10 namespace net { |
| 11 class IPAddress; |
| 13 struct NetworkInterface; | 12 struct NetworkInterface; |
| 14 typedef std::vector<NetworkInterface> NetworkInterfaceList; | 13 typedef std::vector<NetworkInterface> NetworkInterfaceList; |
| 15 } // namespace net | 14 } // namespace net |
| 16 | 15 |
| 17 namespace content { | 16 namespace content { |
| 18 | 17 |
| 19 class NetworkListObserver { | 18 class NetworkListObserver { |
| 20 public: | 19 public: |
| 21 virtual ~NetworkListObserver() {} | 20 virtual ~NetworkListObserver() {} |
| 22 | 21 |
| 23 virtual void OnNetworkListChanged( | 22 virtual void OnNetworkListChanged( |
| 24 const net::NetworkInterfaceList& list, | 23 const net::NetworkInterfaceList& list, |
| 25 const net::IPAddressNumber& default_ipv4_local_address, | 24 const net::IPAddress& default_ipv4_local_address, |
| 26 const net::IPAddressNumber& default_ipv6_local_address) = 0; | 25 const net::IPAddress& default_ipv6_local_address) = 0; |
| 27 | 26 |
| 28 protected: | 27 protected: |
| 29 NetworkListObserver() {} | 28 NetworkListObserver() {} |
| 30 }; | 29 }; |
| 31 | 30 |
| 32 } // namespace content | 31 } // namespace content |
| 33 | 32 |
| 34 #endif // CONTENT_RENDERER_P2P_NETWORK_LIST_OBSERVER_H_ | 33 #endif // CONTENT_RENDERER_P2P_NETWORK_LIST_OBSERVER_H_ |
| OLD | NEW |