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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content_decryption_module.h
diff --git a/content_decryption_module.h b/content_decryption_module.h
index ab9fe1bbae6e6ef8be929364820b135db1165152..827cc331a2b89d4d7c0b6d2b77244e71a6adba90 100644
--- a/content_decryption_module.h
+++ b/content_decryption_module.h
@@ -1031,6 +1031,17 @@ class Host_7 {
virtual void OnSessionClosed(const char* session_id,
uint32_t session_id_size) = 0;
+ // Called by the CDM when an error occurs in session |session_id|
+ // unrelated to one of the ContentDecryptionModule calls that accept a
+ // |promise_id|. |error| must be specified, |error_message| and
+ // |system_code| are optional. Length parameters should not include null
+ // 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.
+ virtual void OnLegacySessionError(
+ const char* session_id, uint32_t session_id_length,
+ Error error,
+ uint32_t system_code,
+ const char* error_message, uint32_t error_message_length) = 0;
+
// The following are optional methods that may not be implemented on all
// platforms.
« 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