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

Side by Side Diff: media/cdm/ppapi/external_clear_key/clear_key_cdm.h

Issue 2095963004: Revert of media: Add OutputProtectionProxy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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_EXTERNAL_CLEAR_KEY_CLEAR_KEY_CDM_H_ 5 #ifndef MEDIA_CDM_PPAPI_EXTERNAL_CLEAR_KEY_CLEAR_KEY_CDM_H_
6 #define MEDIA_CDM_PPAPI_EXTERNAL_CLEAR_KEY_CLEAR_KEY_CDM_H_ 6 #define MEDIA_CDM_PPAPI_EXTERNAL_CLEAR_KEY_CLEAR_KEY_CDM_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 // Returns the number of samples generated in the |audio_frames|. 133 // Returns the number of samples generated in the |audio_frames|.
134 int GenerateFakeAudioFramesFromDuration(int64_t duration_in_microseconds, 134 int GenerateFakeAudioFramesFromDuration(int64_t duration_in_microseconds,
135 cdm::AudioFrames* audio_frames) const; 135 cdm::AudioFrames* audio_frames) const;
136 136
137 // Generates fake video frames given |input_timestamp|. 137 // Generates fake video frames given |input_timestamp|.
138 // Returns cdm::kSuccess if any audio frame is successfully generated. 138 // Returns cdm::kSuccess if any audio frame is successfully generated.
139 cdm::Status GenerateFakeAudioFrames(int64_t timestamp_in_microseconds, 139 cdm::Status GenerateFakeAudioFrames(int64_t timestamp_in_microseconds,
140 cdm::AudioFrames* audio_frames); 140 cdm::AudioFrames* audio_frames);
141 #endif // CLEAR_KEY_CDM_USE_FAKE_AUDIO_DECODER 141 #endif // CLEAR_KEY_CDM_USE_FAKE_AUDIO_DECODER
142 142
143 void OnUnitTestComplete(bool success);
144
145 void StartFileIOTest(); 143 void StartFileIOTest();
146 144
147 // Callback for CDM File IO test. 145 // Callback for CDM File IO test.
148 void OnFileIOTestComplete(bool success); 146 void OnFileIOTestComplete(bool success);
149 147
150 void StartOutputProtectionTest();
151
152 // Keep track of the last session created. 148 // Keep track of the last session created.
153 void SetSessionId(const std::string& session_id); 149 void SetSessionId(const std::string& session_id);
154 150
155 scoped_refptr<AesDecryptor> decryptor_; 151 scoped_refptr<AesDecryptor> decryptor_;
156 152
157 ClearKeyCdmHost* host_; 153 ClearKeyCdmHost* host_;
158 154
159 const std::string key_system_; 155 const std::string key_system_;
160 156
161 std::string last_session_id_; 157 std::string last_session_id_;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 #endif // CLEAR_KEY_CDM_USE_FAKE_AUDIO_DECODER 202 #endif // CLEAR_KEY_CDM_USE_FAKE_AUDIO_DECODER
207 203
208 #if defined(CLEAR_KEY_CDM_USE_FFMPEG_DECODER) 204 #if defined(CLEAR_KEY_CDM_USE_FFMPEG_DECODER)
209 std::unique_ptr<FFmpegCdmAudioDecoder> audio_decoder_; 205 std::unique_ptr<FFmpegCdmAudioDecoder> audio_decoder_;
210 #endif // CLEAR_KEY_CDM_USE_FFMPEG_DECODER 206 #endif // CLEAR_KEY_CDM_USE_FFMPEG_DECODER
211 207
212 std::unique_ptr<CdmVideoDecoder> video_decoder_; 208 std::unique_ptr<CdmVideoDecoder> video_decoder_;
213 209
214 std::unique_ptr<FileIOTestRunner> file_io_test_runner_; 210 std::unique_ptr<FileIOTestRunner> file_io_test_runner_;
215 211
216 bool is_running_output_protection_test_;
217
218 DISALLOW_COPY_AND_ASSIGN(ClearKeyCdm); 212 DISALLOW_COPY_AND_ASSIGN(ClearKeyCdm);
219 }; 213 };
220 214
221 } // namespace media 215 } // namespace media
222 216
223 #endif // MEDIA_CDM_PPAPI_EXTERNAL_CLEAR_KEY_CLEAR_KEY_CDM_H_ 217 #endif // MEDIA_CDM_PPAPI_EXTERNAL_CLEAR_KEY_CLEAR_KEY_CDM_H_
OLDNEW
« no previous file with comments | « chrome/renderer/media/chrome_key_systems.cc ('k') | media/cdm/ppapi/external_clear_key/clear_key_cdm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698