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

Unified Diff: third_party/WebKit/Source/platform/exported/WebURLRequest.cpp

Issue 1970693002: Use mojo for Chrome Loading, Part 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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: third_party/WebKit/Source/platform/exported/WebURLRequest.cpp
diff --git a/third_party/WebKit/Source/platform/exported/WebURLRequest.cpp b/third_party/WebKit/Source/platform/exported/WebURLRequest.cpp
index c2592d8268e356a8ebb8b167b6d00091f346cc0f..c1c6b09e08df016e2f339ee71736d2b01602003e 100644
--- a/third_party/WebKit/Source/platform/exported/WebURLRequest.cpp
+++ b/third_party/WebKit/Source/platform/exported/WebURLRequest.cpp
@@ -30,6 +30,7 @@
#include "public/platform/WebURLRequest.h"
+#include "platform/RuntimeEnabledFeatures.h"
#include "platform/exported/WebURLRequestPrivate.h"
#include "platform/network/ResourceRequest.h"
#include "public/platform/WebCachePolicy.h"
@@ -459,6 +460,13 @@ bool WebURLRequest::isExternalRequest() const
return m_private->m_resourceRequest->isExternalRequest();
}
+WebURLRequest::LoadingIPC WebURLRequest::loadingIPC() const
+{
+ if (RuntimeEnabledFeatures::loadingWithMojoEnabled())
+ return WebURLRequest::LoadingIPC::Mojo;
+ return WebURLRequest::LoadingIPC::ChromeIPC;
+}
+
WebURLRequest::InputToLoadPerfMetricReportPolicy WebURLRequest::inputPerfMetricReportPolicy() const
{
return static_cast<WebURLRequest::InputToLoadPerfMetricReportPolicy>(

Powered by Google App Engine
This is Rietveld 408576698