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

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: s/web_session_id/session_id 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. This method is only for supporting legacy prefixed API.
ddorwin 2015/01/08 03:09:32 nit suggestions: * New line for last method. * "..
xhwang 2015/01/08 03:54:53 Done.
1039 virtual void OnLegacySessionError(
1040 const char* session_id, uint32_t session_id_length,
1041 Error error,
1042 uint32_t system_code,
1043 const char* error_message, uint32_t error_message_length) = 0;
1044
1034 // The following are optional methods that may not be implemented on all 1045 // The following are optional methods that may not be implemented on all
1035 // platforms. 1046 // platforms.
1036 1047
1037 // Sends a platform challenge for the given |service_id|. |challenge| is at 1048 // 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, 1049 // most 256 bits of data to be signed. Once the challenge has been completed,
1039 // the host will call ContentDecryptionModule::OnPlatformChallengeResponse() 1050 // the host will call ContentDecryptionModule::OnPlatformChallengeResponse()
1040 // with the signed challenge response and platform certificate. Size 1051 // with the signed challenge response and platform certificate. Size
1041 // parameters should not include null termination. 1052 // parameters should not include null termination.
1042 virtual void SendPlatformChallenge(const char* service_id, 1053 virtual void SendPlatformChallenge(const char* service_id,
1043 uint32_t service_id_size, 1054 uint32_t service_id_size,
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
1141 virtual AudioFormat Format() const = 0; 1152 virtual AudioFormat Format() const = 0;
1142 1153
1143 protected: 1154 protected:
1144 AudioFrames() {} 1155 AudioFrames() {}
1145 virtual ~AudioFrames() {} 1156 virtual ~AudioFrames() {}
1146 }; 1157 };
1147 1158
1148 } // namespace cdm 1159 } // namespace cdm
1149 1160
1150 #endif // CDM_CONTENT_DECRYPTION_MODULE_H_ 1161 #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