#include "components/plugins/renderer/plugin_placeholder.h"
#include "base/metrics/user_metrics_action.h"
#include "base/strings/string_util.h"
#include "content/public/renderer/render_frame.h"
#include "content/public/renderer/render_thread.h"
#include "content/public/renderer/v8_value_converter.h"
#include "gin/object_template_builder.h"
#include "third_party/blink/public/common/web_preferences/web_preferences.h"
#include "third_party/blink/public/platform/scheduler/web_agent_group_scheduler.h"
#include "third_party/blink/public/web/web_dom_message_event.h"
#include "third_party/blink/public/web/web_element.h"
#include "third_party/blink/public/web/web_local_frame.h"
#include "third_party/blink/public/web/web_plugin_container.h"
#include "third_party/blink/public/web/web_script_source.h"
#include "third_party/blink/public/web/web_serialized_script_value.h"
#include "third_party/re2/src/re2/re2.h"
namespace plugins {
const char kPluginPlaceholderDataURL[] = …;
PluginPlaceholderBase::PluginPlaceholderBase(
content::RenderFrame* render_frame,
const blink::WebPluginParams& params)
: … { … }
PluginPlaceholderBase::~PluginPlaceholderBase() = default;
void PluginPlaceholderBase::Init(const std::string& html_data) { … }
const blink::WebPluginParams& PluginPlaceholderBase::GetPluginParams() const { … }
void PluginPlaceholderBase::ShowContextMenu(const blink::WebMouseEvent& event) { … }
void PluginPlaceholderBase::PluginDestroyed() { … }
v8::Local<v8::Object> PluginPlaceholderBase::GetV8ScriptableObject(
v8::Isolate* isolate) const { … }
void PluginPlaceholderBase::HidePlugin() { … }
void PluginPlaceholderBase::HideCallback() { … }
void PluginPlaceholderBase::NotifyPlaceholderReadyForTestingCallback() { … }
void PluginPlaceholderBase::OnDestruct() { … }
gin::WrapperInfo PluginPlaceholder::kWrapperInfo = …;
PluginPlaceholder::PluginPlaceholder(content::RenderFrame* render_frame,
const blink::WebPluginParams& params)
: … { … }
PluginPlaceholder::~PluginPlaceholder() { … }
v8::Local<v8::Value> PluginPlaceholder::GetV8Handle(v8::Isolate* isolate) { … }
bool PluginPlaceholderBase::IsErrorPlaceholder() { … }
gin::ObjectTemplateBuilder PluginPlaceholder::GetObjectTemplateBuilder(
v8::Isolate* isolate) { … }
PluginPlaceholder* PluginPlaceholder::Create(
content::RenderFrame* render_frame,
const blink::WebPluginParams& params,
const std::string& html_data) { … }
}