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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/process/process_handle.h" | 9 #include "base/process/process_handle.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 } | 29 } |
30 | 30 |
31 namespace IPC { | 31 namespace IPC { |
32 struct ChannelHandle; | 32 struct ChannelHandle; |
33 } | 33 } |
34 | 34 |
35 namespace WebKit { | 35 namespace WebKit { |
36 class WebPluginContainer; | 36 class WebPluginContainer; |
37 } | 37 } |
38 | 38 |
| 39 namespace v8 { |
| 40 class Isolate; |
| 41 } |
| 42 |
39 namespace content { | 43 namespace content { |
40 class RenderView; | 44 class RenderView; |
41 | 45 |
42 class PepperPluginInstance { | 46 class PepperPluginInstance { |
43 public: | 47 public: |
44 static CONTENT_EXPORT PepperPluginInstance* Get(PP_Instance instance_id); | 48 static CONTENT_EXPORT PepperPluginInstance* Get(PP_Instance instance_id); |
45 | 49 |
46 virtual ~PepperPluginInstance() {} | 50 virtual ~PepperPluginInstance() {} |
47 | 51 |
48 virtual content::RenderView* GetRenderView() = 0; | 52 virtual content::RenderView* GetRenderView() = 0; |
49 | 53 |
50 virtual WebKit::WebPluginContainer* GetContainer() = 0; | 54 virtual WebKit::WebPluginContainer* GetContainer() = 0; |
51 | 55 |
| 56 virtual v8::Isolate* GetIsolate() const = 0; |
| 57 |
52 virtual ppapi::VarTracker* GetVarTracker() = 0; | 58 virtual ppapi::VarTracker* GetVarTracker() = 0; |
53 | 59 |
54 virtual const GURL& GetPluginURL() = 0; | 60 virtual const GURL& GetPluginURL() = 0; |
55 | 61 |
56 // Returns the location of this module. | 62 // Returns the location of this module. |
57 virtual base::FilePath GetModulePath() = 0; | 63 virtual base::FilePath GetModulePath() = 0; |
58 | 64 |
59 // Creates a PPB_ImageData given a Skia image. | 65 // Creates a PPB_ImageData given a Skia image. |
60 virtual PP_Resource CreateImage(gfx::ImageSkia* source_image, | 66 virtual PP_Resource CreateImage(gfx::ImageSkia* source_image, |
61 float scale) = 0; | 67 float scale) = 0; |
(...skipping 29 matching lines...) Expand all Loading... |
91 const char* target, | 97 const char* target, |
92 bool from_user_action) = 0; | 98 bool from_user_action) = 0; |
93 | 99 |
94 // Creates a pending PepperFileRefRendererHost. Returns 0 on failure. | 100 // Creates a pending PepperFileRefRendererHost. Returns 0 on failure. |
95 virtual int MakePendingFileRefRendererHost(const base::FilePath& path) = 0; | 101 virtual int MakePendingFileRefRendererHost(const base::FilePath& path) = 0; |
96 }; | 102 }; |
97 | 103 |
98 } // namespace content | 104 } // namespace content |
99 | 105 |
100 #endif // CONTENT_PUBLIC_RENDERER_PEPPER_PLUGIN_INSTANCE_H_ | 106 #endif // CONTENT_PUBLIC_RENDERER_PEPPER_PLUGIN_INSTANCE_H_ |
OLD | NEW |