| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_RENDERER_PEPPER_FAKE_PEPPER_PLUGIN_INSTANCE_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_FAKE_PEPPER_PLUGIN_INSTANCE_H_ |
| 6 #define CONTENT_RENDERER_PEPPER_FAKE_PEPPER_PLUGIN_INSTANCE_H_ | 6 #define CONTENT_RENDERER_PEPPER_FAKE_PEPPER_PLUGIN_INSTANCE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "content/public/renderer/pepper_plugin_instance.h" | 10 #include "content/public/renderer/pepper_plugin_instance.h" |
| 11 #include "url/gurl.h" | 11 #include "url/gurl.h" |
| 12 | 12 |
| 13 namespace content { | 13 namespace content { |
| 14 | 14 |
| 15 class FakePepperPluginInstance : public PepperPluginInstance { | 15 class FakePepperPluginInstance : public PepperPluginInstance { |
| 16 public: | 16 public: |
| 17 ~FakePepperPluginInstance() override; | 17 ~FakePepperPluginInstance() override; |
| 18 | 18 |
| 19 // PepperPluginInstance overrides. | 19 // PepperPluginInstance overrides. |
| 20 content::RenderFrame* GetRenderFrame() override; |
| 20 content::RenderView* GetRenderView() override; | 21 content::RenderView* GetRenderView() override; |
| 21 blink::WebPluginContainer* GetContainer() override; | 22 blink::WebPluginContainer* GetContainer() override; |
| 22 v8::Isolate* GetIsolate() const override; | 23 v8::Isolate* GetIsolate() const override; |
| 23 ppapi::VarTracker* GetVarTracker() override; | 24 ppapi::VarTracker* GetVarTracker() override; |
| 24 const GURL& GetPluginURL() override; | 25 const GURL& GetPluginURL() override; |
| 25 base::FilePath GetModulePath() override; | 26 base::FilePath GetModulePath() override; |
| 26 PP_Resource CreateImage(gfx::ImageSkia* source_image, float scale) override; | 27 PP_Resource CreateImage(gfx::ImageSkia* source_image, float scale) override; |
| 27 PP_ExternalPluginResult SwitchToOutOfProcessProxy( | 28 PP_ExternalPluginResult SwitchToOutOfProcessProxy( |
| 28 const base::FilePath& file_path, | 29 const base::FilePath& file_path, |
| 29 ppapi::PpapiPermissions permissions, | 30 ppapi::PpapiPermissions permissions, |
| (...skipping 14 matching lines...) Expand all Loading... |
| 44 void SetTextInputType(ui::TextInputType type) override; | 45 void SetTextInputType(ui::TextInputType type) override; |
| 45 void PostMessageToJavaScript(PP_Var message) override; | 46 void PostMessageToJavaScript(PP_Var message) override; |
| 46 | 47 |
| 47 private: | 48 private: |
| 48 GURL gurl_; | 49 GURL gurl_; |
| 49 }; | 50 }; |
| 50 | 51 |
| 51 } // namespace content | 52 } // namespace content |
| 52 | 53 |
| 53 #endif // CONTENT_RENDERER_PEPPER_FAKE_PEPPER_PLUGIN_INSTANCE_H_ | 54 #endif // CONTENT_RENDERER_PEPPER_FAKE_PEPPER_PLUGIN_INSTANCE_H_ |
| OLD | NEW |