Update to Chromium version 97.0.4692.0 (#938553)

- Remove CefRequestContextHandler::OnBeforePluginLoad and
  CefRequestContext::PurgePluginListCache (fixes issue #3047). These methods
  stopped being relevant after the removal of Flash support in January 2021.
  The last remaining PPAPI plugin (PDF viewer) will switch to a non-plugin
  implementation in the near future (see https://crbug.com/702993#c58) and
  functionality related to plugin filtering has already been removed in
  https://crrev.com/343ae351c9.
This commit is contained in:
Marshall Greenblatt
2021-11-10 16:57:31 -05:00
parent e83d8d6a13
commit 66648c2343
119 changed files with 742 additions and 2333 deletions

View File

@ -9,7 +9,7 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=9172186519dc33742d7c302e7276c5ce8536a95b$
// $hash=5d94f8128092dfa61a980dbb77c254c40abde8a5$
//
#include "libcef_dll/cpptoc/request_context_handler_cpptoc.h"
@ -18,7 +18,6 @@
#include "libcef_dll/ctocpp/frame_ctocpp.h"
#include "libcef_dll/ctocpp/request_context_ctocpp.h"
#include "libcef_dll/ctocpp/request_ctocpp.h"
#include "libcef_dll/ctocpp/web_plugin_info_ctocpp.h"
namespace {
@ -42,43 +41,6 @@ void CEF_CALLBACK request_context_handler_on_request_context_initialized(
CefRequestContextCToCpp::Wrap(request_context));
}
int CEF_CALLBACK request_context_handler_on_before_plugin_load(
struct _cef_request_context_handler_t* self,
const cef_string_t* mime_type,
const cef_string_t* plugin_url,
int is_main_frame,
const cef_string_t* top_origin_url,
struct _cef_web_plugin_info_t* plugin_info,
cef_plugin_policy_t* plugin_policy) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return 0;
// Verify param: mime_type; type: string_byref_const
DCHECK(mime_type);
if (!mime_type)
return 0;
// Verify param: plugin_info; type: refptr_diff
DCHECK(plugin_info);
if (!plugin_info)
return 0;
// Verify param: plugin_policy; type: simple_byaddr
DCHECK(plugin_policy);
if (!plugin_policy)
return 0;
// Unverified params: plugin_url, top_origin_url
// Execute
bool _retval = CefRequestContextHandlerCppToC::Get(self)->OnBeforePluginLoad(
CefString(mime_type), CefString(plugin_url), is_main_frame ? true : false,
CefString(top_origin_url), CefWebPluginInfoCToCpp::Wrap(plugin_info),
plugin_policy);
// Return type: bool
return _retval;
}
struct _cef_resource_request_handler_t* CEF_CALLBACK
request_context_handler_get_resource_request_handler(
struct _cef_request_context_handler_t* self,
@ -131,8 +93,6 @@ request_context_handler_get_resource_request_handler(
CefRequestContextHandlerCppToC::CefRequestContextHandlerCppToC() {
GetStruct()->on_request_context_initialized =
request_context_handler_on_request_context_initialized;
GetStruct()->on_before_plugin_load =
request_context_handler_on_before_plugin_load;
GetStruct()->get_resource_request_handler =
request_context_handler_get_resource_request_handler;
}