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
3 // found in the LICENSE file.
5 // Constants for the Chrome Extensions Proxy Settings API.
7 #include "chrome/browser/extensions/api/proxy/proxy_api_constants.h"
9 #include "base/basictypes.h"
11 namespace extensions
{
12 namespace proxy_api_constants
{
14 const char kProxyConfigMode
[] = "mode";
15 const char kProxyConfigPacScript
[] = "pacScript";
16 const char kProxyConfigPacScriptMandatory
[] = "mandatory";
17 const char kProxyConfigPacScriptUrl
[] = "url";
18 const char kProxyConfigPacScriptData
[] = "data";
19 const char kProxyConfigRules
[] = "rules";
20 const char kProxyConfigRuleHost
[] = "host";
21 const char kProxyConfigRulePort
[] = "port";
22 const char kProxyConfigRuleScheme
[] = "scheme";
23 const char kProxyConfigBypassList
[] = "bypassList";
25 const char kProxyEventFatal
[] = "fatal";
26 const char kProxyEventError
[] = "error";
27 const char kProxyEventDetails
[] = "details";
28 const char kProxyEventOnProxyError
[] = "proxy.onProxyError";
30 const char kPACDataUrlPrefix
[] =
31 "data:application/x-ns-proxy-autoconfig;base64,";
33 const char* const field_name
[] = { "singleProxy",
39 const char* const scheme_name
[] = { "*error*",
45 static_assert(SCHEME_MAX
== SCHEME_FALLBACK
,
46 "SCHEME_MAX is incorrect");
47 static_assert(arraysize(field_name
) == SCHEME_MAX
+ 1,
48 "field_name array size is incorrect");
49 static_assert(arraysize(scheme_name
) == SCHEME_MAX
+ 1,
50 "scheme_name array size is incorrect");
51 static_assert(SCHEME_ALL
== 0, "SCHEME_ALL must be the first value");
53 } // namespace proxy_api_constants
54 } // namespace extensions