OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WEBMEDIAPLAYER_PROXY_H_ | 5 #ifndef WEBKIT_MEDIA_WEBMEDIAPLAYER_PROXY_H_ |
6 #define WEBKIT_MEDIA_WEBMEDIAPLAYER_PROXY_H_ | 6 #define WEBKIT_MEDIA_WEBMEDIAPLAYER_PROXY_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 bool HasSingleOrigin(); | 72 bool HasSingleOrigin(); |
73 bool DidPassCORSAccessCheck() const; | 73 bool DidPassCORSAccessCheck() const; |
74 | 74 |
75 void AbortDataSource(); | 75 void AbortDataSource(); |
76 | 76 |
77 // Methods for Pipeline -> WebMediaPlayerImpl communication. | 77 // Methods for Pipeline -> WebMediaPlayerImpl communication. |
78 void PipelineInitializationCallback(media::PipelineStatus status); | 78 void PipelineInitializationCallback(media::PipelineStatus status); |
79 void PipelineSeekCallback(media::PipelineStatus status); | 79 void PipelineSeekCallback(media::PipelineStatus status); |
80 void PipelineEndedCallback(media::PipelineStatus status); | 80 void PipelineEndedCallback(media::PipelineStatus status); |
81 void PipelineErrorCallback(media::PipelineStatus error); | 81 void PipelineErrorCallback(media::PipelineStatus error); |
| 82 void PipelineReadyStateCallback(media::Pipeline::ReadyState readyState); |
82 | 83 |
83 // ChunkDemuxerClient implementation. | 84 // ChunkDemuxerClient implementation. |
84 virtual void DemuxerOpened(media::ChunkDemuxer* demuxer) OVERRIDE; | 85 virtual void DemuxerOpened(media::ChunkDemuxer* demuxer) OVERRIDE; |
85 virtual void DemuxerClosed() OVERRIDE; | 86 virtual void DemuxerClosed() OVERRIDE; |
86 virtual void DemuxerNeedKey(scoped_array<uint8> init_data, | 87 virtual void DemuxerNeedKey(scoped_array<uint8> init_data, |
87 int init_data_size) OVERRIDE; | 88 int init_data_size) OVERRIDE; |
88 | 89 |
89 // Methods for Demuxer communication. | 90 // Methods for Demuxer communication. |
90 void DemuxerStartWaitingForSeek(); | 91 void DemuxerStartWaitingForSeek(); |
91 void DemuxerCancelPendingSeek(); | 92 void DemuxerCancelPendingSeek(); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 // Notify |webmediaplayer_| that a seek has finished. | 131 // Notify |webmediaplayer_| that a seek has finished. |
131 void PipelineSeekTask(media::PipelineStatus status); | 132 void PipelineSeekTask(media::PipelineStatus status); |
132 | 133 |
133 // Notify |webmediaplayer_| that the media has ended. | 134 // Notify |webmediaplayer_| that the media has ended. |
134 void PipelineEndedTask(media::PipelineStatus status); | 135 void PipelineEndedTask(media::PipelineStatus status); |
135 | 136 |
136 // Notify |webmediaplayer_| that a pipeline error has occurred during | 137 // Notify |webmediaplayer_| that a pipeline error has occurred during |
137 // playback. | 138 // playback. |
138 void PipelineErrorTask(media::PipelineStatus error); | 139 void PipelineErrorTask(media::PipelineStatus error); |
139 | 140 |
| 141 // Notify |webmediaplayer_| of readyState changes. |
| 142 void PipelineReadyStateTask(media::Pipeline::ReadyState readyState); |
| 143 |
140 // Inform |webmediaplayer_| whether the video content is opaque. | 144 // Inform |webmediaplayer_| whether the video content is opaque. |
141 void SetOpaqueTask(bool opaque); | 145 void SetOpaqueTask(bool opaque); |
142 | 146 |
143 void DemuxerOpenedTask(const scoped_refptr<media::ChunkDemuxer>& demuxer); | 147 void DemuxerOpenedTask(const scoped_refptr<media::ChunkDemuxer>& demuxer); |
144 void DemuxerClosedTask(); | 148 void DemuxerClosedTask(); |
145 | 149 |
146 // Notify |webmediaplayer_| that a key has been added. | 150 // Notify |webmediaplayer_| that a key has been added. |
147 void KeyAddedTask(const std::string& key_system, | 151 void KeyAddedTask(const std::string& key_system, |
148 const std::string& session_id); | 152 const std::string& session_id); |
149 | 153 |
(...skipping 28 matching lines...) Expand all Loading... |
178 int outstanding_repaints_; | 182 int outstanding_repaints_; |
179 | 183 |
180 scoped_refptr<media::ChunkDemuxer> chunk_demuxer_; | 184 scoped_refptr<media::ChunkDemuxer> chunk_demuxer_; |
181 | 185 |
182 DISALLOW_IMPLICIT_CONSTRUCTORS(WebMediaPlayerProxy); | 186 DISALLOW_IMPLICIT_CONSTRUCTORS(WebMediaPlayerProxy); |
183 }; | 187 }; |
184 | 188 |
185 } // namespace webkit_media | 189 } // namespace webkit_media |
186 | 190 |
187 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_PROXY_H_ | 191 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_PROXY_H_ |
OLD | NEW |