| Index: content/renderer/render_frame_impl.cc
|
| diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
|
| index f315311a35500819d4a2ecaf3db6f98d3c0393cd..81f8591f658b8ac2e9ee9146ed7b599829559189 100644
|
| --- a/content/renderer/render_frame_impl.cc
|
| +++ b/content/renderer/render_frame_impl.cc
|
| @@ -5,6 +5,7 @@
|
| #include "content/renderer/render_frame_impl.h"
|
|
|
| #include <map>
|
| +#include <set>
|
| #include <string>
|
| #include <utility>
|
| #include <vector>
|
| @@ -1574,6 +1575,10 @@ bool RenderFrameImpl::OnMessageReceived(const IPC::Message& msg) {
|
| OnSetHasReceivedUserGesture)
|
| IPC_MESSAGE_HANDLER(FrameMsg_RunFileChooserResponse, OnFileChooserResponse)
|
| IPC_MESSAGE_HANDLER(FrameMsg_ClearFocusedElement, OnClearFocusedElement)
|
| + IPC_MESSAGE_HANDLER(FrameMsg_BlinkFeatureUsageReport,
|
| + OnBlinkFeatureUsageReport)
|
| + IPC_MESSAGE_HANDLER(FrameMsg_MixedContentFoundByTheBrowser,
|
| + OnMixedContentFoundByTheBrowser)
|
| #if defined(OS_ANDROID)
|
| IPC_MESSAGE_HANDLER(FrameMsg_ActivateNearestFindResult,
|
| OnActivateNearestFindResult)
|
| @@ -5641,6 +5646,23 @@ void RenderFrameImpl::OnClearFocusedElement() {
|
| webview->clearFocusedElement();
|
| }
|
|
|
| +void RenderFrameImpl::OnBlinkFeatureUsageReport(const std::set<int>& features) {
|
| + frame_->blinkFeatureUsageReport(features);
|
| +}
|
| +
|
| +void RenderFrameImpl::OnMixedContentFoundByTheBrowser(
|
| + const GURL& main_resource_url,
|
| + const GURL& mixed_content_url,
|
| + RequestContextType request_context_type,
|
| + bool was_allowed,
|
| + bool had_redirect) {
|
| + auto request_context =
|
| + static_cast<blink::WebURLRequest::RequestContext>(request_context_type);
|
| + frame_->mixedContentFoundByTheBrowser(main_resource_url, mixed_content_url,
|
| + request_context, was_allowed,
|
| + had_redirect);
|
| +}
|
| +
|
| #if defined(OS_ANDROID)
|
| void RenderFrameImpl::OnActivateNearestFindResult(int request_id,
|
| float x,
|
| @@ -6206,7 +6228,9 @@ void RenderFrameImpl::BeginNavigation(const NavigationPolicyInfo& info) {
|
| info.urlRequest.hasUserGesture(),
|
| info.urlRequest.skipServiceWorker() !=
|
| blink::WebURLRequest::SkipServiceWorker::None,
|
| - GetRequestContextTypeForWebURLRequest(info.urlRequest), initiator_origin);
|
| + GetRequestContextTypeForWebURLRequest(info.urlRequest),
|
| + GetMixedContentContextTypeForWebURLRequest(info.urlRequest),
|
| + initiator_origin);
|
|
|
| if (!info.form.isNull()) {
|
| WebSearchableFormData web_searchable_form_data(info.form);
|
|
|