| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef WebContentDecryptionModuleSession_h | 31 #ifndef WebContentDecryptionModuleSession_h |
| 32 #define WebContentDecryptionModuleSession_h | 32 #define WebContentDecryptionModuleSession_h |
| 33 | 33 |
| 34 #include "WebCommon.h" | 34 #include "WebCommon.h" |
| 35 #include "WebVector.h" | 35 #include "WebVector.h" |
| 36 #include "public/platform/WebContentDecryptionModuleException.h" | 36 #include "public/platform/WebContentDecryptionModuleException.h" |
| 37 #include "public/platform/WebContentDecryptionModuleResult.h" | 37 #include "public/platform/WebContentDecryptionModuleResult.h" |
| 38 #include "public/platform/WebEncryptedMediaTypes.h" |
| 38 | 39 |
| 39 namespace blink { | 40 namespace blink { |
| 40 | 41 |
| 41 class WebEncryptedMediaKeyInformation; | 42 class WebEncryptedMediaKeyInformation; |
| 42 class WebString; | 43 class WebString; |
| 43 class WebURL; | 44 class WebURL; |
| 44 | 45 |
| 45 class BLINK_PLATFORM_EXPORT WebContentDecryptionModuleSession { | 46 class BLINK_PLATFORM_EXPORT WebContentDecryptionModuleSession { |
| 46 public: | 47 public: |
| 47 class BLINK_PLATFORM_EXPORT Client { | 48 class BLINK_PLATFORM_EXPORT Client { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 69 | 70 |
| 70 protected: | 71 protected: |
| 71 virtual ~Client(); | 72 virtual ~Client(); |
| 72 }; | 73 }; |
| 73 | 74 |
| 74 virtual ~WebContentDecryptionModuleSession(); | 75 virtual ~WebContentDecryptionModuleSession(); |
| 75 | 76 |
| 76 virtual void setClientInterface(Client*) = 0; | 77 virtual void setClientInterface(Client*) = 0; |
| 77 virtual WebString sessionId() const = 0; | 78 virtual WebString sessionId() const = 0; |
| 78 | 79 |
| 80 virtual void initializeNewSession(WebEncryptedMediaInitDataType, const unsig
ned char* initData, size_t initDataLength, WebEncryptedMediaSessionType, WebCont
entDecryptionModuleResult); |
| 81 // FIXME: remove this version once Chromium updated to pass enums. |
| 79 virtual void initializeNewSession(const WebString& initDataType, const unsig
ned char* initData, size_t initDataLength, const WebString& sessionType, WebCont
entDecryptionModuleResult) = 0; | 82 virtual void initializeNewSession(const WebString& initDataType, const unsig
ned char* initData, size_t initDataLength, const WebString& sessionType, WebCont
entDecryptionModuleResult) = 0; |
| 80 virtual void load(const WebString& sessionId, WebContentDecryptionModuleResu
lt) = 0; | 83 virtual void load(const WebString& sessionId, WebContentDecryptionModuleResu
lt) = 0; |
| 81 virtual void update(const unsigned char* response, size_t responseLength, We
bContentDecryptionModuleResult) = 0; | 84 virtual void update(const unsigned char* response, size_t responseLength, We
bContentDecryptionModuleResult) = 0; |
| 82 virtual void close(WebContentDecryptionModuleResult) = 0; | 85 virtual void close(WebContentDecryptionModuleResult) = 0; |
| 83 virtual void remove(WebContentDecryptionModuleResult) = 0; | 86 virtual void remove(WebContentDecryptionModuleResult) = 0; |
| 84 }; | 87 }; |
| 85 | 88 |
| 86 } // namespace blink | 89 } // namespace blink |
| 87 | 90 |
| 88 #endif // WebContentDecryptionModuleSession_h | 91 #endif // WebContentDecryptionModuleSession_h |
| OLD | NEW |