forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
network_policy_observer.h
37 lines (26 loc) · 1.17 KB
/
network_policy_observer.h
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
34
35
36
37
// 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>
namespace chromeos {
class NetworkPolicyObserver {
public:
// Called when the policies for |userhash| were set (also when they were
// updated). An empty |userhash| designates the device policy.
// Note that the policies might be empty and might not have been applied yet
// at that time.
virtual void PoliciesChanged(const std::string& userhash) {}
// Called every time a policy application for |userhash| finished. This is
// only called once no more policies are pending for |userhash|.
virtual void PoliciesApplied(const std::string& userhash) {}
// Called every time a network is created or updated because of a policy.
virtual void PolicyAppliedToNetwork(const std::string& service_path) {}
protected:
virtual ~NetworkPolicyObserver() {}
private:
DISALLOW_ASSIGN(NetworkPolicyObserver);
};
} // namespace chromeos
#endif // CHROMEOS_NETWORK_NETWORK_POLICY_OBSERVER_H_