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 CHROMEOS_NETWORK_NETWORK_POLICY_OBSERVER_H_
6#define CHROMEOS_NETWORK_NETWORK_POLICY_OBSERVER_H_
7
8#include <string>
9
10#include "base/basictypes.h"
11
12namespace chromeos {
13
14class NetworkPolicyObserver {
15 public:
16  // Called when the policy for |userhash| was set (also when it was updated).
17  // Note that the policy might not have been applied yet at that time.
18  // An empty |userhash| designates the device policy.
19  virtual void PolicyChanged(const std::string& userhash) {};
20
21  // Called every time a network is create or updated because of a policy.
22  virtual void PolicyApplied(const std::string& service_path) {};
23
24 protected:
25  virtual ~NetworkPolicyObserver() {};
26
27 private:
28  DISALLOW_ASSIGN(NetworkPolicyObserver);
29};
30
31}  // namespace chromeos
32
33#endif  // CHROMEOS_NETWORK_NETWORK_POLICY_OBSERVER_H_
34