| Index: extensions/browser/api/web_request/web_request_api_helpers.h
|
| 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 e6cd1c0eee8d6614e7a24323b0530d45e08ea32f..a867fee07d3f31d986d1247aa10a970f7bb8dddb 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 {
|
|
|