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

Side by Side Diff: media/base/android/media_player_android.h

Issue 16098014: Handle config changes for MSE on android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: change unsigned to uint32 Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_BASE_ANDROID_MEDIA_PLAYER_ANDROID_H_ 5 #ifndef MEDIA_BASE_ANDROID_MEDIA_PLAYER_ANDROID_H_
6 #define MEDIA_BASE_ANDROID_MEDIA_PLAYER_ANDROID_H_ 6 #define MEDIA_BASE_ANDROID_MEDIA_PLAYER_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 // Methods for DeumxerStreamPlayer. 88 // Methods for DeumxerStreamPlayer.
89 // Informs DemuxerStreamPlayer that the demuxer is ready. 89 // Informs DemuxerStreamPlayer that the demuxer is ready.
90 virtual void DemuxerReady( 90 virtual void DemuxerReady(
91 const MediaPlayerHostMsg_DemuxerReady_Params& params); 91 const MediaPlayerHostMsg_DemuxerReady_Params& params);
92 // Called when the requested data is received from the demuxer. 92 // Called when the requested data is received from the demuxer.
93 virtual void ReadFromDemuxerAck( 93 virtual void ReadFromDemuxerAck(
94 const MediaPlayerHostMsg_ReadFromDemuxerAck_Params& params); 94 const MediaPlayerHostMsg_ReadFromDemuxerAck_Params& params);
95 95
96 // Called when a seek request is acked by the render process. 96 // Called when a seek request is acked by the render process.
97 virtual void OnSeekRequestAck(); 97 virtual void OnSeekRequestAck(unsigned seek_request_id);
98 98
99 int player_id() { return player_id_; } 99 int player_id() { return player_id_; }
100 100
101 protected: 101 protected:
102 MediaPlayerAndroid(int player_id, 102 MediaPlayerAndroid(int player_id,
103 MediaPlayerManager* manager); 103 MediaPlayerManager* manager);
104 104
105 // Called when player status changes. 105 // Called when player status changes.
106 virtual void OnMediaError(int error_type); 106 virtual void OnMediaError(int error_type);
107 virtual void OnVideoSizeChanged(int width, int height); 107 virtual void OnVideoSizeChanged(int width, int height);
(...skipping 17 matching lines...) Expand all
125 125
126 // Resource manager for all the media players. 126 // Resource manager for all the media players.
127 MediaPlayerManager* manager_; 127 MediaPlayerManager* manager_;
128 128
129 DISALLOW_COPY_AND_ASSIGN(MediaPlayerAndroid); 129 DISALLOW_COPY_AND_ASSIGN(MediaPlayerAndroid);
130 }; 130 };
131 131
132 } // namespace media 132 } // namespace media
133 133
134 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_ANDROID_H_ 134 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698