1 // Copyright 2014 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.
5 #ifndef EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_DELEGATE_OBSERVER_H_
6 #define EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_DELEGATE_OBSERVER_H_
11 #include "base/macros.h"
13 namespace extensions
{
15 // Implemented by event handlers so they are notified when a change event
16 // occurs. Triggered by NetworkingPrivateServiceClient or
17 // NetworkingPrivateLinux. Not used on Chrome OS.
18 class NetworkingPrivateDelegateObserver
{
20 // Notifes observers when properties may have changed for the networks listed
21 // in |network_guids|.
22 virtual void OnNetworksChangedEvent(
23 const std::vector
<std::string
>& network_guids
) = 0;
25 // Notifies observers that the list of networks changed. |network_guids|
26 // contains the complete list of network guids.
27 virtual void OnNetworkListChangedEvent(
28 const std::vector
<std::string
>& network_guids
) = 0;
31 virtual ~NetworkingPrivateDelegateObserver() {}
34 DISALLOW_ASSIGN(NetworkingPrivateDelegateObserver
);
37 } // namespace extensions
39 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_DELEGATE_OBSERVER_H_