1 // Copyright 2015 Samsung Electronics. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef PLUGIN_PLACEHOLDER_EFL_H_
6 #define PLUGIN_PLACEHOLDER_EFL_H_
8 #include "components/plugins/renderer/loadable_plugin_placeholder.h"
10 class PluginPlaceholderEfl : public plugins::LoadablePluginPlaceholder {
12 // Creates a new WebViewPlugin with a MissingPlugin as a delegate.
13 static PluginPlaceholderEfl* CreateMissingPlugin(
14 content::RenderFrame* render_frame,
15 blink::WebLocalFrame* frame,
16 const blink::WebPluginParams& params);
19 PluginPlaceholderEfl(content::RenderFrame* render_frame,
20 blink::WebLocalFrame* frame,
21 const blink::WebPluginParams& params,
22 const std::string& html_data);
23 ~PluginPlaceholderEfl() override;
25 // WebViewPlugin::Delegate (via PluginPlaceholder) method
26 v8::Local<v8::Value> GetV8Handle(v8::Isolate*) override;
27 blink::WebPlugin* CreatePlugin() override;
29 DISALLOW_COPY_AND_ASSIGN(PluginPlaceholderEfl);
32 #endif // PLUGIN_PLACEHOLDER_EFL_H_