| Index: content/child/web_url_request_util.cc
|
| diff --git a/content/child/web_url_request_util.cc b/content/child/web_url_request_util.cc
|
| index 606583175cb18c7d8f4ea871c2c7da10d1840a42..dcb00ab5db329dcc3fc1ef0413fdf7d46415bceb 100644
|
| --- a/content/child/web_url_request_util.cc
|
| +++ b/content/child/web_url_request_util.cc
|
| @@ -471,6 +471,19 @@ RequestContextType GetRequestContextTypeForWebURLRequest(
|
| return static_cast<RequestContextType>(request.getRequestContext());
|
| }
|
|
|
| +blink::WebMixedContent::ContextType GetMixedContentContextTypeForWebURLRequest(
|
| + const blink::WebURLRequest& request) {
|
| + bool block_mixed_plugin_content = false;
|
| + if (request.getExtraData()) {
|
| + RequestExtraData* extra_data =
|
| + static_cast<RequestExtraData*>(request.getExtraData());
|
| + block_mixed_plugin_content = extra_data->block_mixed_plugin_content();
|
| + }
|
| +
|
| + return blink::WebMixedContent::contextTypeFromRequestContext(
|
| + request.getRequestContext(), block_mixed_plugin_content);
|
| +}
|
| +
|
| STATIC_ASSERT_ENUM(SkipServiceWorker::NONE,
|
| WebURLRequest::SkipServiceWorker::None);
|
| STATIC_ASSERT_ENUM(SkipServiceWorker::CONTROLLING,
|
|
|