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

Side by Side Diff: content_decryption_module.h

Issue 838063002: Add OnLegacySessionError() in CDM_7. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/cdm
Patch Set: comments addressed Created 5 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CDM_CONTENT_DECRYPTION_MODULE_H_ 5 #ifndef CDM_CONTENT_DECRYPTION_MODULE_H_
6 #define CDM_CONTENT_DECRYPTION_MODULE_H_ 6 #define CDM_CONTENT_DECRYPTION_MODULE_H_
7 7
8 #if defined(_MSC_VER) 8 #if defined(_MSC_VER)
9 typedef unsigned char uint8_t; 9 typedef unsigned char uint8_t;
10 typedef unsigned int uint32_t; 10 typedef unsigned int uint32_t;
(...skipping 1013 matching lines...) Expand 10 before | Expand all | Expand 10 after
1024 // null termination. 1024 // null termination.
1025 virtual void OnExpirationChange(const char* session_id, 1025 virtual void OnExpirationChange(const char* session_id,
1026 uint32_t session_id_size, 1026 uint32_t session_id_size,
1027 Time new_expiry_time) = 0; 1027 Time new_expiry_time) = 0;
1028 1028
1029 // Called by the CDM when session |session_id| is closed. Size 1029 // Called by the CDM when session |session_id| is closed. Size
1030 // parameter should not include null termination. 1030 // parameter should not include null termination.
1031 virtual void OnSessionClosed(const char* session_id, 1031 virtual void OnSessionClosed(const char* session_id,
1032 uint32_t session_id_size) = 0; 1032 uint32_t session_id_size) = 0;
1033 1033
1034 // Called by the CDM when an error occurs in session |session_id|
1035 // unrelated to one of the ContentDecryptionModule calls that accept a
1036 // |promise_id|. |error| must be specified, |error_message| and
1037 // |system_code| are optional. Length parameters should not include null
1038 // termination.
1039 // Note:
1040 // - This method is only for supporting prefixed EME API.
1041 // - This method will be ignored by unprefixed EME. All errors reported
1042 // in this method should probably also be reported by one of other methods.
1043 virtual void OnLegacySessionError(
1044 const char* session_id, uint32_t session_id_length,
1045 Error error,
1046 uint32_t system_code,
1047 const char* error_message, uint32_t error_message_length) = 0;
1048
1034 // The following are optional methods that may not be implemented on all 1049 // The following are optional methods that may not be implemented on all
1035 // platforms. 1050 // platforms.
1036 1051
1037 // Sends a platform challenge for the given |service_id|. |challenge| is at 1052 // Sends a platform challenge for the given |service_id|. |challenge| is at
1038 // most 256 bits of data to be signed. Once the challenge has been completed, 1053 // most 256 bits of data to be signed. Once the challenge has been completed,
1039 // the host will call ContentDecryptionModule::OnPlatformChallengeResponse() 1054 // the host will call ContentDecryptionModule::OnPlatformChallengeResponse()
1040 // with the signed challenge response and platform certificate. Size 1055 // with the signed challenge response and platform certificate. Size
1041 // parameters should not include null termination. 1056 // parameters should not include null termination.
1042 virtual void SendPlatformChallenge(const char* service_id, 1057 virtual void SendPlatformChallenge(const char* service_id,
1043 uint32_t service_id_size, 1058 uint32_t service_id_size,
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
1141 virtual AudioFormat Format() const = 0; 1156 virtual AudioFormat Format() const = 0;
1142 1157
1143 protected: 1158 protected:
1144 AudioFrames() {} 1159 AudioFrames() {}
1145 virtual ~AudioFrames() {} 1160 virtual ~AudioFrames() {}
1146 }; 1161 };
1147 1162
1148 } // namespace cdm 1163 } // namespace cdm
1149 1164
1150 #endif // CDM_CONTENT_DECRYPTION_MODULE_H_ 1165 #endif // CDM_CONTENT_DECRYPTION_MODULE_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698