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

Side by Side Diff: content/browser/media/session/media_session_observer.h

Issue 1698933004: Make MediaSession a runtime-enabled feature on Desktop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_ANDROID_MEDIA_SESSION_OBSERVER_H_ 5 #ifndef CONTENT_BROWSER_MEDIA_SESSION_MEDIA_SESSION_OBSERVER_H_
6 #define CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_SESSION_OBSERVER_H_ 6 #define CONTENT_BROWSER_MEDIA_SESSION_MEDIA_SESSION_OBSERVER_H_
7 7
8 namespace content { 8 namespace content {
9 9
10 class MediaSessionObserver { 10 class MediaSessionObserver {
11 public: 11 public:
12 MediaSessionObserver() = default; 12 MediaSessionObserver() = default;
13 virtual ~MediaSessionObserver() = default; 13 virtual ~MediaSessionObserver() = default;
14 14
15 // The given |player_id| has been suspended by the MediaSession. 15 // The given |player_id| has been suspended by the MediaSession.
16 virtual void OnSuspend(int player_id) = 0; 16 virtual void OnSuspend(int player_id) = 0;
17 17
18 // The given |player_id| has been resumed by the MediaSession. 18 // The given |player_id| has been resumed by the MediaSession.
19 virtual void OnResume(int player_id) = 0; 19 virtual void OnResume(int player_id) = 0;
20 20
21 // The given |player_id| has been set a new volume multiplier by 21 // The given |player_id| has been set a new volume multiplier by
22 // the MediaSession. 22 // the MediaSession.
23 virtual void OnSetVolumeMultiplier(int player_id, 23 virtual void OnSetVolumeMultiplier(int player_id,
24 double volume_multiplier) = 0; 24 double volume_multiplier) = 0;
25 }; 25 };
26 26
27 } // namespace content 27 } // namespace content
28 28
29 #endif // CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_SESSION_OBSERVER_H_ 29 #endif // CONTENT_BROWSER_MEDIA_SESSION_MEDIA_SESSION_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698