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

Side by Side Diff: components/policy/core/browser/proxy_policy_handler.h

Issue 1384463002: Componentize proxy_policy_handler from chrome/browser/net (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and updated Created 5 years, 2 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
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 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
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_
OLDNEW
« no previous file with comments | « components/policy/core/browser/DEPS ('k') | components/policy/core/browser/proxy_policy_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698