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

Side by Side Diff: content/renderer/pepper/content_decryptor_delegate.h

Issue 811923002: Changes to support CDM_7 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
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 CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_
6 #define CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_ 6 #define CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 #include <string> 10 #include <string>
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 bool DecryptAndDecodeAudio( 97 bool DecryptAndDecodeAudio(
98 const scoped_refptr<media::DecoderBuffer>& encrypted_buffer, 98 const scoped_refptr<media::DecoderBuffer>& encrypted_buffer,
99 const media::Decryptor::AudioDecodeCB& audio_decode_cb); 99 const media::Decryptor::AudioDecodeCB& audio_decode_cb);
100 bool DecryptAndDecodeVideo( 100 bool DecryptAndDecodeVideo(
101 const scoped_refptr<media::DecoderBuffer>& encrypted_buffer, 101 const scoped_refptr<media::DecoderBuffer>& encrypted_buffer,
102 const media::Decryptor::VideoDecodeCB& video_decode_cb); 102 const media::Decryptor::VideoDecodeCB& video_decode_cb);
103 103
104 // PPB_ContentDecryptor_Private dispatching methods. 104 // PPB_ContentDecryptor_Private dispatching methods.
105 void OnPromiseResolved(uint32 promise_id); 105 void OnPromiseResolved(uint32 promise_id);
106 void OnPromiseResolvedWithSession(uint32 promise_id, PP_Var web_session_id); 106 void OnPromiseResolvedWithSession(uint32 promise_id, PP_Var web_session_id);
107 void OnPromiseResolvedWithKeyIds(uint32 promise_id, PP_Var key_ids_array);
108 void OnPromiseRejected(uint32 promise_id, 107 void OnPromiseRejected(uint32 promise_id,
109 PP_CdmExceptionCode exception_code, 108 PP_CdmExceptionCode exception_code,
110 uint32 system_code, 109 uint32 system_code,
111 PP_Var error_description); 110 PP_Var error_description);
112 void OnSessionMessage(PP_Var web_session_id, 111 void OnSessionMessage(PP_Var web_session_id,
113 PP_Var message, 112 PP_MessageType message_type,
114 PP_Var destination_url); 113 PP_Var message);
115 void OnSessionKeysChange(PP_Var web_session_id, 114 void OnSessionKeysChange(PP_Var web_session_id,
116 PP_Bool has_additional_usable_key); 115 PP_Bool has_additional_usable_key,
116 PP_Var key_information);
117 void OnSessionExpirationChange(PP_Var web_session_id, 117 void OnSessionExpirationChange(PP_Var web_session_id,
118 PP_Time new_expiry_time); 118 PP_Time new_expiry_time);
119 void OnSessionReady(PP_Var web_session_id);
120 void OnSessionClosed(PP_Var web_session_id); 119 void OnSessionClosed(PP_Var web_session_id);
121 void OnSessionError(PP_Var web_session_id, 120 void OnSessionError(PP_Var web_session_id,
122 PP_CdmExceptionCode exception_code, 121 PP_CdmExceptionCode exception_code,
123 uint32 system_code, 122 uint32 system_code,
124 PP_Var error_description); 123 PP_Var error_description);
125 void DeliverBlock(PP_Resource decrypted_block, 124 void DeliverBlock(PP_Resource decrypted_block,
126 const PP_DecryptedBlockInfo* block_info); 125 const PP_DecryptedBlockInfo* block_info);
127 void DecoderInitializeDone(PP_DecryptorStreamType decoder_type, 126 void DecoderInitializeDone(PP_DecryptorStreamType decoder_type,
128 uint32_t request_id, 127 uint32_t request_id,
129 PP_Bool success); 128 PP_Bool success);
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 260
262 base::WeakPtr<ContentDecryptorDelegate> weak_this_; 261 base::WeakPtr<ContentDecryptorDelegate> weak_this_;
263 base::WeakPtrFactory<ContentDecryptorDelegate> weak_ptr_factory_; 262 base::WeakPtrFactory<ContentDecryptorDelegate> weak_ptr_factory_;
264 263
265 DISALLOW_COPY_AND_ASSIGN(ContentDecryptorDelegate); 264 DISALLOW_COPY_AND_ASSIGN(ContentDecryptorDelegate);
266 }; 265 };
267 266
268 } // namespace content 267 } // namespace content
269 268
270 #endif // CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_ 269 #endif // CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698