[M47_2526] Chromium upversion to m47_2526 branch
[platform/framework/web/chromium-efl.git] / tizen_src / ewk / efl_integration / renderer / plugins / plugin_placeholder_efl.h
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.
4
5 #ifndef PLUGIN_PLACEHOLDER_EFL_H_
6 #define PLUGIN_PLACEHOLDER_EFL_H_
7
8 #include "components/plugins/renderer/loadable_plugin_placeholder.h"
9
10 class PluginPlaceholderEfl : public plugins::LoadablePluginPlaceholder {
11  public:
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);
17
18  private:
19   PluginPlaceholderEfl(content::RenderFrame* render_frame,
20                        blink::WebLocalFrame* frame,
21                        const blink::WebPluginParams& params,
22                        const std::string& html_data);
23   ~PluginPlaceholderEfl() override;
24
25   // WebViewPlugin::Delegate (via PluginPlaceholder) method
26   v8::Local<v8::Value> GetV8Handle(v8::Isolate*) override;
27   blink::WebPlugin* CreatePlugin() override;
28
29   DISALLOW_COPY_AND_ASSIGN(PluginPlaceholderEfl);
30 };
31
32 #endif  // PLUGIN_PLACEHOLDER_EFL_H_