Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / extensions / browser / api / networking_private / networking_private_delegate_observer.h
blob2a294f33c254e0ee7ffebf0ae500005ac9e04c07
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_
8 #include <string>
9 #include <vector>
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 {
19 public:
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;
30 protected:
31 virtual ~NetworkingPrivateDelegateObserver() {}
33 private:
34 DISALLOW_ASSIGN(NetworkingPrivateDelegateObserver);
37 } // namespace extensions
39 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_DELEGATE_OBSERVER_H_