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

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

Issue 93243003: Add CDM FileIO tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments addressed Created 7 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 | Annotate | Revision Log
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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 virtual void OnSessionMessage(uint32_t session_id, 110 virtual void OnSessionMessage(uint32_t session_id,
111 const char* message, 111 const char* message,
112 uint32_t message_length, 112 uint32_t message_length,
113 const char* destination_url, 113 const char* destination_url,
114 uint32_t destination_url_length) OVERRIDE; 114 uint32_t destination_url_length) OVERRIDE;
115 virtual void OnSessionReady(uint32_t session_id) OVERRIDE; 115 virtual void OnSessionReady(uint32_t session_id) OVERRIDE;
116 virtual void OnSessionClosed(uint32_t session_id) OVERRIDE; 116 virtual void OnSessionClosed(uint32_t session_id) OVERRIDE;
117 virtual void OnSessionError(uint32_t session_id, 117 virtual void OnSessionError(uint32_t session_id,
118 cdm::MediaKeyError error_code, 118 cdm::MediaKeyError error_code,
119 uint32_t system_code) OVERRIDE; 119 uint32_t system_code) OVERRIDE;
120 virtual cdm::FileIO* CreateFileIO(cdm::FileIOClient* client) OVERRIDE;
120 121
121 private: 122 private:
122 typedef linked_ptr<DecryptedBlockImpl> LinkedDecryptedBlock; 123 typedef linked_ptr<DecryptedBlockImpl> LinkedDecryptedBlock;
123 typedef linked_ptr<VideoFrameImpl> LinkedVideoFrame; 124 typedef linked_ptr<VideoFrameImpl> LinkedVideoFrame;
124 typedef linked_ptr<AudioFramesImpl> LinkedAudioFrames; 125 typedef linked_ptr<AudioFramesImpl> LinkedAudioFrames;
125 126
126 bool CreateCdmInstance(const std::string& key_system); 127 bool CreateCdmInstance(const std::string& key_system);
127 128
128 // <code>PPB_ContentDecryptor_Private</code> dispatchers. These are passed to 129 // <code>PPB_ContentDecryptor_Private</code> dispatchers. These are passed to
129 // <code>callback_factory_</code> to ensure that calls into 130 // <code>callback_factory_</code> to ensure that calls into
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 uint32_t deferred_audio_decoder_config_id_; 212 uint32_t deferred_audio_decoder_config_id_;
212 bool deferred_initialize_video_decoder_; 213 bool deferred_initialize_video_decoder_;
213 uint32_t deferred_video_decoder_config_id_; 214 uint32_t deferred_video_decoder_config_id_;
214 215
215 DISALLOW_COPY_AND_ASSIGN(CdmAdapter); 216 DISALLOW_COPY_AND_ASSIGN(CdmAdapter);
216 }; 217 };
217 218
218 } // namespace media 219 } // namespace media
219 220
220 #endif // MEDIA_CDM_PPAPI_CDM_ADAPTER_H_ 221 #endif // MEDIA_CDM_PPAPI_CDM_ADAPTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698