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

Unified Diff: content/renderer/pepper/pepper_device_enumeration_host_helper.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, 1 month 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
Index: content/renderer/pepper/pepper_device_enumeration_host_helper.h
diff --git a/content/renderer/pepper/pepper_device_enumeration_host_helper.h b/content/renderer/pepper/pepper_device_enumeration_host_helper.h
index 5773845561bb6f3b2cf550e07adfc08814ca555f..ff73b5f95ce88a60baa525ab416cda59912adc4a 100644
--- a/content/renderer/pepper/pepper_device_enumeration_host_helper.h
+++ b/content/renderer/pepper/pepper_device_enumeration_host_helper.h
@@ -12,6 +12,7 @@
#include "base/memory/scoped_ptr.h"
#include "content/common/content_export.h"
#include "ppapi/c/dev/ppb_device_ref_dev.h"
+#include "url/gurl.h"
namespace ppapi {
struct DeviceRefData;
@@ -49,6 +50,7 @@ class CONTENT_EXPORT PepperDeviceEnumerationHostHelper {
// Enumerates devices of the specified type. The request ID passed into the
// callback will be the same as the return value.
virtual int EnumerateDevices(PP_DeviceType_Dev type,
+ const GURL& document_url,
const EnumerateDevicesCallback& callback) = 0;
// Stop enumerating devices of the specified |request_id|. The |request_id|
// is the return value of EnumerateDevicesCallback.
@@ -58,7 +60,8 @@ class CONTENT_EXPORT PepperDeviceEnumerationHostHelper {
// |resource_host| and |delegate| must outlive this object.
PepperDeviceEnumerationHostHelper(ppapi::host::ResourceHost* resource_host,
Delegate* delegate,
- PP_DeviceType_Dev device_type);
+ PP_DeviceType_Dev device_type,
+ const GURL& document_url);
~PepperDeviceEnumerationHostHelper();
// Returns true if the message has been handled.
@@ -97,6 +100,7 @@ class CONTENT_EXPORT PepperDeviceEnumerationHostHelper {
Delegate* delegate_;
PP_DeviceType_Dev device_type_;
+ GURL document_url_;
scoped_ptr<ScopedRequest> enumerate_;
scoped_ptr<ScopedRequest> monitor_;
« no previous file with comments | « content/renderer/pepper/pepper_audio_input_host.cc ('k') | content/renderer/pepper/pepper_device_enumeration_host_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698