OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Constants for the Chrome Extensions Proxy Settings API. | 5 // Constants for the Chrome Extensions Proxy Settings API. |
6 | 6 |
7 #include "chrome/browser/extensions/extension_proxy_api_constants.h" | 7 #include "chrome/browser/extensions/api/proxy/proxy_api_constants.h" |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 | 10 |
11 namespace extension_proxy_api_constants { | 11 namespace extensions { |
| 12 namespace proxy_api_constants { |
12 | 13 |
13 const char kProxyConfigMode[] = "mode"; | 14 const char kProxyConfigMode[] = "mode"; |
14 const char kProxyConfigPacScript[] = "pacScript"; | 15 const char kProxyConfigPacScript[] = "pacScript"; |
15 const char kProxyConfigPacScriptMandatory[] = "mandatory"; | 16 const char kProxyConfigPacScriptMandatory[] = "mandatory"; |
16 const char kProxyConfigPacScriptUrl[] = "url"; | 17 const char kProxyConfigPacScriptUrl[] = "url"; |
17 const char kProxyConfigPacScriptData[] = "data"; | 18 const char kProxyConfigPacScriptData[] = "data"; |
18 const char kProxyConfigRules[] = "rules"; | 19 const char kProxyConfigRules[] = "rules"; |
19 const char kProxyConfigRuleHost[] = "host"; | 20 const char kProxyConfigRuleHost[] = "host"; |
20 const char kProxyConfigRulePort[] = "port"; | 21 const char kProxyConfigRulePort[] = "port"; |
21 const char kProxyConfigRuleScheme[] = "scheme"; | 22 const char kProxyConfigRuleScheme[] = "scheme"; |
(...skipping 21 matching lines...) Expand all Loading... |
43 "socks" }; | 44 "socks" }; |
44 | 45 |
45 COMPILE_ASSERT(SCHEME_MAX == SCHEME_FALLBACK, | 46 COMPILE_ASSERT(SCHEME_MAX == SCHEME_FALLBACK, |
46 SCHEME_MAX_must_equal_SCHEME_FALLBACK); | 47 SCHEME_MAX_must_equal_SCHEME_FALLBACK); |
47 COMPILE_ASSERT(arraysize(field_name) == SCHEME_MAX + 1, | 48 COMPILE_ASSERT(arraysize(field_name) == SCHEME_MAX + 1, |
48 field_name_array_is_wrong_size); | 49 field_name_array_is_wrong_size); |
49 COMPILE_ASSERT(arraysize(scheme_name) == SCHEME_MAX + 1, | 50 COMPILE_ASSERT(arraysize(scheme_name) == SCHEME_MAX + 1, |
50 scheme_name_array_is_wrong_size); | 51 scheme_name_array_is_wrong_size); |
51 COMPILE_ASSERT(SCHEME_ALL == 0, singleProxy_must_be_first_option); | 52 COMPILE_ASSERT(SCHEME_ALL == 0, singleProxy_must_be_first_option); |
52 | 53 |
53 } // namespace extension_proxy_api_constants | 54 } // namespace proxy_api_constants |
| 55 } // extensions |
OLD | NEW |