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

Unified Diff: chrome/browser/media/desktop_streams_registry.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: chrome/browser/media/desktop_streams_registry.h
diff --git a/chrome/browser/media/desktop_streams_registry.h b/chrome/browser/media/desktop_streams_registry.h
index 90fb3651722c442879baaf395f7d9ae01c49ad60..c497bd62c85a947d4cf376acbaeb481d307948cc 100644
--- a/chrome/browser/media/desktop_streams_registry.h
+++ b/chrome/browser/media/desktop_streams_registry.h
@@ -22,19 +22,21 @@ class DesktopStreamsRegistry {
// Adds new stream to the registry. Called by the implementation of
// desktopCapture.chooseDesktopMedia() API after user has approved access to
// |source| for the |origin|. Returns identifier of the new stream.
+ // |render_frame_id| refers to the RenderFrame requesting the stream.
std::string RegisterStream(int render_process_id,
- int render_view_id,
+ int render_frame_id,
const GURL& origin,
const content::DesktopMediaID& source,
const std::string& extension_name);
// Validates stream identifier specified in getUserMedia(). Returns null
// DesktopMediaID if the specified |id| is invalid, i.e. wasn't generated
- // using RegisterStream() or if it was generated for a different origin.
- // Otherwise returns ID of the source and removes it from the registry.
+ // using RegisterStream() or if it was generated for a different
+ // RenderFrame/origin. Otherwise returns ID of the source and removes it from
+ // the registry.
content::DesktopMediaID RequestMediaForStreamId(const std::string& id,
int render_process_id,
- int render_view_id,
+ int render_frame_id,
const GURL& origin,
std::string* extension_name);
@@ -44,7 +46,7 @@ class DesktopStreamsRegistry {
ApprovedDesktopMediaStream();
int render_process_id;
- int render_view_id;
+ int render_frame_id;
GURL origin;
content::DesktopMediaID source;
std::string extension_name;
« no previous file with comments | « chrome/browser/extensions/api/tab_capture/tab_capture_registry.cc ('k') | chrome/browser/media/desktop_streams_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698