Service workers: Allow HTTPS pages arrived at via HTTP redirect to use SW
[chromium-blink-merge.git] / chromeos / network / network_policy_observer.h
blob924a036d31b45dc2116d7ee951db674e3053d0d3
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 policies for |userhash| were set (also when they were
17 // updated). An empty |userhash| designates the device policy.
18 // Note that the policies might be empty and might not have been applied yet
19 // at that time.
20 virtual void PoliciesChanged(const std::string& userhash) {}
22 // Called every time a policy application for |userhash| finished. This is
23 // only called once no more policies are pending for |userhash|.
24 virtual void PoliciesApplied(const std::string& userhash) {}
26 // Called every time a network is created or updated because of a policy.
27 virtual void PolicyAppliedToNetwork(const std::string& service_path) {}
29 protected:
30 virtual ~NetworkPolicyObserver() {}
32 private:
33 DISALLOW_ASSIGN(NetworkPolicyObserver);
36 } // namespace chromeos
38 #endif // CHROMEOS_NETWORK_NETWORK_POLICY_OBSERVER_H_