Chromium Code Reviews| Index: content/public/renderer/renderer_ppapi_host.h |
| diff --git a/content/public/renderer/renderer_ppapi_host.h b/content/public/renderer/renderer_ppapi_host.h |
| index 88a863fd2d72d6313fdc517d34a223cd0291caf2..8010cfd3549b5e1dea62a1724e289a63d57a5bcc 100644 |
| --- a/content/public/renderer/renderer_ppapi_host.h |
| +++ b/content/public/renderer/renderer_ppapi_host.h |
| @@ -14,6 +14,7 @@ |
| #include "content/common/content_export.h" |
| #include "ipc/ipc_platform_file.h" |
| #include "ppapi/c/pp_instance.h" |
| +#include "url/gurl.h" |
| namespace base { |
| class FilePath; |
| @@ -128,6 +129,13 @@ class RendererPpapiHost { |
| const std::vector<IPC::Message>& nested_msgs, |
| const base::Callback<void(const std::vector<int>&)>& callback) const = 0; |
| + // Gets the URL of the document containing the given PP_Instance. |
| + // Returns an empty URL if the instance is invalid. |
| + // TODO(yzshen): Some methods such as this one don't need to be pure virutal. |
|
Avi (use Gerrit)
2013/11/04 19:59:45
s/virutal/virtual/
yzshen1
2013/11/04 20:04:17
Done.
|
| + // Instead, they could be directly implemented using other methods in this |
| + // interface. Consider changing them to static helpers. |
| + virtual GURL GetDocumentURL(PP_Instance instance) const = 0; |
| + |
| protected: |
| virtual ~RendererPpapiHost() {} |
| }; |