summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_webrequest_api.h
diff options
context:
space:
mode:
authormpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-03 18:23:57 +0000
committermpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-03 18:23:57 +0000
commitbb445ce3e4cf005b673c1a062575ee18dbddfdc9 (patch)
tree6c7f5d96968d0dd027fe5786342d667787aeaf18 /chrome/browser/extensions/extension_webrequest_api.h
parent627d9344c2733f6160927dac527e67a6c79d9304 (diff)
downloadchromium_src-bb445ce3e4cf005b673c1a062575ee18dbddfdc9.zip
chromium_src-bb445ce3e4cf005b673c1a062575ee18dbddfdc9.tar.gz
chromium_src-bb445ce3e4cf005b673c1a062575ee18dbddfdc9.tar.bz2
Tweaks to extension webRequest API.
- onBeforeSendHeaders respects extraInfoSpec. - request headers are now an array of {name, value} objects instead of a flat string. - onBeforeRequest is sent after redirects now. This allows extensions to intercept redirects and cancel/redirect them elsewhere. BUG=60101 TEST=no Review URL: http://codereview.chromium.org/6912008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83925 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_webrequest_api.h')
-rw-r--r--chrome/browser/extensions/extension_webrequest_api.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/chrome/browser/extensions/extension_webrequest_api.h b/chrome/browser/extensions/extension_webrequest_api.h
index a23f037..a894a9e 100644
--- a/chrome/browser/extensions/extension_webrequest_api.h
+++ b/chrome/browser/extensions/extension_webrequest_api.h
@@ -153,20 +153,23 @@ class ExtensionWebRequestEventRouter {
const ListValue& args);
// Returns a list of event listeners that care about the given event, based
- // on their filter parameters.
+ // on their filter parameters. |extra_info_spec| will contain the combined
+ // set of extra_info_spec flags that every matching listener asked for.
std::vector<const EventListener*> GetMatchingListeners(
ProfileId profile_id,
const std::string& event_name,
const GURL& url,
int tab_id,
int window_id,
- ResourceType::Type resource_type);
+ ResourceType::Type resource_type,
+ int* extra_info_spec);
// Same as above, but retrieves the filter parameters from the request.
std::vector<const EventListener*> GetMatchingListeners(
ProfileId profile_id,
const std::string& event_name,
- net::URLRequest* request);
+ net::URLRequest* request,
+ int* extra_info_spec);
// Decrements the count of event handlers blocking the given request. When the
// count reaches 0 (or immediately if the request is being cancelled or