diff options
Diffstat (limited to 'extensions/browser/api/web_request/web_request_api_helpers.h')
-rw-r--r-- | extensions/browser/api/web_request/web_request_api_helpers.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/extensions/browser/api/web_request/web_request_api_helpers.h b/extensions/browser/api/web_request/web_request_api_helpers.h index e6cd1c0e..a867fee 100644 --- a/extensions/browser/api/web_request/web_request_api_helpers.h +++ b/extensions/browser/api/web_request/web_request_api_helpers.h @@ -46,6 +46,21 @@ namespace extension_web_request_api_helpers { typedef std::pair<std::string, std::string> ResponseHeader; typedef std::vector<ResponseHeader> ResponseHeaders; +// Internal representation of the extraInfoSpec parameter on webRequest +// events, used to specify extra information to be included with network +// events. +struct ExtraInfoSpec { + enum Flags { + REQUEST_HEADERS = 1 << 0, + RESPONSE_HEADERS = 1 << 1, + BLOCKING = 1 << 2, + ASYNC_BLOCKING = 1 << 3, + REQUEST_BODY = 1 << 4, + }; + + static bool InitFromValue(const base::ListValue& value, int* extra_info_spec); +}; + // Data container for RequestCookies as defined in the declarative WebRequest // API definition. struct RequestCookie { |