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 3 // found in the LICENSE file. 4 5 #ifndef CONTENT_RENDERER_P2P_NETWORK_LIST_OBSERVER_H_ 6 #define CONTENT_RENDERER_P2P_NETWORK_LIST_OBSERVER_H_ 7 8 #include <vector> 9 10 namespace net { 11 struct NetworkInterface; 12 typedef std::vector<NetworkInterface> NetworkInterfaceList; 13 } // namespace net 14 15 namespace content { 16 17 class NetworkListObserver { 18 public: ~NetworkListObserver()19 virtual ~NetworkListObserver() {} 20 21 virtual void OnNetworkListChanged( 22 const net::NetworkInterfaceList& list) = 0; 23 24 protected: NetworkListObserver()25 NetworkListObserver() {} 26 }; 27 28 } // namespace content 29 30 #endif // CONTENT_RENDERER_P2P_NETWORK_LIST_OBSERVER_H_ 31