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

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

Issue 364123002: [Cross-Site Isolation] Migrate entire MediaStream verticals to be per-RenderFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: It's random enough. + REBASE Created 6 years, 5 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.h
diff --git a/content/renderer/pepper/pepper_platform_video_capture.h b/content/renderer/pepper/pepper_platform_video_capture.h
index e31b8c7d6a9b21a36c80502d788dcf074a15ae80..2412f492bd6290815f51426a7cc8c568502e548a 100644
--- a/content/renderer/pepper/pepper_platform_video_capture.h
+++ b/content/renderer/pepper/pepper_platform_video_capture.h
@@ -22,12 +22,11 @@ class GURL;
namespace content {
class PepperMediaDeviceManager;
class PepperVideoCaptureHost;
-class RenderViewImpl;
// This object must only be used on the thread it's constructed on.
class PepperPlatformVideoCapture {
public:
- PepperPlatformVideoCapture(const base::WeakPtr<RenderViewImpl>& render_view,
+ PepperPlatformVideoCapture(int render_frame_id,
const std::string& device_id,
const GURL& document_url,
PepperVideoCaptureHost* handler);
@@ -46,11 +45,13 @@ class PepperPlatformVideoCapture {
const media::VideoCaptureFormat& format,
const base::TimeTicks& estimated_capture_time);
+ // Can return NULL if the RenderFrame referenced by |render_frame_id_| has
+ // gone away.
PepperMediaDeviceManager* GetMediaDeviceManager();
- base::WeakPtr<RenderViewImpl> render_view_;
+ const int render_frame_id_;
+ const std::string device_id_;
- std::string device_id_;
std::string label_;
int session_id_;
base::Closure release_device_cb_;
« no previous file with comments | « content/renderer/pepper/pepper_platform_audio_input.cc ('k') | content/renderer/pepper/pepper_platform_video_capture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698