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

Unified Diff: content/child/web_url_request_util.h

Issue 1847383003: CREDENTIAL: Rework the integration with Fetch (2/2) Base URL: https://chromium.googlesource.com/chromium/src.git@pass-serialized
Patch Set: unittest Created 4 years, 9 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: content/child/web_url_request_util.h
diff --git a/content/child/web_url_request_util.h b/content/child/web_url_request_util.h
index 4a1da0cf0fca844ecbe38d83ab1ca7b7f2e266dc..f1f68c8fdb672acda209a2ac6932302dad680742 100644
--- a/content/child/web_url_request_util.h
+++ b/content/child/web_url_request_util.h
@@ -22,6 +22,8 @@ struct WebURLError;
namespace content {
+enum RequestBodyType { HTTP_BODY, CREDENTIAL_BODY };
+
CONTENT_EXPORT ResourceType WebURLRequestToResourceType(
const blink::WebURLRequest& request);
@@ -31,9 +33,10 @@ int GetLoadFlagsForWebURLRequest(const blink::WebURLRequest& request);
// Takes a WebURLRequest and sets the appropriate information
// in a ResourceRequestBody structure. Returns an empty scoped_refptr
-// if the request body is not present.
+// if the requested body is not present.
scoped_refptr<ResourceRequestBody> GetRequestBodyForWebURLRequest(
- const blink::WebURLRequest& request);
+ const blink::WebURLRequest& request,
+ RequestBodyType type);
// Helper functions to convert enums from the blink type to the content
// type.

Powered by Google App Engine
This is Rietveld 408576698