2017-01-19 00:37:56 +01:00
|
|
|
diff --git chrome/browser/download/download_target_determiner.cc chrome/browser/download/download_target_determiner.cc
|
2017-09-06 23:40:58 +02:00
|
|
|
index faca8fe60751..cd96d66a5d8b 100644
|
2017-01-19 00:37:56 +01:00
|
|
|
--- chrome/browser/download/download_target_determiner.cc
|
|
|
|
+++ chrome/browser/download/download_target_determiner.cc
|
2017-09-06 23:40:58 +02:00
|
|
|
@@ -484,8 +484,8 @@ void IsHandledBySafePlugin(content::ResourceContext* resource_context,
|
2017-01-19 00:37:56 +01:00
|
|
|
content::PluginService* plugin_service =
|
|
|
|
content::PluginService::GetInstance();
|
|
|
|
bool plugin_found = plugin_service->GetPluginInfo(
|
|
|
|
- -1, -1, resource_context, url, url::Origin(), mime_type, false, &is_stale,
|
|
|
|
- &plugin_info, &actual_mime_type);
|
|
|
|
+ -1, -1, resource_context, url, true, url::Origin(), mime_type, false,
|
|
|
|
+ &is_stale, &plugin_info, &actual_mime_type);
|
|
|
|
if (is_stale && stale_plugin_action == RETRY_IF_STALE_PLUGIN_LIST) {
|
|
|
|
// The GetPlugins call causes the plugin list to be refreshed. Once that's
|
|
|
|
// done we can retry the GetPluginInfo call. We break out of this cycle
|
|
|
|
diff --git chrome/browser/plugins/chrome_plugin_service_filter.cc chrome/browser/plugins/chrome_plugin_service_filter.cc
|
2017-09-06 23:40:58 +02:00
|
|
|
index 1783a101aa02..b380ef826ff7 100644
|
2017-01-19 00:37:56 +01:00
|
|
|
--- chrome/browser/plugins/chrome_plugin_service_filter.cc
|
|
|
|
+++ chrome/browser/plugins/chrome_plugin_service_filter.cc
|
|
|
|
@@ -179,6 +179,7 @@ bool ChromePluginServiceFilter::IsPluginAvailable(
|
|
|
|
int render_frame_id,
|
|
|
|
const void* context,
|
|
|
|
const GURL& plugin_content_url,
|
|
|
|
+ bool is_main_frame,
|
|
|
|
const url::Origin& main_frame_origin,
|
|
|
|
content::WebPluginInfo* plugin) {
|
|
|
|
base::AutoLock auto_lock(lock_);
|
|
|
|
diff --git chrome/browser/plugins/chrome_plugin_service_filter.h chrome/browser/plugins/chrome_plugin_service_filter.h
|
2017-09-06 23:40:58 +02:00
|
|
|
index f8b651f1ddc4..ec39f8d7dc85 100644
|
2017-01-19 00:37:56 +01:00
|
|
|
--- chrome/browser/plugins/chrome_plugin_service_filter.h
|
|
|
|
+++ chrome/browser/plugins/chrome_plugin_service_filter.h
|
|
|
|
@@ -71,6 +71,7 @@ class ChromePluginServiceFilter : public content::PluginServiceFilter,
|
|
|
|
int render_frame_id,
|
|
|
|
const void* context,
|
|
|
|
const GURL& plugin_content_url,
|
|
|
|
+ bool is_main_frame,
|
|
|
|
const url::Origin& main_frame_origin,
|
|
|
|
content::WebPluginInfo* plugin) override;
|
|
|
|
|
2017-09-06 23:40:58 +02:00
|
|
|
diff --git chrome/browser/plugins/pdf_iframe_navigation_throttle.cc chrome/browser/plugins/pdf_iframe_navigation_throttle.cc
|
|
|
|
index 83445e1428a9..385e223b9069 100644
|
|
|
|
--- chrome/browser/plugins/pdf_iframe_navigation_throttle.cc
|
|
|
|
+++ chrome/browser/plugins/pdf_iframe_navigation_throttle.cc
|
|
|
|
@@ -52,7 +52,7 @@ PDFIFrameNavigationThrottle::MaybeCreateThrottleFor(
|
|
|
|
content::ResourceContext* resource_context =
|
|
|
|
handle->GetWebContents()->GetBrowserContext()->GetResourceContext();
|
|
|
|
if (filter->IsPluginAvailable(process_id, routing_id, resource_context,
|
|
|
|
- handle->GetURL(), url::Origin(),
|
|
|
|
+ handle->GetURL(), false, url::Origin(),
|
|
|
|
&pdf_plugin_info)) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
2017-01-19 00:37:56 +01:00
|
|
|
diff --git chrome/browser/plugins/plugin_info_message_filter.cc chrome/browser/plugins/plugin_info_message_filter.cc
|
2017-09-06 23:40:58 +02:00
|
|
|
index 8d0adcac00c1..2751e745107f 100644
|
2017-01-19 00:37:56 +01:00
|
|
|
--- chrome/browser/plugins/plugin_info_message_filter.cc
|
|
|
|
+++ chrome/browser/plugins/plugin_info_message_filter.cc
|
2017-09-06 23:40:58 +02:00
|
|
|
@@ -451,8 +451,8 @@ bool PluginInfoMessageFilter::Context::FindEnabledPlugin(
|
2017-01-19 00:37:56 +01:00
|
|
|
for (; i < matching_plugins.size(); ++i) {
|
|
|
|
if (!filter ||
|
|
|
|
filter->IsPluginAvailable(render_process_id_, render_frame_id,
|
|
|
|
- resource_context_, url, main_frame_origin,
|
|
|
|
- &matching_plugins[i])) {
|
|
|
|
+ resource_context_, url, true,
|
|
|
|
+ main_frame_origin, &matching_plugins[i])) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
diff --git chrome/browser/ui/cocoa/drag_util.mm chrome/browser/ui/cocoa/drag_util.mm
|
2017-09-06 23:40:58 +02:00
|
|
|
index 6a2122ee1ed7..68831894695a 100644
|
2017-01-19 00:37:56 +01:00
|
|
|
--- chrome/browser/ui/cocoa/drag_util.mm
|
|
|
|
+++ chrome/browser/ui/cocoa/drag_util.mm
|
2017-03-03 23:37:23 +01:00
|
|
|
@@ -54,7 +54,7 @@ BOOL IsSupportedFileURL(Profile* profile, const GURL& url) {
|
2017-01-19 00:37:56 +01:00
|
|
|
return PluginService::GetInstance()->GetPluginInfo(
|
|
|
|
-1, // process ID
|
|
|
|
MSG_ROUTING_NONE, // routing ID
|
|
|
|
- profile->GetResourceContext(), url, url::Origin(), mime_type,
|
|
|
|
+ profile->GetResourceContext(), url, true, url::Origin(), mime_type,
|
|
|
|
allow_wildcard, NULL, &plugin, NULL);
|
|
|
|
}
|
|
|
|
|
|
|
|
diff --git chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc
|
2017-09-06 23:40:58 +02:00
|
|
|
index ef7ae9c7de76..29a4e7cb9578 100644
|
2017-01-19 00:37:56 +01:00
|
|
|
--- chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc
|
|
|
|
+++ chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc
|
2017-09-06 23:40:58 +02:00
|
|
|
@@ -594,6 +594,6 @@ void BrowserTabStripController::OnFindURLMimeTypeCompleted(
|
2017-01-19 00:37:56 +01:00
|
|
|
content::PluginService::GetInstance()->GetPluginInfo(
|
|
|
|
-1, // process ID
|
|
|
|
MSG_ROUTING_NONE, // routing ID
|
|
|
|
- model_->profile()->GetResourceContext(), url, url::Origin(),
|
|
|
|
+ model_->profile()->GetResourceContext(), url, true, url::Origin(),
|
|
|
|
mime_type, false, NULL, &plugin, NULL));
|
|
|
|
}
|
2017-04-20 21:28:17 +02:00
|
|
|
diff --git content/browser/frame_host/navigation_handle_impl.cc content/browser/frame_host/navigation_handle_impl.cc
|
2017-09-06 23:40:58 +02:00
|
|
|
index 2e4d0d9ac4cb..9bd0bf12ca88 100644
|
2017-04-20 21:28:17 +02:00
|
|
|
--- content/browser/frame_host/navigation_handle_impl.cc
|
|
|
|
+++ content/browser/frame_host/navigation_handle_impl.cc
|
2017-09-06 23:40:58 +02:00
|
|
|
@@ -312,12 +312,6 @@ net::Error NavigationHandleImpl::GetNetErrorCode() {
|
2017-04-20 21:28:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
RenderFrameHostImpl* NavigationHandleImpl::GetRenderFrameHost() {
|
|
|
|
- // TODO(mkwst): Change this to check against 'READY_TO_COMMIT' once
|
|
|
|
- // ReadyToCommitNavigation is available whether or not PlzNavigate is
|
|
|
|
- // enabled. https://crbug.com/621856
|
|
|
|
- CHECK_GE(state_, WILL_PROCESS_RESPONSE)
|
|
|
|
- << "This accessor should only be called after a response has been "
|
|
|
|
- "delivered for processing.";
|
|
|
|
return render_frame_host_;
|
|
|
|
}
|
|
|
|
|
|
|
|
diff --git content/browser/frame_host/render_frame_host_impl.cc content/browser/frame_host/render_frame_host_impl.cc
|
2017-09-06 23:40:58 +02:00
|
|
|
index 7e577c8395d7..96421d4f2d88 100644
|
2017-04-20 21:28:17 +02:00
|
|
|
--- content/browser/frame_host/render_frame_host_impl.cc
|
|
|
|
+++ content/browser/frame_host/render_frame_host_impl.cc
|
2017-09-06 23:40:58 +02:00
|
|
|
@@ -370,9 +370,9 @@ void ForwardRequest(const char* service_name,
|
|
|
|
|
|
|
|
void CreatePaymentManager(RenderFrameHostImpl* rfh,
|
|
|
|
payments::mojom::PaymentManagerRequest request) {
|
|
|
|
- StoragePartitionImpl* storage_partition =
|
|
|
|
- static_cast<StoragePartitionImpl*>(BrowserContext::GetStoragePartition(
|
|
|
|
- rfh->GetSiteInstance()->GetBrowserContext(), rfh->GetSiteInstance()));
|
|
|
|
+ StoragePartition* storage_partition =
|
|
|
|
+ BrowserContext::GetStoragePartition(
|
|
|
|
+ rfh->GetSiteInstance()->GetBrowserContext(), rfh->GetSiteInstance());
|
|
|
|
storage_partition->GetPaymentAppContext()->CreatePaymentManager(
|
|
|
|
std::move(request));
|
|
|
|
}
|
|
|
|
@@ -937,10 +937,8 @@ bool RenderFrameHostImpl::OnMessageReceived(const IPC::Message &msg) {
|
2017-04-20 21:28:17 +02:00
|
|
|
IPC_MESSAGE_HANDLER(FrameHostMsg_ShowPopup, OnShowPopup)
|
|
|
|
IPC_MESSAGE_HANDLER(FrameHostMsg_HidePopup, OnHidePopup)
|
|
|
|
#endif
|
|
|
|
-#if defined(OS_ANDROID)
|
|
|
|
IPC_MESSAGE_HANDLER(FrameHostMsg_NavigationHandledByEmbedder,
|
|
|
|
OnNavigationHandledByEmbedder)
|
|
|
|
-#endif
|
2017-05-31 17:33:30 +02:00
|
|
|
IPC_MESSAGE_HANDLER(FrameHostMsg_RequestOverlayRoutingToken,
|
|
|
|
OnRequestOverlayRoutingToken)
|
2017-04-20 21:28:17 +02:00
|
|
|
IPC_MESSAGE_HANDLER(FrameHostMsg_ShowCreatedWindow, OnShowCreatedWindow)
|
2017-09-06 23:40:58 +02:00
|
|
|
@@ -1436,6 +1434,7 @@ void RenderFrameHostImpl::OnDidFailProvisionalLoadWithError(
|
2017-04-20 21:28:17 +02:00
|
|
|
if (navigation_handle_) {
|
|
|
|
navigation_handle_->set_net_error_code(
|
|
|
|
static_cast<net::Error>(params.error_code));
|
|
|
|
+ navigation_handle_->set_render_frame_host(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
frame_tree_node_->navigator()->DidFailProvisionalLoadWithError(this, params);
|
2017-09-06 23:40:58 +02:00
|
|
|
@@ -2705,14 +2704,12 @@ void RenderFrameHostImpl::OnHidePopup() {
|
2017-04-20 21:28:17 +02:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
-#if defined(OS_ANDROID)
|
|
|
|
void RenderFrameHostImpl::OnNavigationHandledByEmbedder() {
|
|
|
|
if (navigation_handle_)
|
|
|
|
navigation_handle_->set_net_error_code(net::ERR_ABORTED);
|
|
|
|
|
|
|
|
OnDidStopLoading();
|
|
|
|
}
|
|
|
|
-#endif
|
|
|
|
|
2017-05-31 17:33:30 +02:00
|
|
|
void RenderFrameHostImpl::OnRequestOverlayRoutingToken() {
|
|
|
|
// Make sure that we have a token.
|
2017-04-20 21:28:17 +02:00
|
|
|
diff --git content/browser/frame_host/render_frame_host_impl.h content/browser/frame_host/render_frame_host_impl.h
|
2017-09-06 23:40:58 +02:00
|
|
|
index 9a4fa29dd7c6..bfd658b91c06 100644
|
2017-04-20 21:28:17 +02:00
|
|
|
--- content/browser/frame_host/render_frame_host_impl.h
|
|
|
|
+++ content/browser/frame_host/render_frame_host_impl.h
|
2017-09-06 23:40:58 +02:00
|
|
|
@@ -821,8 +821,8 @@ class CONTENT_EXPORT RenderFrameHostImpl
|
2017-04-20 21:28:17 +02:00
|
|
|
void OnShowPopup(const FrameHostMsg_ShowPopup_Params& params);
|
|
|
|
void OnHidePopup();
|
|
|
|
#endif
|
|
|
|
-#if defined(OS_ANDROID)
|
|
|
|
void OnNavigationHandledByEmbedder();
|
|
|
|
+#if defined(OS_ANDROID)
|
|
|
|
void ForwardGetInterfaceToRenderFrame(const std::string& interface_name,
|
|
|
|
mojo::ScopedMessagePipeHandle pipe);
|
|
|
|
#endif
|
2017-01-19 00:37:56 +01:00
|
|
|
diff --git content/browser/frame_host/render_frame_message_filter.cc content/browser/frame_host/render_frame_message_filter.cc
|
2017-09-06 23:40:58 +02:00
|
|
|
index c440d8061dac..1ee6a7ca1cf1 100644
|
2017-01-19 00:37:56 +01:00
|
|
|
--- content/browser/frame_host/render_frame_message_filter.cc
|
|
|
|
+++ content/browser/frame_host/render_frame_message_filter.cc
|
2017-09-06 23:40:58 +02:00
|
|
|
@@ -509,6 +509,7 @@ void RenderFrameMessageFilter::GetCookies(int render_frame_id,
|
2017-01-19 00:37:56 +01:00
|
|
|
|
|
|
|
void RenderFrameMessageFilter::OnGetPlugins(
|
|
|
|
bool refresh,
|
|
|
|
+ bool is_main_frame,
|
|
|
|
const url::Origin& main_frame_origin,
|
|
|
|
IPC::Message* reply_msg) {
|
|
|
|
// Don't refresh if the specified threshold has not been passed. Note that
|
2017-09-06 23:40:58 +02:00
|
|
|
@@ -530,18 +531,19 @@ void RenderFrameMessageFilter::OnGetPlugins(
|
2017-01-19 00:37:56 +01:00
|
|
|
|
|
|
|
PluginServiceImpl::GetInstance()->GetPlugins(
|
2017-09-06 23:40:58 +02:00
|
|
|
base::BindOnce(&RenderFrameMessageFilter::GetPluginsCallback, this,
|
|
|
|
- reply_msg, main_frame_origin));
|
|
|
|
+ reply_msg, is_main_frame, main_frame_origin));
|
2017-01-19 00:37:56 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void RenderFrameMessageFilter::GetPluginsCallback(
|
|
|
|
IPC::Message* reply_msg,
|
|
|
|
+ bool is_main_frame,
|
|
|
|
const url::Origin& main_frame_origin,
|
|
|
|
const std::vector<WebPluginInfo>& all_plugins) {
|
|
|
|
// Filter the plugin list.
|
|
|
|
PluginServiceFilter* filter = PluginServiceImpl::GetInstance()->GetFilter();
|
|
|
|
std::vector<WebPluginInfo> plugins;
|
|
|
|
|
|
|
|
- int child_process_id = -1;
|
|
|
|
+ int child_process_id = render_process_id_;
|
|
|
|
int routing_id = MSG_ROUTING_NONE;
|
|
|
|
// In this loop, copy the WebPluginInfo (and do not use a reference) because
|
|
|
|
// the filter might mutate it.
|
2017-09-06 23:40:58 +02:00
|
|
|
@@ -550,7 +552,7 @@ void RenderFrameMessageFilter::GetPluginsCallback(
|
2017-01-19 00:37:56 +01:00
|
|
|
if (!filter ||
|
|
|
|
filter->IsPluginAvailable(child_process_id, routing_id,
|
|
|
|
resource_context_, main_frame_origin.GetURL(),
|
|
|
|
- main_frame_origin, &plugin)) {
|
|
|
|
+ is_main_frame, main_frame_origin, &plugin)) {
|
|
|
|
plugins.push_back(plugin);
|
|
|
|
}
|
|
|
|
}
|
2017-09-06 23:40:58 +02:00
|
|
|
@@ -562,6 +564,7 @@ void RenderFrameMessageFilter::GetPluginsCallback(
|
2017-01-19 00:37:56 +01:00
|
|
|
void RenderFrameMessageFilter::OnGetPluginInfo(
|
|
|
|
int render_frame_id,
|
|
|
|
const GURL& url,
|
|
|
|
+ bool is_main_frame,
|
|
|
|
const url::Origin& main_frame_origin,
|
|
|
|
const std::string& mime_type,
|
|
|
|
bool* found,
|
2017-09-06 23:40:58 +02:00
|
|
|
@@ -570,8 +573,8 @@ void RenderFrameMessageFilter::OnGetPluginInfo(
|
2017-01-19 00:37:56 +01:00
|
|
|
bool allow_wildcard = true;
|
|
|
|
*found = plugin_service_->GetPluginInfo(
|
|
|
|
render_process_id_, render_frame_id, resource_context_, url,
|
|
|
|
- main_frame_origin, mime_type, allow_wildcard, nullptr, info,
|
|
|
|
- actual_mime_type);
|
|
|
|
+ is_main_frame, main_frame_origin, mime_type, allow_wildcard, nullptr,
|
|
|
|
+ info, actual_mime_type);
|
|
|
|
}
|
|
|
|
|
|
|
|
void RenderFrameMessageFilter::OnOpenChannelToPepperPlugin(
|
|
|
|
diff --git content/browser/frame_host/render_frame_message_filter.h content/browser/frame_host/render_frame_message_filter.h
|
2017-09-06 23:40:58 +02:00
|
|
|
index 6875eb6496c4..a9248109c2b3 100644
|
2017-01-19 00:37:56 +01:00
|
|
|
--- content/browser/frame_host/render_frame_message_filter.h
|
|
|
|
+++ content/browser/frame_host/render_frame_message_filter.h
|
2017-09-06 23:40:58 +02:00
|
|
|
@@ -127,13 +127,16 @@ class CONTENT_EXPORT RenderFrameMessageFilter
|
2017-01-19 00:37:56 +01:00
|
|
|
|
|
|
|
#if BUILDFLAG(ENABLE_PLUGINS)
|
|
|
|
void OnGetPlugins(bool refresh,
|
|
|
|
+ bool is_main_frame,
|
|
|
|
const url::Origin& main_frame_origin,
|
|
|
|
IPC::Message* reply_msg);
|
|
|
|
void GetPluginsCallback(IPC::Message* reply_msg,
|
|
|
|
+ bool is_main_frame,
|
|
|
|
const url::Origin& main_frame_origin,
|
|
|
|
const std::vector<WebPluginInfo>& plugins);
|
|
|
|
void OnGetPluginInfo(int render_frame_id,
|
|
|
|
const GURL& url,
|
|
|
|
+ bool is_main_frame,
|
|
|
|
const url::Origin& main_frame_origin,
|
|
|
|
const std::string& mime_type,
|
|
|
|
bool* found,
|
|
|
|
diff --git content/browser/loader/mime_sniffing_resource_handler.cc content/browser/loader/mime_sniffing_resource_handler.cc
|
2017-09-06 23:40:58 +02:00
|
|
|
index 482bb55c2bfe..fbbac2ab26b1 100644
|
2017-01-19 00:37:56 +01:00
|
|
|
--- content/browser/loader/mime_sniffing_resource_handler.cc
|
|
|
|
+++ content/browser/loader/mime_sniffing_resource_handler.cc
|
2017-09-06 23:40:58 +02:00
|
|
|
@@ -489,8 +489,8 @@ bool MimeSniffingResourceHandler::CheckForPluginHandler(
|
2017-01-19 00:37:56 +01:00
|
|
|
WebPluginInfo plugin;
|
|
|
|
bool has_plugin = plugin_service_->GetPluginInfo(
|
|
|
|
info->GetChildID(), info->GetRenderFrameID(), info->GetContext(),
|
|
|
|
- request()->url(), url::Origin(), response_->head.mime_type,
|
|
|
|
- allow_wildcard, &stale, &plugin, NULL);
|
|
|
|
+ request()->url(), info->IsMainFrame(), url::Origin(),
|
|
|
|
+ response_->head.mime_type, allow_wildcard, &stale, &plugin, NULL);
|
|
|
|
|
|
|
|
if (stale) {
|
|
|
|
// Refresh the plugins asynchronously.
|
|
|
|
diff --git content/browser/plugin_service_impl.cc content/browser/plugin_service_impl.cc
|
2017-09-06 23:40:58 +02:00
|
|
|
index 4bdfa1d5455f..cf9b9166ae43 100644
|
2017-01-19 00:37:56 +01:00
|
|
|
--- content/browser/plugin_service_impl.cc
|
|
|
|
+++ content/browser/plugin_service_impl.cc
|
2017-05-31 17:33:30 +02:00
|
|
|
@@ -242,6 +242,7 @@ bool PluginServiceImpl::GetPluginInfo(int render_process_id,
|
2017-01-19 00:37:56 +01:00
|
|
|
int render_frame_id,
|
|
|
|
ResourceContext* context,
|
|
|
|
const GURL& url,
|
|
|
|
+ bool is_main_frame,
|
|
|
|
const url::Origin& main_frame_origin,
|
|
|
|
const std::string& mime_type,
|
|
|
|
bool allow_wildcard,
|
2017-05-31 17:33:30 +02:00
|
|
|
@@ -258,7 +259,8 @@ bool PluginServiceImpl::GetPluginInfo(int render_process_id,
|
2017-01-19 00:37:56 +01:00
|
|
|
for (size_t i = 0; i < plugins.size(); ++i) {
|
|
|
|
if (!filter_ ||
|
|
|
|
filter_->IsPluginAvailable(render_process_id, render_frame_id, context,
|
|
|
|
- url, main_frame_origin, &plugins[i])) {
|
|
|
|
+ url, is_main_frame, main_frame_origin,
|
|
|
|
+ &plugins[i])) {
|
|
|
|
*info = plugins[i];
|
|
|
|
if (actual_mime_type)
|
|
|
|
*actual_mime_type = mime_types[i];
|
|
|
|
diff --git content/browser/plugin_service_impl.h content/browser/plugin_service_impl.h
|
2017-09-06 23:40:58 +02:00
|
|
|
index b654bf3c98b4..1b09cd3d0a23 100644
|
2017-01-19 00:37:56 +01:00
|
|
|
--- content/browser/plugin_service_impl.h
|
|
|
|
+++ content/browser/plugin_service_impl.h
|
2017-09-06 23:40:58 +02:00
|
|
|
@@ -63,6 +63,7 @@ class CONTENT_EXPORT PluginServiceImpl : public PluginService {
|
2017-01-19 00:37:56 +01:00
|
|
|
int render_frame_id,
|
|
|
|
ResourceContext* context,
|
|
|
|
const GURL& url,
|
|
|
|
+ bool is_main_frame,
|
|
|
|
const url::Origin& main_frame_origin,
|
|
|
|
const std::string& mime_type,
|
|
|
|
bool allow_wildcard,
|
|
|
|
diff --git content/common/frame_messages.h content/common/frame_messages.h
|
2017-09-06 23:40:58 +02:00
|
|
|
index 7fcc51298b12..6cde762011c9 100644
|
2017-01-19 00:37:56 +01:00
|
|
|
--- content/common/frame_messages.h
|
|
|
|
+++ content/common/frame_messages.h
|
2017-07-27 01:19:27 +02:00
|
|
|
@@ -1324,8 +1324,9 @@ IPC_MESSAGE_ROUTED1(FrameHostMsg_PepperStopsPlayback,
|
2017-01-19 00:37:56 +01:00
|
|
|
|
|
|
|
// Used to get the list of plugins. |main_frame_origin| is used to handle
|
|
|
|
// exceptions for plugin content settings.
|
|
|
|
-IPC_SYNC_MESSAGE_CONTROL2_1(FrameHostMsg_GetPlugins,
|
|
|
|
+IPC_SYNC_MESSAGE_CONTROL3_1(FrameHostMsg_GetPlugins,
|
|
|
|
bool /* refresh*/,
|
|
|
|
+ bool /* is_main_frame */,
|
|
|
|
url::Origin /* main_frame_origin */,
|
|
|
|
std::vector<content::WebPluginInfo> /* plugins */)
|
|
|
|
|
2017-07-27 01:19:27 +02:00
|
|
|
@@ -1333,9 +1334,10 @@ IPC_SYNC_MESSAGE_CONTROL2_1(FrameHostMsg_GetPlugins,
|
2017-01-19 00:37:56 +01:00
|
|
|
// type. If there is no matching plugin, |found| is false.
|
|
|
|
// |actual_mime_type| is the actual mime type supported by the
|
|
|
|
// found plugin.
|
|
|
|
-IPC_SYNC_MESSAGE_CONTROL4_3(FrameHostMsg_GetPluginInfo,
|
|
|
|
+IPC_SYNC_MESSAGE_CONTROL5_3(FrameHostMsg_GetPluginInfo,
|
|
|
|
int /* render_frame_id */,
|
|
|
|
GURL /* url */,
|
|
|
|
+ bool /* is_main_frame */,
|
|
|
|
url::Origin /* main_frame_origin */,
|
|
|
|
std::string /* mime_type */,
|
|
|
|
bool /* found */,
|
2017-09-06 23:40:58 +02:00
|
|
|
@@ -1722,9 +1724,9 @@ IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply,
|
2017-04-20 21:28:17 +02:00
|
|
|
IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply,
|
|
|
|
int /* nfr_request_id */,
|
|
|
|
float /* distance */)
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
IPC_MESSAGE_ROUTED0(FrameHostMsg_NavigationHandledByEmbedder)
|
|
|
|
-#endif
|
|
|
|
|
|
|
|
// Adding a new message? Stick to the sort order above: first platform
|
|
|
|
// independent FrameMsg, then ifdefs for platform specific FrameMsg, then
|
2017-01-19 00:37:56 +01:00
|
|
|
diff --git content/ppapi_plugin/ppapi_blink_platform_impl.cc content/ppapi_plugin/ppapi_blink_platform_impl.cc
|
2017-09-06 23:40:58 +02:00
|
|
|
index bf393b7025c9..ae2f1840d193 100644
|
2017-01-19 00:37:56 +01:00
|
|
|
--- content/ppapi_plugin/ppapi_blink_platform_impl.cc
|
|
|
|
+++ content/ppapi_plugin/ppapi_blink_platform_impl.cc
|
2017-07-27 01:19:27 +02:00
|
|
|
@@ -215,6 +215,7 @@ std::unique_ptr<blink::WebURLLoader> PpapiBlinkPlatformImpl::CreateURLLoader(
|
2017-01-19 00:37:56 +01:00
|
|
|
|
2017-04-20 21:28:17 +02:00
|
|
|
void PpapiBlinkPlatformImpl::GetPluginList(
|
2017-01-19 00:37:56 +01:00
|
|
|
bool refresh,
|
|
|
|
+ bool isMainFrame,
|
|
|
|
const blink::WebSecurityOrigin& mainFrameOrigin,
|
|
|
|
blink::WebPluginListBuilder* builder) {
|
|
|
|
NOTREACHED();
|
|
|
|
diff --git content/ppapi_plugin/ppapi_blink_platform_impl.h content/ppapi_plugin/ppapi_blink_platform_impl.h
|
2017-09-06 23:40:58 +02:00
|
|
|
index f7684513c3bd..ff6d12f17fe7 100644
|
2017-01-19 00:37:56 +01:00
|
|
|
--- content/ppapi_plugin/ppapi_blink_platform_impl.h
|
|
|
|
+++ content/ppapi_plugin/ppapi_blink_platform_impl.h
|
2017-09-06 23:40:58 +02:00
|
|
|
@@ -46,6 +46,7 @@ class PpapiBlinkPlatformImpl : public BlinkPlatformImpl {
|
2017-07-27 01:19:27 +02:00
|
|
|
const blink::WebURLRequest& request,
|
|
|
|
base::SingleThreadTaskRunner* task_runner) override;
|
2017-04-20 21:28:17 +02:00
|
|
|
void GetPluginList(bool refresh,
|
2017-01-19 00:37:56 +01:00
|
|
|
+ bool isMainFrame,
|
|
|
|
const blink::WebSecurityOrigin& mainFrameOrigin,
|
|
|
|
blink::WebPluginListBuilder*) override;
|
2017-07-27 01:19:27 +02:00
|
|
|
blink::WebData GetDataResource(const char* name) override;
|
2017-01-19 00:37:56 +01:00
|
|
|
diff --git content/public/browser/plugin_service.h content/public/browser/plugin_service.h
|
2017-09-06 23:40:58 +02:00
|
|
|
index ac05c13b1df8..762262bff01a 100644
|
2017-01-19 00:37:56 +01:00
|
|
|
--- content/public/browser/plugin_service.h
|
|
|
|
+++ content/public/browser/plugin_service.h
|
|
|
|
@@ -74,6 +74,7 @@ class PluginService {
|
|
|
|
int render_frame_id,
|
|
|
|
ResourceContext* context,
|
|
|
|
const GURL& url,
|
|
|
|
+ bool is_main_frame,
|
|
|
|
const url::Origin& main_frame_origin,
|
|
|
|
const std::string& mime_type,
|
|
|
|
bool allow_wildcard,
|
|
|
|
diff --git content/public/browser/plugin_service_filter.h content/public/browser/plugin_service_filter.h
|
2017-09-06 23:40:58 +02:00
|
|
|
index 3b610b1f554e..7c439e060779 100644
|
2017-01-19 00:37:56 +01:00
|
|
|
--- content/public/browser/plugin_service_filter.h
|
|
|
|
+++ content/public/browser/plugin_service_filter.h
|
|
|
|
@@ -33,6 +33,7 @@ class PluginServiceFilter {
|
|
|
|
int render_frame_id,
|
|
|
|
const void* context,
|
|
|
|
const GURL& url,
|
|
|
|
+ bool is_main_frame,
|
|
|
|
const url::Origin& main_frame_origin,
|
|
|
|
WebPluginInfo* plugin) = 0;
|
|
|
|
|
2017-04-20 21:28:17 +02:00
|
|
|
diff --git content/public/renderer/content_renderer_client.cc content/public/renderer/content_renderer_client.cc
|
2017-09-06 23:40:58 +02:00
|
|
|
index 303653a66248..a53478408226 100644
|
2017-04-20 21:28:17 +02:00
|
|
|
--- content/public/renderer/content_renderer_client.cc
|
|
|
|
+++ content/public/renderer/content_renderer_client.cc
|
2017-09-06 23:40:58 +02:00
|
|
|
@@ -109,7 +109,6 @@ bool ContentRendererClient::AllowPopup() {
|
2017-04-20 21:28:17 +02:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
-#if defined(OS_ANDROID)
|
|
|
|
bool ContentRendererClient::HandleNavigation(
|
|
|
|
RenderFrame* render_frame,
|
|
|
|
bool is_content_initiated,
|
2017-09-06 23:40:58 +02:00
|
|
|
@@ -122,6 +121,7 @@ bool ContentRendererClient::HandleNavigation(
|
2017-04-20 21:28:17 +02:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
+#if defined(OS_ANDROID)
|
|
|
|
bool ContentRendererClient::ShouldUseMediaPlayerForURL(const GURL& url) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
diff --git content/public/renderer/content_renderer_client.h content/public/renderer/content_renderer_client.h
|
2017-09-06 23:40:58 +02:00
|
|
|
index 16f55a95fdea..7f40cd466b09 100644
|
2017-04-20 21:28:17 +02:00
|
|
|
--- content/public/renderer/content_renderer_client.h
|
|
|
|
+++ content/public/renderer/content_renderer_client.h
|
2017-07-27 01:19:27 +02:00
|
|
|
@@ -77,6 +77,9 @@ class CONTENT_EXPORT ContentRendererClient {
|
2017-05-31 17:33:30 +02:00
|
|
|
// Notifies us that the RenderThread has been created.
|
|
|
|
virtual void RenderThreadStarted() {}
|
|
|
|
|
|
|
|
+ // Notifies that the RenderThread can now send sync IPC messages.
|
|
|
|
+ virtual void RenderThreadConnected() {}
|
|
|
|
+
|
|
|
|
// Notifies that a new RenderFrame has been created.
|
|
|
|
virtual void RenderFrameCreated(RenderFrame* render_frame) {}
|
|
|
|
|
2017-09-06 23:40:58 +02:00
|
|
|
@@ -201,7 +204,6 @@ class CONTENT_EXPORT ContentRendererClient {
|
2017-04-20 21:28:17 +02:00
|
|
|
// Returns true if a popup window should be allowed.
|
|
|
|
virtual bool AllowPopup();
|
|
|
|
|
|
|
|
-#if defined(OS_ANDROID)
|
|
|
|
// TODO(sgurun) This callback is deprecated and will be removed as soon
|
|
|
|
// as android webview completes implementation of a resource throttle based
|
|
|
|
// shouldoverrideurl implementation. See crbug.com/325351
|
2017-09-06 23:40:58 +02:00
|
|
|
@@ -217,6 +219,7 @@ class CONTENT_EXPORT ContentRendererClient {
|
2017-04-20 21:28:17 +02:00
|
|
|
blink::WebNavigationPolicy default_policy,
|
|
|
|
bool is_redirect);
|
|
|
|
|
|
|
|
+#if defined(OS_ANDROID)
|
|
|
|
// Indicates if the Android MediaPlayer should be used instead of Chrome's
|
|
|
|
// built in media player for the given |url|. Defaults to false.
|
|
|
|
virtual bool ShouldUseMediaPlayerForURL(const GURL& url);
|
2017-05-31 17:33:30 +02:00
|
|
|
diff --git content/public/renderer/render_frame_observer.h content/public/renderer/render_frame_observer.h
|
2017-09-06 23:40:58 +02:00
|
|
|
index 4f8478bfa87a..52471407518e 100644
|
2017-05-31 17:33:30 +02:00
|
|
|
--- content/public/renderer/render_frame_observer.h
|
|
|
|
+++ content/public/renderer/render_frame_observer.h
|
2017-09-06 23:40:58 +02:00
|
|
|
@@ -124,6 +124,9 @@ class CONTENT_EXPORT RenderFrameObserver : public IPC::Listener,
|
|
|
|
// load. This is used for UseCounter feature metrics.
|
|
|
|
virtual void DidObserveNewFeatureUsage(blink::mojom::WebFeature feature) {}
|
2017-05-31 17:33:30 +02:00
|
|
|
|
|
|
|
+ // Called when this frame gains focus.
|
|
|
|
+ virtual void FrameFocused() {}
|
|
|
|
+
|
|
|
|
// Called when the focused node has changed to |node|.
|
|
|
|
virtual void FocusedNodeChanged(const blink::WebNode& node) {}
|
|
|
|
|
2017-01-19 00:37:56 +01:00
|
|
|
diff --git content/renderer/render_frame_impl.cc content/renderer/render_frame_impl.cc
|
2017-09-06 23:40:58 +02:00
|
|
|
index 7fc594620793..9082ae71219f 100644
|
2017-01-19 00:37:56 +01:00
|
|
|
--- content/renderer/render_frame_impl.cc
|
|
|
|
+++ content/renderer/render_frame_impl.cc
|
2017-09-06 23:40:58 +02:00
|
|
|
@@ -2952,7 +2952,8 @@ blink::WebPlugin* RenderFrameImpl::CreatePlugin(
|
2017-01-19 00:37:56 +01:00
|
|
|
std::string mime_type;
|
|
|
|
bool found = false;
|
|
|
|
Send(new FrameHostMsg_GetPluginInfo(
|
2017-05-31 17:33:30 +02:00
|
|
|
- routing_id_, params.url, frame_->Top()->GetSecurityOrigin(),
|
|
|
|
+ routing_id_, params.url, frame_->Parent() == nullptr,
|
|
|
|
+ frame_->Top()->GetSecurityOrigin(),
|
2017-04-20 21:28:17 +02:00
|
|
|
params.mime_type.Utf8(), &found, &info, &mime_type));
|
2017-01-19 00:37:56 +01:00
|
|
|
if (!found)
|
2017-05-31 17:33:30 +02:00
|
|
|
return nullptr;
|
2017-09-06 23:40:58 +02:00
|
|
|
@@ -3258,6 +3259,8 @@ void RenderFrameImpl::FrameDetached(DetachType type) {
|
2017-05-31 17:33:30 +02:00
|
|
|
|
|
|
|
void RenderFrameImpl::FrameFocused() {
|
|
|
|
Send(new FrameHostMsg_FrameFocused(routing_id_));
|
|
|
|
+ for (auto& observer : observers_)
|
|
|
|
+ observer.FrameFocused();
|
|
|
|
}
|
|
|
|
|
|
|
|
void RenderFrameImpl::WillCommitProvisionalLoad() {
|
2017-09-06 23:40:58 +02:00
|
|
|
@@ -5397,9 +5400,8 @@ WebNavigationPolicy RenderFrameImpl::DecidePolicyForNavigation(
|
2017-04-20 21:28:17 +02:00
|
|
|
(!IsBrowserSideNavigationEnabled() ||
|
|
|
|
url != pending_navigation_params_->request_params.redirects[0]));
|
2017-01-19 00:37:56 +01:00
|
|
|
|
|
|
|
-#ifdef OS_ANDROID
|
|
|
|
- bool render_view_was_created_by_renderer =
|
|
|
|
- render_view_->was_created_by_renderer_;
|
|
|
|
+ // CEF doesn't use this value, so just pass false.
|
|
|
|
+ bool render_view_was_created_by_renderer = false;
|
|
|
|
// The handlenavigation API is deprecated and will be removed once
|
|
|
|
// crbug.com/325351 is resolved.
|
|
|
|
if (GetContentClient()->renderer()->HandleNavigation(
|
2017-09-06 23:40:58 +02:00
|
|
|
@@ -5412,7 +5414,6 @@ WebNavigationPolicy RenderFrameImpl::DecidePolicyForNavigation(
|
2017-04-20 21:28:17 +02:00
|
|
|
}
|
|
|
|
return blink::kWebNavigationPolicyIgnore;
|
2017-01-19 00:37:56 +01:00
|
|
|
}
|
|
|
|
-#endif
|
|
|
|
|
2017-09-06 23:40:58 +02:00
|
|
|
// If the browser is interested, then give it a chance to look at the request.
|
|
|
|
if (is_content_initiated && IsTopLevelNavigation(frame_) &&
|
2017-05-31 17:33:30 +02:00
|
|
|
diff --git content/renderer/render_thread_impl.cc content/renderer/render_thread_impl.cc
|
2017-09-06 23:40:58 +02:00
|
|
|
index dbf1a1967f90..064f48a2e071 100644
|
2017-05-31 17:33:30 +02:00
|
|
|
--- content/renderer/render_thread_impl.cc
|
|
|
|
+++ content/renderer/render_thread_impl.cc
|
2017-09-06 23:40:58 +02:00
|
|
|
@@ -774,6 +774,8 @@ void RenderThreadImpl::Init(
|
2017-05-31 17:33:30 +02:00
|
|
|
|
|
|
|
StartServiceManagerConnection();
|
|
|
|
|
|
|
|
+ GetContentClient()->renderer()->RenderThreadConnected();
|
|
|
|
+
|
2017-07-27 01:19:27 +02:00
|
|
|
GetAssociatedInterfaceRegistry()->AddInterface(
|
|
|
|
base::Bind(&RenderThreadImpl::OnRendererInterfaceRequest,
|
|
|
|
base::Unretained(this)));
|
2017-01-19 00:37:56 +01:00
|
|
|
diff --git content/renderer/renderer_blink_platform_impl.cc content/renderer/renderer_blink_platform_impl.cc
|
2017-09-06 23:40:58 +02:00
|
|
|
index 2246aa95c564..02d25c60a090 100644
|
2017-01-19 00:37:56 +01:00
|
|
|
--- content/renderer/renderer_blink_platform_impl.cc
|
|
|
|
+++ content/renderer/renderer_blink_platform_impl.cc
|
2017-09-06 23:40:58 +02:00
|
|
|
@@ -783,6 +783,7 @@ RendererBlinkPlatformImpl::CreateMIDIAccessor(
|
2017-01-19 00:37:56 +01:00
|
|
|
|
2017-04-20 21:28:17 +02:00
|
|
|
void RendererBlinkPlatformImpl::GetPluginList(
|
2017-01-19 00:37:56 +01:00
|
|
|
bool refresh,
|
|
|
|
+ bool isMainFrame,
|
|
|
|
const blink::WebSecurityOrigin& mainFrameOrigin,
|
|
|
|
blink::WebPluginListBuilder* builder) {
|
|
|
|
#if BUILDFLAG(ENABLE_PLUGINS)
|
2017-09-06 23:40:58 +02:00
|
|
|
@@ -790,7 +791,8 @@ void RendererBlinkPlatformImpl::GetPluginList(
|
2017-01-19 00:37:56 +01:00
|
|
|
if (!plugin_refresh_allowed_)
|
|
|
|
refresh = false;
|
|
|
|
RenderThread::Get()->Send(
|
|
|
|
- new FrameHostMsg_GetPlugins(refresh, mainFrameOrigin, &plugins));
|
|
|
|
+ new FrameHostMsg_GetPlugins(refresh, isMainFrame, mainFrameOrigin,
|
|
|
|
+ &plugins));
|
|
|
|
for (const WebPluginInfo& plugin : plugins) {
|
2017-04-20 21:28:17 +02:00
|
|
|
builder->AddPlugin(WebString::FromUTF16(plugin.name),
|
|
|
|
WebString::FromUTF16(plugin.desc),
|
2017-01-19 00:37:56 +01:00
|
|
|
diff --git content/renderer/renderer_blink_platform_impl.h content/renderer/renderer_blink_platform_impl.h
|
2017-09-06 23:40:58 +02:00
|
|
|
index 18ab5e68d8a6..bd40d2914f7a 100644
|
2017-01-19 00:37:56 +01:00
|
|
|
--- content/renderer/renderer_blink_platform_impl.h
|
|
|
|
+++ content/renderer/renderer_blink_platform_impl.h
|
2017-07-27 01:19:27 +02:00
|
|
|
@@ -125,6 +125,7 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl {
|
|
|
|
viz::FrameSinkId GenerateFrameSinkId() override;
|
2017-01-19 00:37:56 +01:00
|
|
|
|
2017-04-20 21:28:17 +02:00
|
|
|
void GetPluginList(bool refresh,
|
2017-01-19 00:37:56 +01:00
|
|
|
+ bool isMainFrame,
|
|
|
|
const blink::WebSecurityOrigin& mainFrameOrigin,
|
|
|
|
blink::WebPluginListBuilder* builder) override;
|
2017-04-20 21:28:17 +02:00
|
|
|
blink::WebPublicSuffixList* PublicSuffixList() override;
|
2017-05-31 17:33:30 +02:00
|
|
|
diff --git content/shell/browser/shell_plugin_service_filter.cc content/shell/browser/shell_plugin_service_filter.cc
|
2017-09-06 23:40:58 +02:00
|
|
|
index 3a48c59b7e3e..d10ef64adbba 100644
|
2017-05-31 17:33:30 +02:00
|
|
|
--- content/shell/browser/shell_plugin_service_filter.cc
|
|
|
|
+++ content/shell/browser/shell_plugin_service_filter.cc
|
|
|
|
@@ -18,6 +18,7 @@ bool ShellPluginServiceFilter::IsPluginAvailable(
|
|
|
|
int render_frame_id,
|
|
|
|
const void* context,
|
|
|
|
const GURL& url,
|
|
|
|
+ bool is_main_frame,
|
|
|
|
const url::Origin& main_frame_origin,
|
|
|
|
WebPluginInfo* plugin) {
|
|
|
|
return plugin->name == base::ASCIIToUTF16("Blink Test Plugin") ||
|
|
|
|
diff --git content/shell/browser/shell_plugin_service_filter.h content/shell/browser/shell_plugin_service_filter.h
|
2017-09-06 23:40:58 +02:00
|
|
|
index 7767a620a9fd..8a95377f5f3b 100644
|
2017-05-31 17:33:30 +02:00
|
|
|
--- content/shell/browser/shell_plugin_service_filter.h
|
|
|
|
+++ content/shell/browser/shell_plugin_service_filter.h
|
|
|
|
@@ -21,6 +21,7 @@ class ShellPluginServiceFilter : public PluginServiceFilter {
|
|
|
|
int render_frame_id,
|
|
|
|
const void* context,
|
|
|
|
const GURL& url,
|
|
|
|
+ bool is_main_frame,
|
|
|
|
const url::Origin& main_frame_origin,
|
|
|
|
WebPluginInfo* plugin) override;
|
|
|
|
|
|
|
|
diff --git content/test/fake_plugin_service.cc content/test/fake_plugin_service.cc
|
2017-09-06 23:40:58 +02:00
|
|
|
index 6746b9f16e7e..8634ada48d57 100644
|
2017-05-31 17:33:30 +02:00
|
|
|
--- content/test/fake_plugin_service.cc
|
|
|
|
+++ content/test/fake_plugin_service.cc
|
|
|
|
@@ -29,6 +29,7 @@ bool FakePluginService::GetPluginInfo(int render_process_id,
|
|
|
|
int render_frame_id,
|
|
|
|
ResourceContext* context,
|
|
|
|
const GURL& url,
|
|
|
|
+ bool is_main_frame,
|
|
|
|
const url::Origin& main_frame_origin,
|
|
|
|
const std::string& mime_type,
|
|
|
|
bool allow_wildcard,
|
|
|
|
diff --git content/test/fake_plugin_service.h content/test/fake_plugin_service.h
|
2017-09-06 23:40:58 +02:00
|
|
|
index db23a83ed079..57a4c536118c 100644
|
2017-05-31 17:33:30 +02:00
|
|
|
--- content/test/fake_plugin_service.h
|
|
|
|
+++ content/test/fake_plugin_service.h
|
|
|
|
@@ -30,6 +30,7 @@ class FakePluginService : public PluginService {
|
|
|
|
int render_frame_id,
|
|
|
|
ResourceContext* context,
|
|
|
|
const GURL& url,
|
|
|
|
+ bool is_main_frame,
|
|
|
|
const url::Origin& main_frame_origin,
|
|
|
|
const std::string& mime_type,
|
|
|
|
bool allow_wildcard,
|
|
|
|
diff --git content/test/test_blink_web_unit_test_support.cc content/test/test_blink_web_unit_test_support.cc
|
2017-09-06 23:40:58 +02:00
|
|
|
index c19d608cc3e1..3dce54daf1cb 100644
|
2017-05-31 17:33:30 +02:00
|
|
|
--- content/test/test_blink_web_unit_test_support.cc
|
|
|
|
+++ content/test/test_blink_web_unit_test_support.cc
|
2017-07-27 01:19:27 +02:00
|
|
|
@@ -290,6 +290,7 @@ blink::WebThread* TestBlinkWebUnitTestSupport::CurrentThread() {
|
2017-05-31 17:33:30 +02:00
|
|
|
|
|
|
|
void TestBlinkWebUnitTestSupport::GetPluginList(
|
|
|
|
bool refresh,
|
|
|
|
+ bool is_main_frame,
|
|
|
|
const blink::WebSecurityOrigin& mainFrameOrigin,
|
|
|
|
blink::WebPluginListBuilder* builder) {
|
|
|
|
builder->AddPlugin("pdf", "pdf", "pdf-files");
|
|
|
|
diff --git content/test/test_blink_web_unit_test_support.h content/test/test_blink_web_unit_test_support.h
|
2017-09-06 23:40:58 +02:00
|
|
|
index 556242d76fa9..61853c2df547 100644
|
2017-05-31 17:33:30 +02:00
|
|
|
--- content/test/test_blink_web_unit_test_support.h
|
|
|
|
+++ content/test/test_blink_web_unit_test_support.h
|
2017-07-27 01:19:27 +02:00
|
|
|
@@ -70,6 +70,7 @@ class TestBlinkWebUnitTestSupport : public BlinkPlatformImpl {
|
2017-05-31 17:33:30 +02:00
|
|
|
const blink::WebSize& size) override;
|
|
|
|
|
|
|
|
void GetPluginList(bool refresh,
|
|
|
|
+ bool is_main_frame,
|
|
|
|
const blink::WebSecurityOrigin& mainFrameOrigin,
|
|
|
|
blink::WebPluginListBuilder* builder) override;
|
|
|
|
|