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