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

Unified Diff: public/platform/WebContentDecryptionModule.h

Issue 16387015: Make unprefixed EME APIs use platform and Chromium. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: "unsigned" -> "size_t" for lengths 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/WebContentDecryptionModule.h
diff --git a/public/webview/WebDOMResourceProgressEvent.h b/public/platform/WebContentDecryptionModule.h
similarity index 77%
copy from public/webview/WebDOMResourceProgressEvent.h
copy to public/platform/WebContentDecryptionModule.h
index b65d93c80e006d6e99c837e840eb38cb3a71055d..fa15979e6d418659f1fccb9d06760c83f6a29926 100644
--- a/public/webview/WebDOMResourceProgressEvent.h
+++ b/public/platform/WebContentDecryptionModule.h
@@ -28,21 +28,23 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebDOMResourceProgressEvent_h
-#define WebDOMResourceProgressEvent_h
+#ifndef WebContentDecryptionModule_h
+#define WebContentDecryptionModule_h
-#include "WebDOMProgressEvent.h"
+#include "public/platform/WebContentDecryptionModuleSession.h"
namespace WebKit {
-class WebString;
+// Abstract interface to the Chromium content decryption modules.
abarth-chromium 2013/06/12 23:03:51 This comment doesn't really add any value.
ddorwin 2013/06/12 23:55:54 Done.
-class WebDOMResourceProgressEvent : public WebDOMProgressEvent {
+class WebContentDecryptionModule {
public:
- WebDOMResourceProgressEvent() { }
- WEBKIT_EXPORT WebDOMResourceProgressEvent(const WebString& type, bool lengthIsComputable, unsigned long long loaded, unsigned long long total, const WebString& url);
+ virtual ~WebContentDecryptionModule() { }
+
+ // Must return non-null.
+ virtual WebContentDecryptionModuleSession* createSession(WebContentDecryptionModuleSession::Client*) = 0;
};
} // namespace WebKit
-#endif
+#endif // WebContentDecryptionModule_h

Powered by Google App Engine
This is Rietveld 408576698