summaryrefslogtreecommitdiffstats
path: root/chromeos/network/network_policy_observer.h
blob: defbb26f1f7c126fc044be6f799d8fd9a33597e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROMEOS_NETWORK_NETWORK_POLICY_OBSERVER_H_
#define CHROMEOS_NETWORK_NETWORK_POLICY_OBSERVER_H_

#include <string>

#include "base/basictypes.h"

namespace chromeos {

class NetworkPolicyObserver {
 public:
  // Called when the policy for |userhash| was set (also when it was updated).
  // Note that the policy might not have been applied yet at that time.
  // An empty |userhash| designates the device policy.
  virtual void PolicyChanged(const std::string& userhash) {};

  // Called every time a network is create or updated because of a policy.
  virtual void PolicyApplied(const std::string& service_path) {};

 protected:
  virtual ~NetworkPolicyObserver() {};

 private:
  DISALLOW_ASSIGN(NetworkPolicyObserver);
};

}  // namespace chromeos

#endif  // CHROMEOS_NETWORK_NETWORK_POLICY_OBSERVER_H_