| 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_;
|
|
|