Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / platform / exported / WebContentDecryptionModuleSession.cpp
index 5ec6afe..0125274 100644 (file)
 
 #include "config.h"
 #include "public/platform/WebContentDecryptionModuleSession.h"
+#include "public/platform/WebString.h"
 
 namespace blink {
 
+static void ReportError(WebContentDecryptionModuleResult result)
+{
+    result.completeWithError(WebContentDecryptionModuleExceptionUnknownError, 0, "Not implemented.");
+}
+
 WebContentDecryptionModuleSession::~WebContentDecryptionModuleSession()
 {
 }
@@ -35,4 +41,21 @@ WebContentDecryptionModuleSession::Client::~Client()
 {
 }
 
+// FIXME: Remove the default implementations of these methods once the new
+// methods are implemented in Chromium.
+void WebContentDecryptionModuleSession::initializeNewSession(const WebString& initDataType, const unsigned char* initData, size_t initDataLength, const WebString& sessionType, WebContentDecryptionModuleResult result)
+{
+    ReportError(result);
+}
+
+void WebContentDecryptionModuleSession::update(const unsigned char* response, size_t responseLength, WebContentDecryptionModuleResult result)
+{
+    ReportError(result);
+}
+
+void WebContentDecryptionModuleSession::release(WebContentDecryptionModuleResult result)
+{
+    ReportError(result);
+}
+
 } // namespace blink