| 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 23 matching lines...) Expand all Loading... |
| 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 #include "public/platform/WebEncryptedMediaTypes.h" |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 | 41 |
| 42 class WebEncryptedMediaKeyInformation; | 42 class WebEncryptedMediaKeyInformation; |
| 43 class WebString; | 43 class WebString; |
| 44 class WebURL; | |
| 45 | 44 |
| 46 class BLINK_PLATFORM_EXPORT WebContentDecryptionModuleSession { | 45 class BLINK_PLATFORM_EXPORT WebContentDecryptionModuleSession { |
| 47 public: | 46 public: |
| 48 class BLINK_PLATFORM_EXPORT Client { | 47 class BLINK_PLATFORM_EXPORT Client { |
| 49 public: | 48 public: |
| 50 enum class MessageType { LicenseRequest, LicenseRenewal, LicenseRelease }; | 49 enum class MessageType { LicenseRequest, LicenseRenewal, LicenseRelease }; |
| 51 | 50 |
| 52 virtual void message(MessageType, | 51 virtual void message(MessageType, |
| 53 const unsigned char* message, | 52 const unsigned char* message, |
| 54 size_t messageLength) = 0; | 53 size_t messageLength) = 0; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 virtual void update(const unsigned char* response, | 86 virtual void update(const unsigned char* response, |
| 88 size_t responseLength, | 87 size_t responseLength, |
| 89 WebContentDecryptionModuleResult) = 0; | 88 WebContentDecryptionModuleResult) = 0; |
| 90 virtual void close(WebContentDecryptionModuleResult) = 0; | 89 virtual void close(WebContentDecryptionModuleResult) = 0; |
| 91 virtual void remove(WebContentDecryptionModuleResult) = 0; | 90 virtual void remove(WebContentDecryptionModuleResult) = 0; |
| 92 }; | 91 }; |
| 93 | 92 |
| 94 } // namespace blink | 93 } // namespace blink |
| 95 | 94 |
| 96 #endif // WebContentDecryptionModuleSession_h | 95 #endif // WebContentDecryptionModuleSession_h |
| OLD | NEW |