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

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

Issue 1641993003: Pass media session id over IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@possible-next-split
Patch Set: Enumify constant Created 4 years, 9 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 class RendererMediaPlayerManagerInterface { 80 class RendererMediaPlayerManagerInterface {
81 public: 81 public:
82 // Initializes a MediaPlayerAndroid object in browser process. 82 // Initializes a MediaPlayerAndroid object in browser process.
83 virtual void Initialize(MediaPlayerHostMsg_Initialize_Type type, 83 virtual void Initialize(MediaPlayerHostMsg_Initialize_Type type,
84 int player_id, 84 int player_id,
85 const GURL& url, 85 const GURL& url,
86 const GURL& first_party_for_cookies, 86 const GURL& first_party_for_cookies,
87 int demuxer_client_id, 87 int demuxer_client_id,
88 const GURL& frame_url, 88 const GURL& frame_url,
89 bool allow_credentials, 89 bool allow_credentials,
90 int delegate_id) = 0; 90 int delegate_id,
91 int media_session_id) = 0;
91 92
92 // Starts the player. 93 // Starts the player.
93 virtual void Start(int player_id) = 0; 94 virtual void Start(int player_id) = 0;
94 95
95 // Pauses the player. 96 // Pauses the player.
96 // is_media_related_action should be true if this pause is coming from an 97 // is_media_related_action should be true if this pause is coming from an
97 // an action that explicitly pauses the video (user pressing pause, JS, etc.) 98 // an action that explicitly pauses the video (user pressing pause, JS, etc.)
98 // Otherwise it should be false if Pause is being called due to other reasons 99 // Otherwise it should be false if Pause is being called due to other reasons
99 // (cleanup, freeing resources, etc.) 100 // (cleanup, freeing resources, etc.)
100 virtual void Pause(int player_id, bool is_media_related_action) = 0; 101 virtual void Pause(int player_id, bool is_media_related_action) = 0;
(...skipping 20 matching lines...) Expand all
121 virtual void RequestRemotePlaybackControl(int player_id) = 0; 122 virtual void RequestRemotePlaybackControl(int player_id) = 0;
122 123
123 // Registers and unregisters a RendererMediaPlayerInterface object. 124 // Registers and unregisters a RendererMediaPlayerInterface object.
124 virtual int RegisterMediaPlayer(RendererMediaPlayerInterface* player) = 0; 125 virtual int RegisterMediaPlayer(RendererMediaPlayerInterface* player) = 0;
125 virtual void UnregisterMediaPlayer(int player_id) = 0; 126 virtual void UnregisterMediaPlayer(int player_id) = 0;
126 }; 127 };
127 128
128 } // namespace media 129 } // namespace media
129 130
130 #endif // MEDIA_BLINK_RENDERER_MEDIA_PLAYER_INTERFACE_H_ 131 #endif // MEDIA_BLINK_RENDERER_MEDIA_PLAYER_INTERFACE_H_
OLDNEW
« no previous file with comments | « content/renderer/media/android/webmediasession_android.cc ('k') | media/blink/webmediaplayer_cast_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698