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

Unified Diff: extensions/browser/api/web_request/web_request_api_helpers.h

Issue 1577673002: WebRequest API cleanup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: copy GetSocketAddress().host instead of & to resolve win failure Created 4 years, 11 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
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 {

Powered by Google App Engine
This is Rietveld 408576698