Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1772)

Unified Diff: content/public/renderer/renderer_ppapi_host.h

Issue 48743008: Pepper: specify the security origin when enumerating media devices. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/renderer/pepper/host_dispatcher_wrapper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..9c5998c29e180cff1028bffc92976f1d6c541887 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,10 @@ 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.
+ virtual GURL GetDocumentURL(PP_Instance instance) const = 0;
bbudge 2013/10/31 00:31:42 Can't you detect if the instance is valid using Ge
yzshen1 2013/10/31 00:52:03 I think this is a pure interface, we don't provide
bbudge 2013/10/31 01:10:02 It looks like a "convenience method" so I think it
yzshen1 2013/11/01 17:00:00 There are a few other methods in this interface ar
+
protected:
virtual ~RendererPpapiHost() {}
};
« no previous file with comments | « no previous file | content/renderer/pepper/host_dispatcher_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698