summaryrefslogtreecommitdiffstats
path: root/ash/media_delegate.h
diff options
context:
space:
mode:
Diffstat (limited to 'ash/media_delegate.h')
-rw-r--r--ash/media_delegate.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/ash/media_delegate.h b/ash/media_delegate.h
index 1dac059..4ea9a17 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