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

Side by Side Diff: media/blink/renderer_media_player_interface.h

Issue 2338223003: Unassociating MediaSession from media players (in blink & content) (Closed)
Patch Set: fixed tests 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 MEDIA_BLINK_RENDERER_MEDIA_PLAYER_INTERFACE_H_ 5 #ifndef MEDIA_BLINK_RENDERER_MEDIA_PLAYER_INTERFACE_H_
6 #define MEDIA_BLINK_RENDERER_MEDIA_PLAYER_INTERFACE_H_ 6 #define MEDIA_BLINK_RENDERER_MEDIA_PLAYER_INTERFACE_H_
7 7
8 // This file contains interfaces modeled after classes in 8 // This file contains interfaces modeled after classes in
9 // content/renderer/media/android for the purposes of letting clases in 9 // content/renderer/media/android for the purposes of letting clases in
10 // this directory implement and/or interact with those classes. 10 // this directory implement and/or interact with those classes.
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 class RendererMediaPlayerManagerInterface { 72 class RendererMediaPlayerManagerInterface {
73 public: 73 public:
74 // Initializes a MediaPlayerAndroid object in browser process. 74 // Initializes a MediaPlayerAndroid object in browser process.
75 virtual void Initialize(MediaPlayerHostMsg_Initialize_Type type, 75 virtual void Initialize(MediaPlayerHostMsg_Initialize_Type type,
76 int player_id, 76 int player_id,
77 const GURL& url, 77 const GURL& url,
78 const GURL& first_party_for_cookies, 78 const GURL& first_party_for_cookies,
79 int demuxer_client_id, 79 int demuxer_client_id,
80 const GURL& frame_url, 80 const GURL& frame_url,
81 bool allow_credentials, 81 bool allow_credentials,
82 int delegate_id, 82 int delegate_id) = 0;
83 int media_session_id) = 0;
84 83
85 // Starts the player. 84 // Starts the player.
86 virtual void Start(int player_id) = 0; 85 virtual void Start(int player_id) = 0;
87 86
88 // Pauses the player. 87 // Pauses the player.
89 // is_media_related_action should be true if this pause is coming from an 88 // is_media_related_action should be true if this pause is coming from an
90 // an action that explicitly pauses the video (user pressing pause, JS, etc.) 89 // an action that explicitly pauses the video (user pressing pause, JS, etc.)
91 // Otherwise it should be false if Pause is being called due to other reasons 90 // Otherwise it should be false if Pause is being called due to other reasons
92 // (cleanup, freeing resources, etc.) 91 // (cleanup, freeing resources, etc.)
93 virtual void Pause(int player_id, bool is_media_related_action) = 0; 92 virtual void Pause(int player_id, bool is_media_related_action) = 0;
(...skipping 20 matching lines...) Expand all
114 virtual void RequestRemotePlaybackControl(int player_id) = 0; 113 virtual void RequestRemotePlaybackControl(int player_id) = 0;
115 114
116 // Registers and unregisters a RendererMediaPlayerInterface object. 115 // Registers and unregisters a RendererMediaPlayerInterface object.
117 virtual int RegisterMediaPlayer(RendererMediaPlayerInterface* player) = 0; 116 virtual int RegisterMediaPlayer(RendererMediaPlayerInterface* player) = 0;
118 virtual void UnregisterMediaPlayer(int player_id) = 0; 117 virtual void UnregisterMediaPlayer(int player_id) = 0;
119 }; 118 };
120 119
121 } // namespace media 120 } // namespace media
122 121
123 #endif // MEDIA_BLINK_RENDERER_MEDIA_PLAYER_INTERFACE_H_ 122 #endif // MEDIA_BLINK_RENDERER_MEDIA_PLAYER_INTERFACE_H_
OLDNEW
« no previous file with comments | « media/base/android/media_source_player_unittest.cc ('k') | media/blink/webmediaplayer_cast_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698