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

Unified Diff: content/browser/media/session/media_session_delegate.h

Issue 1996043002: Split MediaContentType and AudioFocusType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed Mounir's comments Created 4 years, 4 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/browser/media/session/media_session_delegate.h
diff --git a/content/browser/media/session/media_session_delegate.h b/content/browser/media/session/media_session_delegate.h
index bc61e043d3166bdb4768c4861ee63fc582524094..f1199fb5ac42fbf1696983442964fe46ca4b53e5 100644
--- a/content/browser/media/session/media_session_delegate.h
+++ b/content/browser/media/session/media_session_delegate.h
@@ -5,8 +5,13 @@
#ifndef CONTENT_BROWSER_MEDIA_SESSION_MEDIA_SESSION_DELEGATE_H_
#define CONTENT_BROWSER_MEDIA_SESSION_MEDIA_SESSION_DELEGATE_H_
+#include "content/browser/media/session/audio_focus_manager.h"
#include "content/browser/media/session/media_session.h"
+namespace media {
+enum class MediaSessionType;
whywhat 2016/08/18 20:33:42 you meant AudioFocusType probably?
Zhiqiang Zhang (Slow) 2016/08/19 15:05:55 Removed.
+}
whywhat 2016/08/18 20:33:42 nit: // namespace media
Zhiqiang Zhang (Slow) 2016/08/19 15:05:55 Removed
+
namespace content {
// MediaSessionDelegate is an interface abstracting audio focus handling for the
@@ -17,10 +22,10 @@ class MediaSessionDelegate {
static std::unique_ptr<MediaSessionDelegate> Create(
MediaSession* media_session);
- virtual bool RequestAudioFocus(MediaSession::Type type) = 0;
+ virtual bool RequestAudioFocus(AudioFocusManager::AudioFocusType type) = 0;
virtual void AbandonAudioFocus() = 0;
};
} // namespace content
-#endif // CONTENT_BROWSER_MEDIA_SESSION_MEDIA_SESSION_DELEGATE_H_
+#endif // CONTENT_BROWSER_MEDIA_SESSION_MEDIA_SESSION_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698