aw: Move SharedRendererState out of AwContents
[chromium-blink-merge.git] / chromeos / network / network_policy_observer.h
blobc7af61edba503e3c9e47b4bda4d3c36ab4ed1a01
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.
5 #ifndef CHROMEOS_NETWORK_NETWORK_POLICY_OBSERVER_H_
6 #define CHROMEOS_NETWORK_NETWORK_POLICY_OBSERVER_H_
8 #include <string>
10 #include "base/basictypes.h"
12 namespace chromeos {
14 class 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) {}
21 // Called every time a policy application for |userhash| finished. This is
22 // only called once no more policies are pending for |userhash|.
23 virtual void PoliciesApplied(const std::string& userhash) {}
25 // Called every time a network is created or updated because of a policy.
26 virtual void PolicyAppliedToNetwork(const std::string& service_path) {}
28 protected:
29 virtual ~NetworkPolicyObserver() {}
31 private:
32 DISALLOW_ASSIGN(NetworkPolicyObserver);
35 } // namespace chromeos
37 #endif // CHROMEOS_NETWORK_NETWORK_POLICY_OBSERVER_H_