Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(445)

Side by Side Diff: chromeos/network/network_policy_observer.h

Issue 1540803002: Switch to standard integer types in chromeos/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chromeos/network/network_ip_config.h ('k') | chromeos/network/network_profile_handler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROMEOS_NETWORK_NETWORK_POLICY_OBSERVER_H_ 5 #ifndef CHROMEOS_NETWORK_NETWORK_POLICY_OBSERVER_H_
6 #define CHROMEOS_NETWORK_NETWORK_POLICY_OBSERVER_H_ 6 #define CHROMEOS_NETWORK_NETWORK_POLICY_OBSERVER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h"
11 10
12 namespace chromeos { 11 namespace chromeos {
13 12
14 class NetworkPolicyObserver { 13 class NetworkPolicyObserver {
15 public: 14 public:
16 // Called when the policies for |userhash| were set (also when they were 15 // Called when the policies for |userhash| were set (also when they were
17 // updated). An empty |userhash| designates the device policy. 16 // updated). An empty |userhash| designates the device policy.
18 // Note that the policies might be empty and might not have been applied yet 17 // Note that the policies might be empty and might not have been applied yet
19 // at that time. 18 // at that time.
20 virtual void PoliciesChanged(const std::string& userhash) {} 19 virtual void PoliciesChanged(const std::string& userhash) {}
21 20
22 // Called every time a policy application for |userhash| finished. This is 21 // Called every time a policy application for |userhash| finished. This is
23 // only called once no more policies are pending for |userhash|. 22 // only called once no more policies are pending for |userhash|.
24 virtual void PoliciesApplied(const std::string& userhash) {} 23 virtual void PoliciesApplied(const std::string& userhash) {}
25 24
26 // Called every time a network is created or updated because of a policy. 25 // Called every time a network is created or updated because of a policy.
27 virtual void PolicyAppliedToNetwork(const std::string& service_path) {} 26 virtual void PolicyAppliedToNetwork(const std::string& service_path) {}
28 27
29 protected: 28 protected:
30 virtual ~NetworkPolicyObserver() {} 29 virtual ~NetworkPolicyObserver() {}
31 30
32 private: 31 private:
33 DISALLOW_ASSIGN(NetworkPolicyObserver); 32 DISALLOW_ASSIGN(NetworkPolicyObserver);
34 }; 33 };
35 34
36 } // namespace chromeos 35 } // namespace chromeos
37 36
38 #endif // CHROMEOS_NETWORK_NETWORK_POLICY_OBSERVER_H_ 37 #endif // CHROMEOS_NETWORK_NETWORK_POLICY_OBSERVER_H_
OLDNEW
« no previous file with comments | « chromeos/network/network_ip_config.h ('k') | chromeos/network/network_profile_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698