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

Side by Side Diff: ppapi/cpp/private/content_decryptor_private.h

Issue 11091005: Update PluginInstance for decrypt-and-decode video. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix a bug in ppp_content_decryptor_private_proxy.cc Created 8 years, 2 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
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 PPAPI_CPP_PRIVATE_CONTENT_DECRYPTOR_PRIVATE_H_ 5 #ifndef PPAPI_CPP_PRIVATE_CONTENT_DECRYPTOR_PRIVATE_H_
6 #define PPAPI_CPP_PRIVATE_CONTENT_DECRYPTOR_PRIVATE_H_ 6 #define PPAPI_CPP_PRIVATE_CONTENT_DECRYPTOR_PRIVATE_H_
7 7
8 #include "ppapi/c/private/pp_content_decryptor.h" 8 #include "ppapi/c/private/pp_content_decryptor.h"
9 #include "ppapi/c/private/ppb_content_decryptor_private.h" 9 #include "ppapi/c/private/ppb_content_decryptor_private.h"
10 #include "ppapi/c/private/ppp_content_decryptor_private.h" 10 #include "ppapi/c/private/ppp_content_decryptor_private.h"
(...skipping 25 matching lines...) Expand all
36 virtual void CancelKeyRequest(const std::string& session_id) = 0; 36 virtual void CancelKeyRequest(const std::string& session_id) = 0;
37 virtual void Decrypt(pp::Buffer_Dev encrypted_buffer, 37 virtual void Decrypt(pp::Buffer_Dev encrypted_buffer,
38 const PP_EncryptedBlockInfo& encrypted_block_info) = 0; 38 const PP_EncryptedBlockInfo& encrypted_block_info) = 0;
39 virtual void InitializeVideoDecoder( 39 virtual void InitializeVideoDecoder(
40 const PP_VideoDecoderConfig& decoder_config, 40 const PP_VideoDecoderConfig& decoder_config,
41 pp::Buffer_Dev extra_data_resource) = 0; 41 pp::Buffer_Dev extra_data_resource) = 0;
42 virtual void DeinitializeDecoder(PP_DecryptorStreamType decoder_type, 42 virtual void DeinitializeDecoder(PP_DecryptorStreamType decoder_type,
43 uint32_t request_id) = 0; 43 uint32_t request_id) = 0;
44 virtual void ResetDecoder(PP_DecryptorStreamType decoder_type, 44 virtual void ResetDecoder(PP_DecryptorStreamType decoder_type,
45 uint32_t request_id) = 0; 45 uint32_t request_id) = 0;
46 // Null |encrypted_frame| means end-of-stream buffer.
46 virtual void DecryptAndDecode( 47 virtual void DecryptAndDecode(
47 PP_DecryptorStreamType decoder_type, 48 PP_DecryptorStreamType decoder_type,
48 pp::Buffer_Dev encrypted_buffer, 49 pp::Buffer_Dev encrypted_buffer,
49 const PP_EncryptedBlockInfo& encrypted_block_info) = 0; 50 const PP_EncryptedBlockInfo& encrypted_block_info) = 0;
50 51
51 // PPB_ContentDecryptor_Private methods for passing data from the decryptor 52 // PPB_ContentDecryptor_Private methods for passing data from the decryptor
52 // to the browser. 53 // to the browser.
53 void NeedKey(const std::string& key_system, 54 void NeedKey(const std::string& key_system,
54 const std::string& session_id, 55 const std::string& session_id,
55 pp::VarArrayBuffer init_data); 56 pp::VarArrayBuffer init_data);
(...skipping 19 matching lines...) Expand all
75 void DeliverSamples(pp::Buffer_Dev decrypted_samples, 76 void DeliverSamples(pp::Buffer_Dev decrypted_samples,
76 const PP_DecryptedBlockInfo& decrypted_block_info); 77 const PP_DecryptedBlockInfo& decrypted_block_info);
77 78
78 private: 79 private:
79 InstanceHandle associated_instance_; 80 InstanceHandle associated_instance_;
80 }; 81 };
81 82
82 } // namespace pp 83 } // namespace pp
83 84
84 #endif // PPAPI_CPP_PRIVATE_CONTENT_DECRYPTOR_PRIVATE_H_ 85 #endif // PPAPI_CPP_PRIVATE_CONTENT_DECRYPTOR_PRIVATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698