summaryrefslogtreecommitdiffstats
path: root/src/core/browser_message_filter_qt.cpp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2018-05-09 17:25:22 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2018-06-26 08:17:30 +0000
commit7757ec1a562ae36b65a6cae93b3cd308247755ef (patch)
tree9da058ac021019317111dd1ad90c0a4a32529afe /src/core/browser_message_filter_qt.cpp
parent57c49df9c6fcbaaffc66900e191312d4e0a0edfa (diff)
Adaptations for Chromium 67
Change-Id: I13cedba56012f74651a044d6fa8f0957487bf3eb Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'src/core/browser_message_filter_qt.cpp')
-rw-r--r--src/core/browser_message_filter_qt.cpp28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/core/browser_message_filter_qt.cpp b/src/core/browser_message_filter_qt.cpp
index 330bba3a9..d4fdc4122 100644
--- a/src/core/browser_message_filter_qt.cpp
+++ b/src/core/browser_message_filter_qt.cpp
@@ -71,39 +71,11 @@ bool BrowserMessageFilterQt::OnMessageReceived(const IPC::Message& message)
IPC_MESSAGE_HANDLER(QtWebEngineHostMsg_RequestFileSystemAccessAsync,
OnRequestFileSystemAccessAsync)
IPC_MESSAGE_HANDLER(QtWebEngineHostMsg_AllowIndexedDB, OnAllowIndexedDB)
-#if BUILDFLAG(ENABLE_LIBRARY_CDMS)
- IPC_MESSAGE_HANDLER(
- QtWebEngineHostMsg_IsInternalPluginAvailableForMimeType,
- OnIsInternalPluginAvailableForMimeType)
-#endif
IPC_MESSAGE_UNHANDLED(return false)
IPC_END_MESSAGE_MAP()
return true;
}
-#if BUILDFLAG(ENABLE_LIBRARY_CDMS)
-void BrowserMessageFilterQt::OnIsInternalPluginAvailableForMimeType(
- const std::string& mime_type,
- base::Optional<std::vector<content::WebPluginMimeType::Param>> *opt_additional_params)
-{
- std::vector<content::WebPluginInfo> plugins;
- content::PluginService::GetInstance()->GetInternalPlugins(&plugins);
-
- for (size_t i = 0; i < plugins.size(); ++i) {
- const content::WebPluginInfo& plugin = plugins[i];
- const std::vector<content::WebPluginMimeType>& mime_types = plugin.mime_types;
- for (size_t j = 0; j < mime_types.size(); ++j) {
- if (mime_types[j].mime_type == mime_type) {
- *opt_additional_params = base::make_optional(mime_types[j].additional_params);
- return;
- }
- }
- }
-}
-
-#endif // BUILDFLAG(ENABLE_LIBRARY_CDMS)
-
-
void BrowserMessageFilterQt::OnAllowDatabase(int /*render_frame_id*/,
const GURL &origin_url,
const GURL &top_origin_url,