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

Unified Diff: content/renderer/pepper/pepper_platform_video_capture.cc

Issue 2882133002: Block insecure pepper media requests in the renderer (Closed)
Patch Set: Block insecure pepper media requests Created 3 years, 7 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
Index: content/renderer/pepper/pepper_platform_video_capture.cc
diff --git a/content/renderer/pepper/pepper_platform_video_capture.cc b/content/renderer/pepper/pepper_platform_video_capture.cc
index 8abc4ac9e444e4a48594a59e08eea9fbf564bc75..e3fae3824d9d941185eba87c092791d278d0e4bd 100644
--- a/content/renderer/pepper/pepper_platform_video_capture.cc
+++ b/content/renderer/pepper/pepper_platform_video_capture.cc
@@ -14,14 +14,12 @@
#include "content/renderer/render_thread_impl.h"
#include "media/base/bind_to_current_loop.h"
#include "media/base/video_frame.h"
-#include "url/gurl.h"
namespace content {
PepperPlatformVideoCapture::PepperPlatformVideoCapture(
int render_frame_id,
const std::string& device_id,
- const GURL& document_url,
PepperVideoCaptureHost* handler)
: render_frame_id_(render_frame_id),
device_id_(device_id),
@@ -35,9 +33,7 @@ PepperPlatformVideoCapture::PepperPlatformVideoCapture(
PepperMediaDeviceManager* const device_manager = GetMediaDeviceManager();
if (device_manager) {
pending_open_device_id_ = device_manager->OpenDevice(
- PP_DEVICETYPE_DEV_VIDEOCAPTURE,
- device_id,
- document_url,
+ PP_DEVICETYPE_DEV_VIDEOCAPTURE, device_id, handler->pp_instance(),
base::Bind(&PepperPlatformVideoCapture::OnDeviceOpened,
weak_factory_.GetWeakPtr()));
pending_open_device_ = true;
« no previous file with comments | « content/renderer/pepper/pepper_platform_video_capture.h ('k') | content/renderer/pepper/pepper_video_capture_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698