| 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 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PROXY_API_CONSTANTS_H_ | 7 #ifndef CHROME_BROWSER_EXTENSIONS_API_PROXY_PROXY_API_CONSTANTS_H_ |
| 8 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PROXY_API_CONSTANTS_H_ | 8 #define CHROME_BROWSER_EXTENSIONS_API_PROXY_PROXY_API_CONSTANTS_H_ |
| 9 #pragma once | 9 #pragma once |
| 10 | 10 |
| 11 namespace extension_proxy_api_constants { | 11 namespace extensions { |
| 12 namespace proxy_api_constants { |
| 12 | 13 |
| 13 // String literals in dictionaries used to communicate with extension. | 14 // String literals in dictionaries used to communicate with extension. |
| 14 extern const char kProxyConfigMode[]; | 15 extern const char kProxyConfigMode[]; |
| 15 extern const char kProxyConfigPacScript[]; | 16 extern const char kProxyConfigPacScript[]; |
| 16 extern const char kProxyConfigPacScriptMandatory[]; | 17 extern const char kProxyConfigPacScriptMandatory[]; |
| 17 extern const char kProxyConfigPacScriptUrl[]; | 18 extern const char kProxyConfigPacScriptUrl[]; |
| 18 extern const char kProxyConfigPacScriptData[]; | 19 extern const char kProxyConfigPacScriptData[]; |
| 19 extern const char kProxyConfigRules[]; | 20 extern const char kProxyConfigRules[]; |
| 20 extern const char kProxyConfigRuleHost[]; | 21 extern const char kProxyConfigRuleHost[]; |
| 21 extern const char kProxyConfigRulePort[]; | 22 extern const char kProxyConfigRulePort[]; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 44 | 45 |
| 45 // The names of the JavaScript properties to extract from the proxy_rules. | 46 // The names of the JavaScript properties to extract from the proxy_rules. |
| 46 // These must be kept in sync with the SCHEME_* constants. | 47 // These must be kept in sync with the SCHEME_* constants. |
| 47 extern const char* field_name[]; | 48 extern const char* field_name[]; |
| 48 | 49 |
| 49 // The names of the schemes to be used to build the preference value string | 50 // The names of the schemes to be used to build the preference value string |
| 50 // for manual proxy settings. These must be kept in sync with the SCHEME_* | 51 // for manual proxy settings. These must be kept in sync with the SCHEME_* |
| 51 // constants. | 52 // constants. |
| 52 extern const char* scheme_name[]; | 53 extern const char* scheme_name[]; |
| 53 | 54 |
| 54 } // namespace extension_proxy_api_constants | 55 } // namespace proxy_api_constants |
| 56 } // namespace extensions |
| 55 | 57 |
| 56 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PROXY_API_CONSTANTS_H_ | 58 #endif // CHROME_BROWSER_EXTENSIONS_API_PROXY_PROXY_API_CONSTANTS_H_ |
| OLD | NEW |