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

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: rebase Created 4 years, 4 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 6c5a96c62304291e393bd9ef1bf0d5516507dd5f..20e9010da987cc91bb5f9e6f9b869a80ba8ce13f 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/network/ResourceRequest.h"
#include "public/platform/WebCachePolicy.h"
#include "public/platform/WebHTTPBody.h"
@@ -461,6 +462,13 @@ bool WebURLRequest::isExternalRequest() const
return m_resourceRequest->isExternalRequest();
}
+WebURLRequest::LoadingIPCType WebURLRequest::getLoadingIPCType() const
+{
+ if (RuntimeEnabledFeatures::loadingWithMojoEnabled())
+ return WebURLRequest::LoadingIPCType::Mojo;
+ return WebURLRequest::LoadingIPCType::ChromeIPC;
+}
+
WebURLRequest::InputToLoadPerfMetricReportPolicy WebURLRequest::inputPerfMetricReportPolicy() const
{
return static_cast<WebURLRequest::InputToLoadPerfMetricReportPolicy>(

Powered by Google App Engine
This is Rietveld 408576698