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

Unified Diff: chrome/browser/extensions/extension_webrequest_api.cc

Issue 7599027: Add support for XMLHttpRequests to the webRequest API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/common/extensions/api/extension_api.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_webrequest_api.cc
diff --git a/chrome/browser/extensions/extension_webrequest_api.cc b/chrome/browser/extensions/extension_webrequest_api.cc
index bc978a7db6b502d5f7e75b98c7749051c6fb58e1..7070313dd30138f406991236644043b5cbf9704f 100644
--- a/chrome/browser/extensions/extension_webrequest_api.cc
+++ b/chrome/browser/extensions/extension_webrequest_api.cc
@@ -57,6 +57,8 @@ static const char* kResourceTypeStrings[] = {
"script",
"image",
"object",
+ "xmlhttprequest",
+ "other",
"other",
};
@@ -67,6 +69,8 @@ static ResourceType::Type kResourceTypeValues[] = {
ResourceType::SCRIPT,
ResourceType::IMAGE,
ResourceType::OBJECT,
+ ResourceType::XHR,
+ ResourceType::SUB_RESOURCE,
Matt Perry 2011/08/09 16:58:42 this needs to be LAST_TYPE since we look up type b
ResourceType::LAST_TYPE, // represents "other"
};
« no previous file with comments | « no previous file | chrome/common/extensions/api/extension_api.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698