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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 | 49 |
50 virtual WebKit::WebPluginContainer* GetContainer() = 0; | 50 virtual WebKit::WebPluginContainer* GetContainer() = 0; |
51 | 51 |
52 virtual ppapi::VarTracker* GetVarTracker() = 0; | 52 virtual ppapi::VarTracker* GetVarTracker() = 0; |
53 | 53 |
54 virtual const GURL& GetPluginURL() = 0; | 54 virtual const GURL& GetPluginURL() = 0; |
55 | 55 |
56 // Returns the location of this module. | 56 // Returns the location of this module. |
57 virtual base::FilePath GetModulePath() = 0; | 57 virtual base::FilePath GetModulePath() = 0; |
58 | 58 |
59 // Returns a reference to a file with the given path. | |
60 // The returned object will have a refcount of 0 (just like "new"). | |
61 virtual PP_Resource CreateExternalFileReference( | |
62 const base::FilePath& external_file_path) = 0; | |
63 | |
64 // Creates a PPB_ImageData given a Skia image. | 59 // Creates a PPB_ImageData given a Skia image. |
65 virtual PP_Resource CreateImage(gfx::ImageSkia* source_image, | 60 virtual PP_Resource CreateImage(gfx::ImageSkia* source_image, |
66 float scale) = 0; | 61 float scale) = 0; |
67 | 62 |
68 // Switches this instance with one that uses the out of process IPC proxy. | 63 // Switches this instance with one that uses the out of process IPC proxy. |
69 virtual PP_ExternalPluginResult SwitchToOutOfProcessProxy( | 64 virtual PP_ExternalPluginResult SwitchToOutOfProcessProxy( |
70 const base::FilePath& file_path, | 65 const base::FilePath& file_path, |
71 ppapi::PpapiPermissions permissions, | 66 ppapi::PpapiPermissions permissions, |
72 const IPC::ChannelHandle& channel_handle, | 67 const IPC::ChannelHandle& channel_handle, |
73 base::ProcessId plugin_pid, | 68 base::ProcessId plugin_pid, |
(...skipping 12 matching lines...) Expand all Loading... |
86 // true, it will delay it. When called from the plugin, delay_report should | 81 // true, it will delay it. When called from the plugin, delay_report should |
87 // be true to avoid re-entrancy. | 82 // be true to avoid re-entrancy. |
88 virtual void FlashSetFullscreen(bool fullscreen, bool delay_report) = 0; | 83 virtual void FlashSetFullscreen(bool fullscreen, bool delay_report) = 0; |
89 | 84 |
90 virtual bool IsRectTopmost(const gfx::Rect& rect) = 0; | 85 virtual bool IsRectTopmost(const gfx::Rect& rect) = 0; |
91 | 86 |
92 virtual int32_t Navigate(const ppapi::URLRequestInfoData& request, | 87 virtual int32_t Navigate(const ppapi::URLRequestInfoData& request, |
93 const char* target, | 88 const char* target, |
94 bool from_user_action) = 0; | 89 bool from_user_action) = 0; |
95 | 90 |
| 91 // Creates a pending PepperFileRefRendererHost. Returns 0 on failure. |
| 92 virtual int MakePendingFileRefRendererHost(const base::FilePath& path) = 0; |
96 }; | 93 }; |
97 | 94 |
98 } // namespace content | 95 } // namespace content |
99 | 96 |
100 #endif // CONTENT_PUBLIC_RENDERER_PEPPER_PLUGIN_INSTANCE_H_ | 97 #endif // CONTENT_PUBLIC_RENDERER_PEPPER_PLUGIN_INSTANCE_H_ |
OLD | NEW |