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

Unified Diff: chrome/browser/media/media_stream_capture_indicator.h

Issue 13355003: Minor cleanups in MediaStreamCaptureIndicator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/media/media_stream_capture_indicator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/media_stream_capture_indicator.h
diff --git a/chrome/browser/media/media_stream_capture_indicator.h b/chrome/browser/media/media_stream_capture_indicator.h
index 9acf9775cf895ff8b23315b6bb466b86e8e962bd..e493f6f048a55c33e8a44b92b15777945110349e 100644
--- a/chrome/browser/media/media_stream_capture_indicator.h
+++ b/chrome/browser/media/media_stream_capture_indicator.h
@@ -54,13 +54,13 @@ class MediaStreamCaptureIndicator
int render_view_id,
const content::MediaStreamDevices& devices);
- // Returns true if the render view is capturing user media (e.g., webcam
- // or microphone input).
- bool IsCapturingUserMedia(int render_process_id, int render_view_id) const;
+ // Returns true if the |web_contents| is capturing user media (e.g., webcam or
+ // microphone input).
+ bool IsCapturingUserMedia(content::WebContents* web_contents) const;
- // Returns true if the render view itself is being mirrored (e.g., a source of
- // media for remote broadcast).
- bool IsBeingMirrored(int render_process_id, int render_view_id) const;
+ // Returns true if the |web_contents| itself is being mirrored (e.g., a source
+ // of media for remote broadcast).
+ bool IsBeingMirrored(content::WebContents* web_contents) const;
private:
class WebContentsDeviceUsage;
@@ -68,15 +68,6 @@ class MediaStreamCaptureIndicator
friend class base::RefCountedThreadSafe<MediaStreamCaptureIndicator>;
virtual ~MediaStreamCaptureIndicator();
- // Called by the public functions, executed on UI thread.
- void DoDevicesOpenedOnUIThread(int render_process_id,
- int render_view_id,
- const content::MediaStreamDevices& devices,
- const base::Closure& close_callback);
- void DoDevicesClosedOnUIThread(int render_process_id,
- int render_view_id,
- const content::MediaStreamDevices& devices);
-
// Following functions/variables are executed/accessed only on UI thread.
// Creates and shows the status tray icon if it has not been created and is
« no previous file with comments | « no previous file | chrome/browser/media/media_stream_capture_indicator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698