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

Unified Diff: ash/media_delegate.h

Issue 253183003: Media indicator for background recording task (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win build Created 6 years, 8 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 | « ash/ash_view_ids.h ('k') | ash/resources/ash_resources.grd » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/media_delegate.h
diff --git a/ash/media_delegate.h b/ash/media_delegate.h
index 1dac0592548b8918c6f3ea9be96d7a2a18caa038..4ea9a17a04807993c9bf5b566772e45242d42155 100644
--- a/ash/media_delegate.h
+++ b/ash/media_delegate.h
@@ -5,8 +5,19 @@
#ifndef ASH_MEDIA_DELEGATE_H_
#define ASH_MEDIA_DELEGATE_H_
+namespace content {
+class BrowserContext;
+}
+
namespace ash {
+enum MediaCaptureState {
+ MEDIA_CAPTURE_NONE = 0,
+ MEDIA_CAPTURE_AUDIO = 1 << 0,
+ MEDIA_CAPTURE_VIDEO = 1 << 1,
+ MEDIA_CAPTURE_AUDIO_VIDEO = MEDIA_CAPTURE_AUDIO | MEDIA_CAPTURE_VIDEO,
+};
+
// A delegate class to control media playback.
class MediaDelegate {
public:
@@ -20,6 +31,11 @@ class MediaDelegate {
// Handles the Previous Track Media shortcut key.
virtual void HandleMediaPrevTrack() = 0;
+
+ // Returns the current media recording state of web contents
+ // that belongs to the |context|.
+ virtual MediaCaptureState GetMediaCaptureState(
+ content::BrowserContext* context) = 0;
};
} // namespace ash
« no previous file with comments | « ash/ash_view_ids.h ('k') | ash/resources/ash_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698