OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RENDERER_PPAPI_HOST_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDERER_PPAPI_HOST_H_ |
6 #define CONTENT_PUBLIC_RENDERER_RENDERER_PPAPI_HOST_H_ | 6 #define CONTENT_PUBLIC_RENDERER_RENDERER_PPAPI_HOST_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/platform_file.h" | 9 #include "base/platform_file.h" |
10 #include "base/process.h" | 10 #include "base/process.h" |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
112 // routing ID of the fullscreen widget. Returns 0 on failure. | 112 // routing ID of the fullscreen widget. Returns 0 on failure. |
113 virtual int GetRoutingIDForWidget(PP_Instance instance) const = 0; | 113 virtual int GetRoutingIDForWidget(PP_Instance instance) const = 0; |
114 | 114 |
115 // Converts the given plugin coordinate to the containing RenderView. This | 115 // Converts the given plugin coordinate to the containing RenderView. This |
116 // will take into account the current Flash fullscreen state so will use | 116 // will take into account the current Flash fullscreen state so will use |
117 // the fullscreen widget if it's displayed. | 117 // the fullscreen widget if it's displayed. |
118 virtual gfx::Point PluginPointToRenderView( | 118 virtual gfx::Point PluginPointToRenderView( |
119 PP_Instance instance, | 119 PP_Instance instance, |
120 const gfx::Point& pt) const = 0; | 120 const gfx::Point& pt) const = 0; |
121 | 121 |
122 // Returns the url of current document. | |
123 virtual GURL GetDocumentURLForInstance(PP_Instance instance) const = 0; | |
jam
2013/05/07 16:27:20
this doesn't seem necessary?
i.e. the embedder can
victorhsieh
2013/05/07 17:51:31
Done.
| |
124 | |
122 // Shares a file handle (HANDLE / file descriptor) with the remote side. It | 125 // Shares a file handle (HANDLE / file descriptor) with the remote side. It |
123 // returns a handle that should be sent in exactly one IPC message. Upon | 126 // returns a handle that should be sent in exactly one IPC message. Upon |
124 // receipt, the remote side then owns that handle. Note: if sending the | 127 // receipt, the remote side then owns that handle. Note: if sending the |
125 // message fails, the returned handle is properly closed by the IPC system. If | 128 // message fails, the returned handle is properly closed by the IPC system. If |
126 // |should_close_source| is set to true, the original handle is closed by this | 129 // |should_close_source| is set to true, the original handle is closed by this |
127 // operation and should not be used again. | 130 // operation and should not be used again. |
128 virtual IPC::PlatformFileForTransit ShareHandleWithRemote( | 131 virtual IPC::PlatformFileForTransit ShareHandleWithRemote( |
129 base::PlatformFile handle, | 132 base::PlatformFile handle, |
130 bool should_close_source) = 0; | 133 bool should_close_source) = 0; |
131 | 134 |
132 // Returns true if the plugin is running in process. | 135 // Returns true if the plugin is running in process. |
133 virtual bool IsRunningInProcess() const = 0; | 136 virtual bool IsRunningInProcess() const = 0; |
134 | 137 |
135 protected: | 138 protected: |
136 virtual ~RendererPpapiHost() {} | 139 virtual ~RendererPpapiHost() {} |
137 }; | 140 }; |
138 | 141 |
139 } // namespace content | 142 } // namespace content |
140 | 143 |
141 #endif // CONTENT_PUBLIC_RENDERER_RENDERER_PPAPI_HOST_H_ | 144 #endif // CONTENT_PUBLIC_RENDERER_RENDERER_PPAPI_HOST_H_ |
OLD | NEW |