OLD | NEW |
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_ANDROID_MEDIA_SESSION_CONTROLLER_H_ | 5 #ifndef CONTENT_BROWSER_MEDIA_SESSION_MEDIA_SESSION_CONTROLLER_H_ |
6 #define CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_SESSION_CONTROLLER_H_ | 6 #define CONTENT_BROWSER_MEDIA_SESSION_MEDIA_SESSION_CONTROLLER_H_ |
7 | 7 |
8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
9 #include "content/browser/media/android/media_session_observer.h" | 9 #include "content/browser/media/session/media_session_observer.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
11 #include "content/public/browser/web_contents_observer.h" | 11 #include "content/public/browser/web_contents_observer.h" |
12 | 12 |
13 namespace content { | 13 namespace content { |
14 | 14 |
15 class MediaSession; | 15 class MediaSession; |
16 class MediaWebContentsObserver; | 16 class MediaWebContentsObserver; |
17 | 17 |
18 // Helper class for controlling a single player's MediaSession instance. Sends | 18 // Helper class for controlling a single player's MediaSession instance. Sends |
19 // browser side MediaSession commands back to a player hosted in the renderer | 19 // browser side MediaSession commands back to a player hosted in the renderer |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 MediaSession* const media_session_; | 59 MediaSession* const media_session_; |
60 | 60 |
61 int player_id_ = 0; | 61 int player_id_ = 0; |
62 bool has_session_ = false; | 62 bool has_session_ = false; |
63 | 63 |
64 DISALLOW_COPY_AND_ASSIGN(MediaSessionController); | 64 DISALLOW_COPY_AND_ASSIGN(MediaSessionController); |
65 }; | 65 }; |
66 | 66 |
67 } // namespace content | 67 } // namespace content |
68 | 68 |
69 #endif // CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_SESSION_CONTROLLER_H_ | 69 #endif // CONTENT_BROWSER_MEDIA_SESSION_MEDIA_SESSION_CONTROLLER_H_ |
OLD | NEW |