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>( |