mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-01-30 19:14:56 +01:00
66648c2343
- 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.
51 lines
1.8 KiB
C++
51 lines
1.8 KiB
C++
// Copyright 2020 The Chromium Embedded Framework Authors.
|
|
// Portions copyright 2012 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef CEF_LIBCEF_RENDERER_CHROME_CHROME_CONTENT_RENDERER_CLIENT_CEF_
|
|
#define CEF_LIBCEF_RENDERER_CHROME_CHROME_CONTENT_RENDERER_CLIENT_CEF_
|
|
|
|
#include <memory>
|
|
|
|
#include "base/macros.h"
|
|
#include "base/memory/scoped_refptr.h"
|
|
#include "base/task/single_thread_task_runner.h"
|
|
#include "chrome/renderer/chrome_content_renderer_client.h"
|
|
|
|
class CefRenderManager;
|
|
|
|
// CEF override of ChromeContentRendererClient.
|
|
class ChromeContentRendererClientCef : public ChromeContentRendererClient {
|
|
public:
|
|
ChromeContentRendererClientCef();
|
|
~ChromeContentRendererClientCef() override;
|
|
|
|
// Render thread task runner.
|
|
base::SingleThreadTaskRunner* render_task_runner() const {
|
|
return render_task_runner_.get();
|
|
}
|
|
|
|
// Returns the task runner for the current thread. Returns NULL if the current
|
|
// thread is not the main render process thread.
|
|
scoped_refptr<base::SingleThreadTaskRunner> GetCurrentTaskRunner();
|
|
|
|
// ChromeContentRendererClient overrides.
|
|
void RenderThreadStarted() override;
|
|
void RenderThreadConnected() override;
|
|
void RenderFrameCreated(content::RenderFrame* render_frame) override;
|
|
void WebViewCreated(blink::WebView* web_view) override;
|
|
void DevToolsAgentAttached() override;
|
|
void DevToolsAgentDetached() override;
|
|
void ExposeInterfacesToBrowser(mojo::BinderMap* binders) override;
|
|
|
|
private:
|
|
std::unique_ptr<CefRenderManager> render_manager_;
|
|
|
|
scoped_refptr<base::SingleThreadTaskRunner> render_task_runner_;
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(ChromeContentRendererClientCef);
|
|
};
|
|
|
|
#endif // CEF_LIBCEF_RENDERER_CHROME_CHROME_CONTENT_RENDERER_CLIENT_CEF_
|