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

Side by Side Diff: media/cdm/ppapi/cdm_adapter.h

Issue 496143002: Update Pepper interface for EME (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: GetResolveParameterType Created 6 years, 3 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 MEDIA_CDM_PPAPI_CDM_ADAPTER_H_ 5 #ifndef MEDIA_CDM_PPAPI_CDM_ADAPTER_H_
6 #define MEDIA_CDM_PPAPI_CDM_ADAPTER_H_ 6 #define MEDIA_CDM_PPAPI_CDM_ADAPTER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 // pp::Instance implementation. 52 // pp::Instance implementation.
53 virtual bool Init(uint32_t argc, const char* argn[], const char* argv[]) { 53 virtual bool Init(uint32_t argc, const char* argn[], const char* argv[]) {
54 return true; 54 return true;
55 } 55 }
56 56
57 // PPP_ContentDecryptor_Private implementation. 57 // PPP_ContentDecryptor_Private implementation.
58 // Note: Results of calls to these methods must be reported through the 58 // Note: Results of calls to these methods must be reported through the
59 // PPB_ContentDecryptor_Private interface. 59 // PPB_ContentDecryptor_Private interface.
60 virtual void Initialize(const std::string& key_system) OVERRIDE; 60 virtual void Initialize(const std::string& key_system) OVERRIDE;
61 virtual void SetServerCertificate(
62 uint32_t promise_id,
63 pp::VarArrayBuffer server_certificate) OVERRIDE;
61 virtual void CreateSession(uint32_t promise_id, 64 virtual void CreateSession(uint32_t promise_id,
62 const std::string& init_data_type, 65 const std::string& init_data_type,
63 pp::VarArrayBuffer init_data, 66 pp::VarArrayBuffer init_data,
64 PP_SessionType session_type) OVERRIDE; 67 PP_SessionType session_type) OVERRIDE;
65 virtual void LoadSession(uint32_t promise_id, 68 virtual void LoadSession(uint32_t promise_id,
66 const std::string& web_session_id) OVERRIDE; 69 const std::string& web_session_id) OVERRIDE;
67 virtual void UpdateSession(uint32_t promise_id, 70 virtual void UpdateSession(uint32_t promise_id,
68 const std::string& web_session_id, 71 const std::string& web_session_id,
69 pp::VarArrayBuffer response) OVERRIDE; 72 pp::VarArrayBuffer response) OVERRIDE;
70 // TODO(jrummell): Pass this function through Pepper and add OVERRIDE.
71 virtual void CloseSession(uint32_t promise_id, 73 virtual void CloseSession(uint32_t promise_id,
72 const std::string& web_session_id); 74 const std::string& web_session_id);
73 // TODO(jrummell): Rename to RemoveSession(). 75 virtual void RemoveSession(uint32_t promise_id,
74 virtual void ReleaseSession(uint32_t promise_id, 76 const std::string& web_session_id) OVERRIDE;
75 const std::string& web_session_id) OVERRIDE;
76 // TODO(jrummell): Pass this function through Pepper and add OVERRIDE.
77 virtual void GetUsableKeyIds(uint32_t promise_id, 77 virtual void GetUsableKeyIds(uint32_t promise_id,
78 const std::string& web_session_id); 78 const std::string& web_session_id) OVERRIDE;
79 virtual void Decrypt( 79 virtual void Decrypt(
80 pp::Buffer_Dev encrypted_buffer, 80 pp::Buffer_Dev encrypted_buffer,
81 const PP_EncryptedBlockInfo& encrypted_block_info) OVERRIDE; 81 const PP_EncryptedBlockInfo& encrypted_block_info) OVERRIDE;
82 virtual void InitializeAudioDecoder( 82 virtual void InitializeAudioDecoder(
83 const PP_AudioDecoderConfig& decoder_config, 83 const PP_AudioDecoderConfig& decoder_config,
84 pp::Buffer_Dev extra_data_buffer) OVERRIDE; 84 pp::Buffer_Dev extra_data_buffer) OVERRIDE;
85 virtual void InitializeVideoDecoder( 85 virtual void InitializeVideoDecoder(
86 const PP_VideoDecoderConfig& decoder_config, 86 const PP_VideoDecoderConfig& decoder_config,
87 pp::Buffer_Dev extra_data_buffer) OVERRIDE; 87 pp::Buffer_Dev extra_data_buffer) OVERRIDE;
88 virtual void DeinitializeDecoder(PP_DecryptorStreamType decoder_type, 88 virtual void DeinitializeDecoder(PP_DecryptorStreamType decoder_type,
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 uint32_t deferred_audio_decoder_config_id_; 311 uint32_t deferred_audio_decoder_config_id_;
312 bool deferred_initialize_video_decoder_; 312 bool deferred_initialize_video_decoder_;
313 uint32_t deferred_video_decoder_config_id_; 313 uint32_t deferred_video_decoder_config_id_;
314 314
315 DISALLOW_COPY_AND_ASSIGN(CdmAdapter); 315 DISALLOW_COPY_AND_ASSIGN(CdmAdapter);
316 }; 316 };
317 317
318 } // namespace media 318 } // namespace media
319 319
320 #endif // MEDIA_CDM_PPAPI_CDM_ADAPTER_H_ 320 #endif // MEDIA_CDM_PPAPI_CDM_ADAPTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698