blob: f7f52bbec5c270564cf538fae0ac69bfa9ccb1b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Constants for the Chrome Extensions Proxy Settings API.
#include "chrome/browser/extensions/extension_proxy_api_constants.h"
#include "base/basictypes.h"
namespace extension_proxy_api_constants {
const char kProxyConfigMode[] = "mode";
const char kProxyConfigPacScript[] = "pacScript";
const char kProxyConfigPacScriptUrl[] = "url";
const char kProxyConfigPacScriptData[] = "data";
const char kProxyConfigRules[] = "rules";
const char kProxyConfigRuleHost[] = "host";
const char kProxyConfigRulePort[] = "port";
const char kProxyConfigRuleScheme[] = "scheme";
const char kProxyConfigBypassList[] = "bypassList";
const char kProxyConfigValue[] = "value";
const char kProxyEventFatal[] = "fatal";
const char kProxyEventError[] = "error";
const char kProxyEventDetails[] = "details";
const char kProxyEventOnProxyError[] = "experimental.proxy.onProxyError";
const char kPACDataUrlPrefix[] =
"data:application/x-ns-proxy-autoconfig;base64,";
const char* field_name[] = { "singleProxy",
"proxyForHttp",
"proxyForHttps",
"proxyForFtp",
"fallbackProxy" };
const char* scheme_name[] = { "*error*",
"http",
"https",
"ftp",
"socks" };
COMPILE_ASSERT(SCHEME_MAX == SCHEME_FALLBACK,
SCHEME_MAX_must_equal_SCHEME_FALLBACK);
COMPILE_ASSERT(arraysize(field_name) == SCHEME_MAX + 1,
field_name_array_is_wrong_size);
COMPILE_ASSERT(arraysize(scheme_name) == SCHEME_MAX + 1,
scheme_name_array_is_wrong_size);
COMPILE_ASSERT(SCHEME_ALL == 0, singleProxy_must_be_first_option);
} // namespace extension_proxy_api_constants
|