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

Unified Diff: media/blink/webmediaplayer_params.h

Issue 1648653002: Carry WebMediaSession in WebMediaPlayerParams (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase; add const to getter 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | media/blink/webmediaplayer_params.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/webmediaplayer_params.h
diff --git a/media/blink/webmediaplayer_params.h b/media/blink/webmediaplayer_params.h
index 3efd40b039a990ee50e6888b3fd2ae23c781e3d9..0c728da483ccd939c5ae606659b583b4564c3cdd 100644
--- a/media/blink/webmediaplayer_params.h
+++ b/media/blink/webmediaplayer_params.h
@@ -21,6 +21,7 @@ class TaskRunner;
namespace blink {
class WebContentDecryptionModule;
class WebMediaPlayerClient;
+class WebMediaSession;
}
namespace media {
@@ -57,7 +58,8 @@ class MEDIA_BLINK_EXPORT WebMediaPlayerParams {
const AdjustAllocatedMemoryCB& adjust_allocated_memory_cb,
MediaPermission* media_permission,
blink::WebContentDecryptionModule* initial_cdm,
- SurfaceManager* surface_manager);
+ SurfaceManager* surface_manager,
+ blink::WebMediaSession* media_session);
~WebMediaPlayerParams();
@@ -99,6 +101,8 @@ class MEDIA_BLINK_EXPORT WebMediaPlayerParams {
SurfaceManager* surface_manager() const { return surface_manager_; }
+ const blink::WebMediaSession* media_session() const { return media_session_; }
+
private:
DeferLoadCB defer_load_cb_;
scoped_refptr<RestartableAudioRendererSink> audio_renderer_sink_;
@@ -114,6 +118,8 @@ class MEDIA_BLINK_EXPORT WebMediaPlayerParams {
blink::WebContentDecryptionModule* initial_cdm_;
SurfaceManager* surface_manager_;
+ blink::WebMediaSession* media_session_;
+
DISALLOW_IMPLICIT_CONSTRUCTORS(WebMediaPlayerParams);
};
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | media/blink/webmediaplayer_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698