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

Side by Side Diff: third_party/WebKit/public/platform/WebMediaPlayer.h

Issue 2660003003: Add MediaError.message (Closed)
Patch Set: --flakiness by using std::map, update virtual/stable/[win,mac] global interface listing too Created 3 years, 8 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
OLDNEW
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 22 matching lines...) Expand all
33 33
34 #include "WebCallbacks.h" 34 #include "WebCallbacks.h"
35 #include "WebCanvas.h" 35 #include "WebCanvas.h"
36 #include "WebContentDecryptionModule.h" 36 #include "WebContentDecryptionModule.h"
37 #include "WebMediaSource.h" 37 #include "WebMediaSource.h"
38 #include "WebSetSinkIdCallbacks.h" 38 #include "WebSetSinkIdCallbacks.h"
39 #include "WebString.h" 39 #include "WebString.h"
40 40
41 #include "cc/paint/paint_flags.h" 41 #include "cc/paint/paint_flags.h"
42 42
43 #include <map>
44 #include <vector>
45
43 namespace gpu { 46 namespace gpu {
44 namespace gles2 { 47 namespace gles2 {
45 class GLES2Interface; 48 class GLES2Interface;
46 } 49 }
47 } 50 }
48 51
49 namespace blink { 52 namespace blink {
50 53
51 class WebAudioSourceProvider; 54 class WebAudioSourceProvider;
52 class WebContentDecryptionModule; 55 class WebContentDecryptionModule;
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 // Getters of playback state. 155 // Getters of playback state.
153 virtual bool Paused() const = 0; 156 virtual bool Paused() const = 0;
154 virtual bool Seeking() const = 0; 157 virtual bool Seeking() const = 0;
155 virtual double Duration() const = 0; 158 virtual double Duration() const = 0;
156 virtual double CurrentTime() const = 0; 159 virtual double CurrentTime() const = 0;
157 160
158 // Internal states of loading and network. 161 // Internal states of loading and network.
159 virtual NetworkState GetNetworkState() const = 0; 162 virtual NetworkState GetNetworkState() const = 0;
160 virtual ReadyState GetReadyState() const = 0; 163 virtual ReadyState GetReadyState() const = 0;
161 164
162 virtual WebString GetErrorMessage() = 0; 165 // Returns an implementation-specific map of error message types to a vector
166 // of error messages of that type for use in reporting to the web application.
167 virtual std::map<std::string, std::vector<std::string>> GetErrorMessages()
168 const = 0;
169
163 virtual bool DidLoadingProgress() = 0; 170 virtual bool DidLoadingProgress() = 0;
164 171
165 virtual bool HasSingleSecurityOrigin() const = 0; 172 virtual bool HasSingleSecurityOrigin() const = 0;
166 virtual bool DidPassCORSAccessCheck() const = 0; 173 virtual bool DidPassCORSAccessCheck() const = 0;
167 174
168 virtual double MediaTimeForTimeValue(double time_value) const = 0; 175 virtual double MediaTimeForTimeValue(double time_value) const = 0;
169 176
170 virtual unsigned DecodedFrameCount() const = 0; 177 virtual unsigned DecodedFrameCount() const = 0;
171 virtual unsigned DroppedFrameCount() const = 0; 178 virtual unsigned DroppedFrameCount() const = 0;
172 virtual unsigned CorruptedFrameCount() const { return 0; } 179 virtual unsigned CorruptedFrameCount() const { return 0; }
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 virtual bool GetLastUploadedFrameInfo(unsigned* width, 292 virtual bool GetLastUploadedFrameInfo(unsigned* width,
286 unsigned* height, 293 unsigned* height,
287 double* timestamp) { 294 double* timestamp) {
288 return false; 295 return false;
289 } 296 }
290 }; 297 };
291 298
292 } // namespace blink 299 } // namespace blink
293 300
294 #endif 301 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698