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

Side by Side 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: fixed desktop build & tests Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_MEDIA_SESSION_MEDIA_SESSION_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_MEDIA_SESSION_MEDIA_SESSION_DELEGATE_H_
6 #define CONTENT_BROWSER_MEDIA_SESSION_MEDIA_SESSION_DELEGATE_H_ 6 #define CONTENT_BROWSER_MEDIA_SESSION_MEDIA_SESSION_DELEGATE_H_
7 7
8 #include "content/browser/media/session/media_session.h" 8 #include "content/browser/media/session/media_session.h"
9 9
10 namespace media {
11 enum class MediaSessionType;
12 }
13
10 namespace content { 14 namespace content {
11 15
12 // MediaSessionDelegate is an interface abstracting audio focus handling for the 16 // MediaSessionDelegate is an interface abstracting audio focus handling for the
13 // MediaSession class. 17 // MediaSession class.
14 class MediaSessionDelegate { 18 class MediaSessionDelegate {
15 public: 19 public:
16 // Factory method returning an implementation of MediaSessionDelegate. 20 // Factory method returning an implementation of MediaSessionDelegate.
17 static std::unique_ptr<MediaSessionDelegate> Create( 21 static std::unique_ptr<MediaSessionDelegate> Create(
18 MediaSession* media_session); 22 MediaSession* media_session);
19 23
20 virtual bool RequestAudioFocus(MediaSession::Type type) = 0; 24 virtual bool RequestAudioFocus(MediaSession::AudioFocusType type) = 0;
21 virtual void AbandonAudioFocus() = 0; 25 virtual void AbandonAudioFocus() = 0;
22 }; 26 };
23 27
24 } // namespace content 28 } // namespace content
25 29
26 #endif // CONTENT_BROWSER_MEDIA_SESSION_MEDIA_SESSION_DELEGATE_H_ 30 #endif // CONTENT_BROWSER_MEDIA_SESSION_MEDIA_SESSION_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698