OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 // Getters of playback state. | 152 // Getters of playback state. |
153 virtual bool Paused() const = 0; | 153 virtual bool Paused() const = 0; |
154 virtual bool Seeking() const = 0; | 154 virtual bool Seeking() const = 0; |
155 virtual double Duration() const = 0; | 155 virtual double Duration() const = 0; |
156 virtual double CurrentTime() const = 0; | 156 virtual double CurrentTime() const = 0; |
157 | 157 |
158 // Internal states of loading and network. | 158 // Internal states of loading and network. |
159 virtual NetworkState GetNetworkState() const = 0; | 159 virtual NetworkState GetNetworkState() const = 0; |
160 virtual ReadyState GetReadyState() const = 0; | 160 virtual ReadyState GetReadyState() const = 0; |
161 | 161 |
162 virtual WebString GetErrorMessage() = 0; | 162 // Returns an implementation-specific human readable error message, or an |
| 163 // empty string if no error detail is available. |
| 164 virtual WebString GetErrorMessage() const = 0; |
| 165 |
163 virtual bool DidLoadingProgress() = 0; | 166 virtual bool DidLoadingProgress() = 0; |
164 | 167 |
165 virtual bool HasSingleSecurityOrigin() const = 0; | 168 virtual bool HasSingleSecurityOrigin() const = 0; |
166 virtual bool DidPassCORSAccessCheck() const = 0; | 169 virtual bool DidPassCORSAccessCheck() const = 0; |
167 | 170 |
168 virtual double MediaTimeForTimeValue(double time_value) const = 0; | 171 virtual double MediaTimeForTimeValue(double time_value) const = 0; |
169 | 172 |
170 virtual unsigned DecodedFrameCount() const = 0; | 173 virtual unsigned DecodedFrameCount() const = 0; |
171 virtual unsigned DroppedFrameCount() const = 0; | 174 virtual unsigned DroppedFrameCount() const = 0; |
172 virtual unsigned CorruptedFrameCount() const { return 0; } | 175 virtual unsigned CorruptedFrameCount() const { return 0; } |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 virtual bool GetLastUploadedFrameInfo(unsigned* width, | 289 virtual bool GetLastUploadedFrameInfo(unsigned* width, |
287 unsigned* height, | 290 unsigned* height, |
288 double* timestamp) { | 291 double* timestamp) { |
289 return false; | 292 return false; |
290 } | 293 } |
291 }; | 294 }; |
292 | 295 |
293 } // namespace blink | 296 } // namespace blink |
294 | 297 |
295 #endif | 298 #endif |
OLD | NEW |