| OLD | NEW |
| 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 COMPONENTS_POLICY_CORE_BROWSER_PROXY_POLICY_HANDLER_H_ | 5 #ifndef COMPONENTS_POLICY_CORE_BROWSER_PROXY_POLICY_HANDLER_H_ |
| 6 #define COMPONENTS_POLICY_CORE_BROWSER_PROXY_POLICY_HANDLER_H_ | 6 #define COMPONENTS_POLICY_CORE_BROWSER_PROXY_POLICY_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "components/policy/core/browser/configuration_policy_handler.h" | 11 #include "components/policy/core/browser/configuration_policy_handler.h" |
| 12 | 12 |
| 13 namespace policy { | 13 namespace policy { |
| 14 | 14 |
| 15 class ProxyMap; | |
| 16 class ProxyErrorMap; | |
| 17 | |
| 18 // ConfigurationPolicyHandler for the proxy policies. | 15 // ConfigurationPolicyHandler for the proxy policies. |
| 19 class POLICY_EXPORT ProxyPolicyHandler : public ConfigurationPolicyHandler { | 16 class POLICY_EXPORT ProxyPolicyHandler : public ConfigurationPolicyHandler { |
| 20 public: | 17 public: |
| 21 // Constants for the "Proxy Server Mode" defined in the policies. | 18 // Constants for the "Proxy Server Mode" defined in the policies. |
| 22 // Note that these diverge from internal presentation defined in | 19 // Note that these diverge from internal presentation defined in |
| 23 // ProxyPrefs::ProxyMode for legacy reasons. The following four | 20 // ProxyPrefs::ProxyMode for legacy reasons. The following four |
| 24 // PolicyProxyModeType types were not very precise and had overlapping use | 21 // PolicyProxyModeType types were not very precise and had overlapping use |
| 25 // cases. | 22 // cases. |
| 26 enum ProxyModeType { | 23 enum ProxyModeType { |
| 27 // Disable Proxy, connect directly. | 24 // Disable Proxy, connect directly. |
| (...skipping 27 matching lines...) Expand all Loading... |
| 55 bool CheckProxyModeAndServerMode(const PolicyMap& policies, | 52 bool CheckProxyModeAndServerMode(const PolicyMap& policies, |
| 56 PolicyErrorMap* errors, | 53 PolicyErrorMap* errors, |
| 57 std::string* mode_value); | 54 std::string* mode_value); |
| 58 | 55 |
| 59 DISALLOW_COPY_AND_ASSIGN(ProxyPolicyHandler); | 56 DISALLOW_COPY_AND_ASSIGN(ProxyPolicyHandler); |
| 60 }; | 57 }; |
| 61 | 58 |
| 62 } // namespace policy | 59 } // namespace policy |
| 63 | 60 |
| 64 #endif // COMPONENTS_POLICY_CORE_BROWSER_PROXY_POLICY_HANDLER_H_ | 61 #endif // COMPONENTS_POLICY_CORE_BROWSER_PROXY_POLICY_HANDLER_H_ |
| OLD | NEW |