Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: chrome/browser/extensions/extension_webrequest_api_constants.cc

Issue 6880219: Fix crash with webRequest.event.addListener when provided an invalid URL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: oops Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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 #include "chrome/browser/extensions/extension_webrequest_api_constants.h" 5 #include "chrome/browser/extensions/extension_webrequest_api_constants.h"
6 6
7 namespace extension_webrequest_api_constants { 7 namespace extension_webrequest_api_constants {
8 8
9 const char kErrorKey[] = "error"; 9 const char kErrorKey[] = "error";
10 const char kIpKey[] = "ip"; 10 const char kIpKey[] = "ip";
11 const char kMethodKey[] = "method"; 11 const char kMethodKey[] = "method";
12 const char kRedirectUrlKey[] = "redirectUrl"; 12 const char kRedirectUrlKey[] = "redirectUrl";
13 const char kRequestIdKey[] = "requestId"; 13 const char kRequestIdKey[] = "requestId";
14 const char kStatusCodeKey[] = "statusCode"; 14 const char kStatusCodeKey[] = "statusCode";
15 const char kTabIdKey[] = "tabId"; 15 const char kTabIdKey[] = "tabId";
16 const char kTimeStampKey[] = "timeStamp"; 16 const char kTimeStampKey[] = "timeStamp";
17 const char kTypeKey[] = "type"; 17 const char kTypeKey[] = "type";
18 const char kUrlKey[] = "url"; 18 const char kUrlKey[] = "url";
19 19
20 const char kOnBeforeRedirect[] = "experimental.webRequest.onBeforeRedirect"; 20 const char kOnBeforeRedirect[] = "experimental.webRequest.onBeforeRedirect";
21 const char kOnBeforeRequest[] = "experimental.webRequest.onBeforeRequest"; 21 const char kOnBeforeRequest[] = "experimental.webRequest.onBeforeRequest";
22 const char kOnBeforeSendHeaders[] = 22 const char kOnBeforeSendHeaders[] =
23 "experimental.webRequest.onBeforeSendHeaders"; 23 "experimental.webRequest.onBeforeSendHeaders";
24 const char kOnCompleted[] = "experimental.webRequest.onCompleted"; 24 const char kOnCompleted[] = "experimental.webRequest.onCompleted";
25 const char kOnErrorOccurred[] = "experimental.webRequest.onErrorOccurred"; 25 const char kOnErrorOccurred[] = "experimental.webRequest.onErrorOccurred";
26 const char kOnResponseStarted[] = "experimental.webRequest.onResponseStarted"; 26 const char kOnResponseStarted[] = "experimental.webRequest.onResponseStarted";
27 const char kOnRequestSent[] = "experimental.webRequest.onRequestSent"; 27 const char kOnRequestSent[] = "experimental.webRequest.onRequestSent";
28 28
29 const char kInvalidRedirectUrl[] = "redirectUrl '*' is not a valid URL."; 29 const char kInvalidRedirectUrl[] = "redirectUrl '*' is not a valid URL.";
30 const char kInvalidRequestFilterUrl[] = "'*' is not a valid URL pattern.";
30 31
31 } // namespace extension_webrequest_api_constants 32 } // namespace extension_webrequest_api_constants
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698