Chromium Code Reviews| 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 |