OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_MANAGED_NETWORK_CONFIGURATION_HANDLER_H_ | 5 #ifndef CHROMEOS_NETWORK_MANAGED_NETWORK_CONFIGURATION_HANDLER_H_ |
6 #define CHROMEOS_NETWORK_MANAGED_NETWORK_CONFIGURATION_HANDLER_H_ | 6 #define CHROMEOS_NETWORK_MANAGED_NETWORK_CONFIGURATION_HANDLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 public: | 53 public: |
54 virtual ~ManagedNetworkConfigurationHandler(); | 54 virtual ~ManagedNetworkConfigurationHandler(); |
55 | 55 |
56 virtual void AddObserver(NetworkPolicyObserver* observer) = 0; | 56 virtual void AddObserver(NetworkPolicyObserver* observer) = 0; |
57 virtual void RemoveObserver(NetworkPolicyObserver* observer) = 0; | 57 virtual void RemoveObserver(NetworkPolicyObserver* observer) = 0; |
58 | 58 |
59 // Provides the properties of the network with |service_path| to |callback|. | 59 // Provides the properties of the network with |service_path| to |callback|. |
60 virtual void GetProperties( | 60 virtual void GetProperties( |
61 const std::string& service_path, | 61 const std::string& service_path, |
62 const network_handler::DictionaryResultCallback& callback, | 62 const network_handler::DictionaryResultCallback& callback, |
63 const network_handler::ErrorCallback& error_callback) const = 0; | 63 const network_handler::ErrorCallback& error_callback) = 0; |
64 | 64 |
65 // Provides the managed properties of the network with |service_path| to | 65 // Provides the managed properties of the network with |service_path| to |
66 // |callback|. |userhash| is only used to ensure that the user's policy is | 66 // |callback|. |userhash| is only used to ensure that the user's policy is |
67 // already applied. | 67 // already applied. |
68 virtual void GetManagedProperties( | 68 virtual void GetManagedProperties( |
69 const std::string& userhash, | 69 const std::string& userhash, |
70 const std::string& service_path, | 70 const std::string& service_path, |
71 const network_handler::DictionaryResultCallback& callback, | 71 const network_handler::DictionaryResultCallback& callback, |
72 const network_handler::ErrorCallback& error_callback) = 0; | 72 const network_handler::ErrorCallback& error_callback) = 0; |
73 | 73 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 const std::string& guid, | 132 const std::string& guid, |
133 const std::string& profile_path) const = 0; | 133 const std::string& profile_path) const = 0; |
134 | 134 |
135 private: | 135 private: |
136 DISALLOW_ASSIGN(ManagedNetworkConfigurationHandler); | 136 DISALLOW_ASSIGN(ManagedNetworkConfigurationHandler); |
137 }; | 137 }; |
138 | 138 |
139 } // namespace chromeos | 139 } // namespace chromeos |
140 | 140 |
141 #endif // CHROMEOS_NETWORK_MANAGED_NETWORK_CONFIGURATION_HANDLER_H_ | 141 #endif // CHROMEOS_NETWORK_MANAGED_NETWORK_CONFIGURATION_HANDLER_H_ |
OLD | NEW |