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

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

Issue 2464163004: [RemotePlayback] Implement 'connecting' state (Closed)
Patch Set: Rebased Created 4 years, 1 month 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // Called to update the current time. 42 // Called to update the current time.
43 virtual void OnTimeUpdate(base::TimeDelta current_timestamp, 43 virtual void OnTimeUpdate(base::TimeDelta current_timestamp,
44 base::TimeTicks current_time_ticks) = 0; 44 base::TimeTicks current_time_ticks) = 0;
45 45
46 virtual void OnPlayerReleased() = 0; 46 virtual void OnPlayerReleased() = 0;
47 47
48 // Functions called when media player status changes. 48 // Functions called when media player status changes.
49 virtual void OnConnectedToRemoteDevice( 49 virtual void OnConnectedToRemoteDevice(
50 const std::string& remote_playback_message) = 0; 50 const std::string& remote_playback_message) = 0;
51 virtual void OnDisconnectedFromRemoteDevice() = 0; 51 virtual void OnDisconnectedFromRemoteDevice() = 0;
52 virtual void OnRemotePlaybackStarted() = 0;
52 virtual void OnCancelledRemotePlaybackRequest() = 0; 53 virtual void OnCancelledRemotePlaybackRequest() = 0;
53 virtual void OnDidExitFullscreen() = 0; 54 virtual void OnDidExitFullscreen() = 0;
54 virtual void OnMediaPlayerPlay() = 0; 55 virtual void OnMediaPlayerPlay() = 0;
55 virtual void OnMediaPlayerPause() = 0; 56 virtual void OnMediaPlayerPause() = 0;
56 virtual void OnRemoteRouteAvailabilityChanged(bool routes_available) = 0; 57 virtual void OnRemoteRouteAvailabilityChanged(bool routes_available) = 0;
57 58
58 // Getters of playback state. 59 // Getters of playback state.
59 virtual bool paused() const = 0; 60 virtual bool paused() const = 0;
60 61
61 // True if the loaded media has a playable video track. 62 // True if the loaded media has a playable video track.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 virtual void RequestRemotePlaybackStop(int player_id) = 0; 114 virtual void RequestRemotePlaybackStop(int player_id) = 0;
114 115
115 // Registers and unregisters a RendererMediaPlayerInterface object. 116 // Registers and unregisters a RendererMediaPlayerInterface object.
116 virtual int RegisterMediaPlayer(RendererMediaPlayerInterface* player) = 0; 117 virtual int RegisterMediaPlayer(RendererMediaPlayerInterface* player) = 0;
117 virtual void UnregisterMediaPlayer(int player_id) = 0; 118 virtual void UnregisterMediaPlayer(int player_id) = 0;
118 }; 119 };
119 120
120 } // namespace media 121 } // namespace media
121 122
122 #endif // MEDIA_BLINK_RENDERER_MEDIA_PLAYER_INTERFACE_H_ 123 #endif // MEDIA_BLINK_RENDERER_MEDIA_PLAYER_INTERFACE_H_
OLDNEW
« no previous file with comments | « content/renderer/media/webmediaplayer_ms_unittest.cc ('k') | media/blink/webmediaplayer_cast_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698