Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / content / renderer / pepper / fake_pepper_plugin_instance.h
blobb5dcbe68926ff66e690a96cf8d71670822a034f7
1 // Copyright (c) 2013 The Chromium Authors. 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 CONTENT_RENDERER_PEPPER_FAKE_PEPPER_PLUGIN_INSTANCE_H_
6 #define CONTENT_RENDERER_PEPPER_FAKE_PEPPER_PLUGIN_INSTANCE_H_
8 #include "content/public/renderer/pepper_plugin_instance.h"
9 #include "url/gurl.h"
11 namespace content {
13 class FakePepperPluginInstance : public PepperPluginInstance {
14 public:
15 ~FakePepperPluginInstance() override;
17 // PepperPluginInstance overrides.
18 content::RenderView* GetRenderView() override;
19 blink::WebPluginContainer* GetContainer() override;
20 v8::Isolate* GetIsolate() const override;
21 ppapi::VarTracker* GetVarTracker() override;
22 const GURL& GetPluginURL() override;
23 base::FilePath GetModulePath() override;
24 PP_Resource CreateImage(gfx::ImageSkia* source_image, float scale) override;
25 PP_ExternalPluginResult SwitchToOutOfProcessProxy(
26 const base::FilePath& file_path,
27 ppapi::PpapiPermissions permissions,
28 const IPC::ChannelHandle& channel_handle,
29 base::ProcessId plugin_pid,
30 int plugin_child_id) override;
31 void SetAlwaysOnTop(bool on_top) override;
32 bool IsFullPagePlugin() override;
33 bool FlashSetFullscreen(bool fullscreen, bool delay_report) override;
34 bool IsRectTopmost(const gfx::Rect& rect) override;
35 int32_t Navigate(const ppapi::URLRequestInfoData& request,
36 const char* target,
37 bool from_user_action) override;
38 int MakePendingFileRefRendererHost(const base::FilePath& path) override;
39 void SetEmbedProperty(PP_Var key, PP_Var value) override;
40 void SetSelectedText(const base::string16& selected_text) override;
41 void SetLinkUnderCursor(const std::string& url) override;
42 void SetTextInputType(ui::TextInputType type) override;
43 void PostMessageToJavaScript(PP_Var message) override;
45 private:
46 GURL gurl_;
49 } // namespace content
51 #endif // CONTENT_RENDERER_PEPPER_FAKE_PEPPER_PLUGIN_INSTANCE_H_