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

Side by Side Diff: webkit/media/android/media_source_delegate.h

Issue 15499006: Enable seek in fullscreen mode for MSE impl on android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 7 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 WEBKIT_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ 5 #ifndef WEBKIT_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_
6 #define WEBKIT_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ 6 #define WEBKIT_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 size_t key_length, 75 size_t key_length,
76 const unsigned char* init_data, 76 const unsigned char* init_data,
77 size_t init_data_length, 77 size_t init_data_length,
78 const WebKit::WebString& session_id); 78 const WebKit::WebString& session_id);
79 WebKit::WebMediaPlayer::MediaKeyException CancelKeyRequest( 79 WebKit::WebMediaPlayer::MediaKeyException CancelKeyRequest(
80 const WebKit::WebString& key_system, 80 const WebKit::WebString& key_system,
81 const WebKit::WebString& session_id); 81 const WebKit::WebString& session_id);
82 82
83 void Seek(base::TimeDelta time); 83 void Seek(base::TimeDelta time);
84 84
85 void CancelPendingSeek();
86
85 // Called when DemuxerStreamPlayer needs to read data from ChunkDemuxer. 87 // Called when DemuxerStreamPlayer needs to read data from ChunkDemuxer.
86 // If it's the first request after the seek, |seek_done| will be true. 88 // If it's the first request after the seek, |seek_done| will be true.
87 void OnReadFromDemuxer(media::DemuxerStream::Type type, bool seek_done); 89 void OnReadFromDemuxer(media::DemuxerStream::Type type, bool seek_done);
88 90
89 // Called by the Destroyer to destroy an instance of this object. 91 // Called by the Destroyer to destroy an instance of this object.
90 void Destroy(); 92 void Destroy();
91 93
92 private: 94 private:
93 // This is private to enforce use of the Destroyer. 95 // This is private to enforce use of the Destroyer.
94 virtual ~MediaSourceDelegate(); 96 virtual ~MediaSourceDelegate();
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 scoped_ptr<media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params> audio_params_; 172 scoped_ptr<media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params> audio_params_;
171 scoped_ptr<media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params> video_params_; 173 scoped_ptr<media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params> video_params_;
172 174
173 bool seeking_; 175 bool seeking_;
174 176
175 DISALLOW_COPY_AND_ASSIGN(MediaSourceDelegate); 177 DISALLOW_COPY_AND_ASSIGN(MediaSourceDelegate);
176 }; 178 };
177 179
178 } // namespace webkit_media 180 } // namespace webkit_media
179 #endif // WEBKIT_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ 181 #endif // WEBKIT_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_
OLDNEW
« no previous file with comments | « media/base/android/media_source_player.cc ('k') | webkit/media/android/media_source_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698