| 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_PUBLIC_RENDERER_PEPPER_PLUGIN_INSTANCE_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_PEPPER_PLUGIN_INSTANCE_H_ |
| 6 #define CONTENT_PUBLIC_RENDERER_PEPPER_PLUGIN_INSTANCE_H_ | 6 #define CONTENT_PUBLIC_RENDERER_PEPPER_PLUGIN_INSTANCE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/process/process_handle.h" | 10 #include "base/process/process_handle.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 class WebPluginContainer; | 41 class WebPluginContainer; |
| 42 } | 42 } |
| 43 | 43 |
| 44 namespace v8 { | 44 namespace v8 { |
| 45 class Isolate; | 45 class Isolate; |
| 46 } | 46 } |
| 47 | 47 |
| 48 namespace content { | 48 namespace content { |
| 49 class RenderFrame; |
| 49 class RenderView; | 50 class RenderView; |
| 50 | 51 |
| 51 class PepperPluginInstance { | 52 class PepperPluginInstance { |
| 52 public: | 53 public: |
| 53 // Return the PepperPluginInstance for the given |instance_id|. Will return | 54 // Return the PepperPluginInstance for the given |instance_id|. Will return |
| 54 // null if the instance is in the process of being deleted. | 55 // null if the instance is in the process of being deleted. |
| 55 static CONTENT_EXPORT PepperPluginInstance* Get(PP_Instance instance_id); | 56 static CONTENT_EXPORT PepperPluginInstance* Get(PP_Instance instance_id); |
| 56 | 57 |
| 57 virtual ~PepperPluginInstance() {} | 58 virtual ~PepperPluginInstance() {} |
| 58 | 59 |
| 60 virtual content::RenderFrame* GetRenderFrame() = 0; |
| 61 |
| 59 virtual content::RenderView* GetRenderView() = 0; | 62 virtual content::RenderView* GetRenderView() = 0; |
| 60 | 63 |
| 61 virtual blink::WebPluginContainer* GetContainer() = 0; | 64 virtual blink::WebPluginContainer* GetContainer() = 0; |
| 62 | 65 |
| 63 virtual v8::Isolate* GetIsolate() const = 0; | 66 virtual v8::Isolate* GetIsolate() const = 0; |
| 64 | 67 |
| 65 virtual ppapi::VarTracker* GetVarTracker() = 0; | 68 virtual ppapi::VarTracker* GetVarTracker() = 0; |
| 66 | 69 |
| 67 virtual const GURL& GetPluginURL() = 0; | 70 virtual const GURL& GetPluginURL() = 0; |
| 68 | 71 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 // Sets the text input type for this plugin. | 122 // Sets the text input type for this plugin. |
| 120 virtual void SetTextInputType(ui::TextInputType type) = 0; | 123 virtual void SetTextInputType(ui::TextInputType type) = 0; |
| 121 | 124 |
| 122 // Posts a message to the JavaScript object for this instance. | 125 // Posts a message to the JavaScript object for this instance. |
| 123 virtual void PostMessageToJavaScript(PP_Var message) = 0; | 126 virtual void PostMessageToJavaScript(PP_Var message) = 0; |
| 124 }; | 127 }; |
| 125 | 128 |
| 126 } // namespace content | 129 } // namespace content |
| 127 | 130 |
| 128 #endif // CONTENT_PUBLIC_RENDERER_PEPPER_PLUGIN_INSTANCE_H_ | 131 #endif // CONTENT_PUBLIC_RENDERER_PEPPER_PLUGIN_INSTANCE_H_ |
| OLD | NEW |