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

Unified Diff: public/platform/WebCDM.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: public/platform/WebCDM.h
diff --git a/public/webview/WebMediaSource.h b/public/platform/WebCDM.h
similarity index 85%
copy from public/webview/WebMediaSource.h
copy to public/platform/WebCDM.h
index 424a687dfa381049240e769de9e23f58da6eb576..a1e0d48fdf80f8ffa9da2fc9e598504bf5585b07 100644
--- a/public/webview/WebMediaSource.h
+++ b/public/platform/WebCDM.h
@@ -28,22 +28,23 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebMediaSource_h
-#define WebMediaSource_h
+#ifndef WebCDM_h
+#define WebCDM_h
-#include "../platform/WebURL.h"
-#include "WebTimeRange.h"
+#include "public/platform/WebCDMSession.h"
namespace WebKit {
-class WebMediaSourceClient;
+// Abstract interface to the Chromium CDMs.
-class WebMediaSource {
+class WebCDM {
public:
- virtual ~WebMediaSource() { };
- virtual void open(WebMediaSourceClient*) = 0;
+ virtual ~WebCDM() { }
+
+ // Must return non-null.
+ virtual WebCDMSession* createSession(WebCDMSession::Client*) = 0;
};
} // namespace WebKit
-#endif
+#endif // WebCDM_h

Powered by Google App Engine
This is Rietveld 408576698