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

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

Issue 131653003: Support LoadSession() in MediaKeys and PPP_ContentDecryptor_Private interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments addressed Created 6 years, 10 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
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 15 matching lines...) Expand all
26 explicit ContentDecryptor_Private(Instance* instance); 26 explicit ContentDecryptor_Private(Instance* instance);
27 virtual ~ContentDecryptor_Private(); 27 virtual ~ContentDecryptor_Private();
28 28
29 // PPP_ContentDecryptor_Private functions exposed as virtual functions 29 // PPP_ContentDecryptor_Private functions exposed as virtual functions
30 // for you to override. 30 // for you to override.
31 // TODO(tomfinegan): This could be optimized to pass pp::Var instead of 31 // TODO(tomfinegan): This could be optimized to pass pp::Var instead of
32 // strings. The change would allow the CDM wrapper to reuse vars when 32 // strings. The change would allow the CDM wrapper to reuse vars when
33 // replying to the browser. 33 // replying to the browser.
34 virtual void Initialize(const std::string& key_system) = 0; 34 virtual void Initialize(const std::string& key_system) = 0;
35 virtual void CreateSession(uint32_t session_id, 35 virtual void CreateSession(uint32_t session_id,
36 const std::string& type, 36 const std::string& content_type,
37 pp::VarArrayBuffer init_data) = 0; 37 pp::VarArrayBuffer init_data) = 0;
38 virtual void LoadSession(uint32_t session_id,
39 const std::string& web_session_id) = 0;
dmichael (off chromium) 2014/02/10 23:56:50 Don't you need a corresponding change to the body?
xhwang 2014/02/11 00:09:55 Done. I accidentally reverted the change in the im
38 virtual void UpdateSession(uint32_t session_id, 40 virtual void UpdateSession(uint32_t session_id,
39 pp::VarArrayBuffer response) = 0; 41 pp::VarArrayBuffer response) = 0;
40 virtual void ReleaseSession(uint32_t session_id) = 0; 42 virtual void ReleaseSession(uint32_t session_id) = 0;
41 virtual void Decrypt(pp::Buffer_Dev encrypted_buffer, 43 virtual void Decrypt(pp::Buffer_Dev encrypted_buffer,
42 const PP_EncryptedBlockInfo& encrypted_block_info) = 0; 44 const PP_EncryptedBlockInfo& encrypted_block_info) = 0;
43 virtual void InitializeAudioDecoder( 45 virtual void InitializeAudioDecoder(
44 const PP_AudioDecoderConfig& decoder_config, 46 const PP_AudioDecoderConfig& decoder_config,
45 pp::Buffer_Dev extra_data_resource) = 0; 47 pp::Buffer_Dev extra_data_resource) = 0;
46 virtual void InitializeVideoDecoder( 48 virtual void InitializeVideoDecoder(
47 const PP_VideoDecoderConfig& decoder_config, 49 const PP_VideoDecoderConfig& decoder_config,
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 void DeliverSamples(pp::Buffer_Dev audio_frames, 96 void DeliverSamples(pp::Buffer_Dev audio_frames,
95 const PP_DecryptedSampleInfo& decrypted_sample_info); 97 const PP_DecryptedSampleInfo& decrypted_sample_info);
96 98
97 private: 99 private:
98 InstanceHandle associated_instance_; 100 InstanceHandle associated_instance_;
99 }; 101 };
100 102
101 } // namespace pp 103 } // namespace pp
102 104
103 #endif // PPAPI_CPP_PRIVATE_CONTENT_DECRYPTOR_PRIVATE_H_ 105 #endif // PPAPI_CPP_PRIVATE_CONTENT_DECRYPTOR_PRIVATE_H_
OLDNEW
« no previous file with comments | « ppapi/c/private/ppp_content_decryptor_private.h ('k') | ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698