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

Unified Diff: Source/core/platform/graphics/CDM.h

Issue 16387015: Make unprefixed EME APIs use platform and Chromium. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/platform/graphics/CDM.h
diff --git a/Source/modules/webmidi/MIDIErrorCallback.h b/Source/core/platform/graphics/CDM.h
similarity index 76%
copy from Source/modules/webmidi/MIDIErrorCallback.h
copy to Source/core/platform/graphics/CDM.h
index 3a0e41edbee99b7c447866ce544afa475c131c10..547e517cbcdc6b425b8e0ef3f1fddbae51484c20 100644
--- a/Source/modules/webmidi/MIDIErrorCallback.h
+++ b/Source/core/platform/graphics/CDM.h
@@ -28,26 +28,32 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef MIDIErrorCallback_h
-#define MIDIErrorCallback_h
+#ifndef CDM_h
+#define CDM_h
-#include "wtf/PassRefPtr.h"
-#include "wtf/RefCounted.h"
+#include "core/platform/graphics/CDMSession.h"
+#include "wtf/OwnPtr.h"
+#include "wtf/PassOwnPtr.h"
+
+namespace WTF {
+class String;
+}
abarth-chromium 2013/06/07 00:08:23 We usually just #include String. It gets included
ddorwin 2013/06/10 22:52:34 Done.
namespace WebCore {
-class DOMError;
-class ScriptExecutionContext;
+class CDMSessionClient;
-class MIDIErrorCallback : public RefCounted<MIDIErrorCallback> {
+class CDM {
public:
- virtual ~MIDIErrorCallback() { }
- virtual bool handleEvent(DOMError*) = 0;
+ static bool supportsKeySystem(const WTF::String&);
abarth-chromium 2013/06/07 00:08:23 Then you won't need the WTF:: prefix.
ddorwin 2013/06/10 22:52:34 Done.
+ static PassOwnPtr<CDM> create(const WTF::String& keySystem);
+
+ virtual ~CDM() { }
- // Helper to post callback task.
- void scheduleCallback(ScriptExecutionContext*, PassRefPtr<DOMError>);
+ virtual bool supportsMIMEType(const WTF::String&) = 0;
+ virtual PassOwnPtr<CDMSession> createSession(CDMSessionClient*) = 0;
};
} // namespace WebCore
-#endif // MIDIErrorCallback_h
+#endif // CDM_h

Powered by Google App Engine
This is Rietveld 408576698