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 message is available. The message should begin with a |
| 164 // UA-specific-error-code (without any ':'), optionally followed by ': ' and |
| 165 // further description of the error. |
| 166 virtual WebString GetErrorMessage() const = 0; |
| 167 |
163 virtual bool DidLoadingProgress() = 0; | 168 virtual bool DidLoadingProgress() = 0; |
164 | 169 |
165 virtual bool HasSingleSecurityOrigin() const = 0; | 170 virtual bool HasSingleSecurityOrigin() const = 0; |
166 virtual bool DidPassCORSAccessCheck() const = 0; | 171 virtual bool DidPassCORSAccessCheck() const = 0; |
167 | 172 |
168 virtual double MediaTimeForTimeValue(double time_value) const = 0; | 173 virtual double MediaTimeForTimeValue(double time_value) const = 0; |
169 | 174 |
170 virtual unsigned DecodedFrameCount() const = 0; | 175 virtual unsigned DecodedFrameCount() const = 0; |
171 virtual unsigned DroppedFrameCount() const = 0; | 176 virtual unsigned DroppedFrameCount() const = 0; |
172 virtual unsigned CorruptedFrameCount() const { return 0; } | 177 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, | 291 virtual bool GetLastUploadedFrameInfo(unsigned* width, |
287 unsigned* height, | 292 unsigned* height, |
288 double* timestamp) { | 293 double* timestamp) { |
289 return false; | 294 return false; |
290 } | 295 } |
291 }; | 296 }; |
292 | 297 |
293 } // namespace blink | 298 } // namespace blink |
294 | 299 |
295 #endif | 300 #endif |
OLD | NEW |