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

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

Issue 1698933004: Make MediaSession a runtime-enabled feature on Desktop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: with flag Created 4 years, 10 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_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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698