• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2011 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.
4 
5 #include "chrome/browser/extensions/extension_webrequest_api_constants.h"
6 
7 namespace extension_webrequest_api_constants {
8 
9 const char kErrorKey[] = "error";
10 const char kIpKey[] = "ip";
11 const char kMethodKey[] = "method";
12 const char kRedirectUrlKey[] = "redirectUrl";
13 const char kRequestIdKey[] = "requestId";
14 const char kStatusCodeKey[] = "statusCode";
15 const char kTabIdKey[] = "tabId";
16 const char kTimeStampKey[] = "timeStamp";
17 const char kTypeKey[] = "type";
18 const char kUrlKey[] = "url";
19 
20 const char kOnBeforeRedirect[] = "experimental.webRequest.onBeforeRedirect";
21 const char kOnBeforeRequest[] = "experimental.webRequest.onBeforeRequest";
22 const char kOnBeforeSendHeaders[] =
23     "experimental.webRequest.onBeforeSendHeaders";
24 const char kOnCompleted[] = "experimental.webRequest.onCompleted";
25 const char kOnErrorOccurred[] = "experimental.webRequest.onErrorOccurred";
26 const char kOnHeadersReceived[] = "experimental.webRequest.onHeadersReceived";
27 const char kOnRequestSent[] = "experimental.webRequest.onRequestSent";
28 
29 const char kInvalidRedirectUrl[] = "redirectUrl '*' is not a valid URL.";
30 
31 }  // namespace extension_webrequest_api_constants
32