Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / content / browser / media / android / media_session_observer.h
blob6316ab6043c446a881f79394302f895a938814a3
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_SESSION_OBSERVER_H_
6 #define CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_SESSION_OBSERVER_H_
8 namespace content {
10 class MediaSessionObserver {
11 public:
12 MediaSessionObserver() = default;
13 virtual ~MediaSessionObserver() = default;
15 // The given |player_id| has been suspended by the MediaSession.
16 virtual void OnSuspend(int player_id) = 0;
18 // The given |player_id| has been resumed by the MediaSession.
19 virtual void OnResume(int player_id) = 0;
22 } // namespace content
24 #endif // CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_SESSION_OBSERVER_H_