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

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

Issue 2416853005: Fixing naming issues in MediaSession (Closed)
Patch Set: addressed nits Created 4 years, 2 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_CONTROLLER_H_ 5 #ifndef CONTENT_BROWSER_MEDIA_SESSION_MEDIA_SESSION_CONTROLLER_H_
6 #define CONTENT_BROWSER_MEDIA_SESSION_MEDIA_SESSION_CONTROLLER_H_ 6 #define CONTENT_BROWSER_MEDIA_SESSION_MEDIA_SESSION_CONTROLLER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "content/browser/media/session/media_session_observer.h" 10 #include "content/browser/media/session/media_session_player_observer.h"
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 #include "content/public/browser/web_contents_observer.h" 12 #include "content/public/browser/web_contents_observer.h"
13 13
14 namespace media { 14 namespace media {
15 enum class MediaContentType; 15 enum class MediaContentType;
16 } // namespace media 16 } // namespace media
17 17
18 namespace content { 18 namespace content {
19 19
20 class MediaSession; 20 class MediaSession;
21 class MediaWebContentsObserver; 21 class MediaWebContentsObserver;
22 22
23 // Helper class for controlling a single player's MediaSession instance. Sends 23 // Helper class for controlling a single player's MediaSession instance. Sends
24 // browser side MediaSession commands back to a player hosted in the renderer 24 // browser side MediaSession commands back to a player hosted in the renderer
25 // process. 25 // process.
26 class CONTENT_EXPORT MediaSessionController : 26 class CONTENT_EXPORT MediaSessionController
27 NON_EXPORTED_BASE(public MediaSessionObserver) { 27 : NON_EXPORTED_BASE(public MediaSessionPlayerObserver) {
28 public: 28 public:
29 MediaSessionController(const WebContentsObserver::MediaPlayerId& id, 29 MediaSessionController(const WebContentsObserver::MediaPlayerId& id,
30 MediaWebContentsObserver* media_web_contents_observer); 30 MediaWebContentsObserver* media_web_contents_observer);
31 ~MediaSessionController() override; 31 ~MediaSessionController() override;
32 32
33 // Clients must call this after construction and destroy the controller if it 33 // Clients must call this after construction and destroy the controller if it
34 // returns false. May be called more than once; does nothing if none of the 34 // returns false. May be called more than once; does nothing if none of the
35 // input parameters have changed since the last call. 35 // input parameters have changed since the last call.
36 // 36 //
37 // Note: Once a session has been initialized with |has_audio| as true, all 37 // Note: Once a session has been initialized with |has_audio| as true, all
(...skipping 27 matching lines...) Expand all
65 65
66 int player_id_ = 0; 66 int player_id_ = 0;
67 bool has_session_ = false; 67 bool has_session_ = false;
68 68
69 DISALLOW_COPY_AND_ASSIGN(MediaSessionController); 69 DISALLOW_COPY_AND_ASSIGN(MediaSessionController);
70 }; 70 };
71 71
72 } // namespace content 72 } // namespace content
73 73
74 #endif // CONTENT_BROWSER_MEDIA_SESSION_MEDIA_SESSION_CONTROLLER_H_ 74 #endif // CONTENT_BROWSER_MEDIA_SESSION_MEDIA_SESSION_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698