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

Unified Diff: content/child/web_url_request_util.h

Issue 1317833005: PlzNavigate: Expose blink to content enum type converters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « content/child/web_url_loader_impl.cc ('k') | content/child/web_url_request_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7ca7092e272f5ffc23f12c7e6cb9ef560d314101..4a1da0cf0fca844ecbe38d83ab1ca7b7f2e266dc 100644
--- a/content/child/web_url_request_util.h
+++ b/content/child/web_url_request_util.h
@@ -9,6 +9,9 @@
#include "content/common/content_export.h"
#include "content/common/resource_request_body.h"
+#include "content/common/service_worker/service_worker_types.h"
+#include "content/public/common/request_context_frame_type.h"
+#include "content/public/common/request_context_type.h"
#include "content/public/common/resource_type.h"
namespace blink {
@@ -32,6 +35,19 @@ int GetLoadFlagsForWebURLRequest(const blink::WebURLRequest& request);
scoped_refptr<ResourceRequestBody> GetRequestBodyForWebURLRequest(
const blink::WebURLRequest& request);
+// Helper functions to convert enums from the blink type to the content
+// type.
+FetchRequestMode GetFetchRequestModeForWebURLRequest(
+ const blink::WebURLRequest& request);
+FetchCredentialsMode GetFetchCredentialsModeForWebURLRequest(
+ const blink::WebURLRequest& request);
+FetchRedirectMode GetFetchRedirectModeForWebURLRequest(
+ const blink::WebURLRequest& request);
+RequestContextFrameType GetRequestContextFrameTypeForWebURLRequest(
+ const blink::WebURLRequest& request);
+RequestContextType GetRequestContextTypeForWebURLRequest(
+ const blink::WebURLRequest& request);
+
// Generates a WebURLError based on |reason|.
blink::WebURLError CreateWebURLError(const blink::WebURL& unreachable_url,
bool stale_copy_in_cache,
« no previous file with comments | « content/child/web_url_loader_impl.cc ('k') | content/child/web_url_request_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698