OLD | NEW |
1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_EXTENSIONS_API_PROXY_PROXY_API_CONSTANTS_H_ | 7 #ifndef CHROME_BROWSER_EXTENSIONS_API_PROXY_PROXY_API_CONSTANTS_H_ |
8 #define CHROME_BROWSER_EXTENSIONS_API_PROXY_PROXY_API_CONSTANTS_H_ | 8 #define CHROME_BROWSER_EXTENSIONS_API_PROXY_PROXY_API_CONSTANTS_H_ |
9 | 9 |
10 namespace extensions { | 10 namespace extensions { |
(...skipping 25 matching lines...) Expand all Loading... |
36 SCHEME_ALL = 0, | 36 SCHEME_ALL = 0, |
37 SCHEME_HTTP, | 37 SCHEME_HTTP, |
38 SCHEME_HTTPS, | 38 SCHEME_HTTPS, |
39 SCHEME_FTP, | 39 SCHEME_FTP, |
40 SCHEME_FALLBACK, | 40 SCHEME_FALLBACK, |
41 SCHEME_MAX = SCHEME_FALLBACK // Keep this value up to date. | 41 SCHEME_MAX = SCHEME_FALLBACK // Keep this value up to date. |
42 }; | 42 }; |
43 | 43 |
44 // The names of the JavaScript properties to extract from the proxy_rules. | 44 // The names of the JavaScript properties to extract from the proxy_rules. |
45 // These must be kept in sync with the SCHEME_* constants. | 45 // These must be kept in sync with the SCHEME_* constants. |
46 extern const char* field_name[]; | 46 extern const char* const field_name[]; |
47 | 47 |
48 // The names of the schemes to be used to build the preference value string | 48 // The names of the schemes to be used to build the preference value string |
49 // for manual proxy settings. These must be kept in sync with the SCHEME_* | 49 // for manual proxy settings. These must be kept in sync with the SCHEME_* |
50 // constants. | 50 // constants. |
51 extern const char* scheme_name[]; | 51 extern const char* const scheme_name[]; |
52 | 52 |
53 } // namespace proxy_api_constants | 53 } // namespace proxy_api_constants |
54 } // namespace extensions | 54 } // namespace extensions |
55 | 55 |
56 #endif // CHROME_BROWSER_EXTENSIONS_API_PROXY_PROXY_API_CONSTANTS_H_ | 56 #endif // CHROME_BROWSER_EXTENSIONS_API_PROXY_PROXY_API_CONSTANTS_H_ |
OLD | NEW |