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 393713003: CdmAdapter: Allow parallel SendPlatformChallenge() calls. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove member variables. Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | media/cdm/ppapi/cdm_adapter.cc » ('j') | media/cdm/ppapi/cdm_adapter.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 // CDM adapter instance. The name of the CDM adapter issuing the log message 238 // CDM adapter instance. The name of the CDM adapter issuing the log message
239 // will be automatically prepended to the message. 239 // will be automatically prepended to the message.
240 void LogToConsole(const pp::Var& value); 240 void LogToConsole(const pp::Var& value);
241 #endif // !defined(NDEBUG) 241 #endif // !defined(NDEBUG)
242 242
243 #if defined(OS_CHROMEOS) 243 #if defined(OS_CHROMEOS)
244 void ReportOutputProtectionUMA(OutputProtectionStatus status); 244 void ReportOutputProtectionUMA(OutputProtectionStatus status);
245 void ReportOutputProtectionQuery(); 245 void ReportOutputProtectionQuery();
246 void ReportOutputProtectionQueryResult(); 246 void ReportOutputProtectionQueryResult();
247 247
248 void SendPlatformChallengeDone(int32_t result); 248 struct PepperPlatformChallengeResponse {
249 pp::Var signed_data;
250 pp::Var signed_data_signature;
251 pp::Var platform_key_certificate;
252 };
253
254 void SendPlatformChallengeDone(
255 int32_t result,
256 const linked_ptr<PepperPlatformChallengeResponse>& response);
249 void EnableProtectionDone(int32_t result); 257 void EnableProtectionDone(int32_t result);
250 void QueryOutputProtectionStatusDone(int32_t result); 258 void QueryOutputProtectionStatusDone(int32_t result);
251 259
252 pp::OutputProtection_Private output_protection_; 260 pp::OutputProtection_Private output_protection_;
253 pp::PlatformVerification platform_verification_; 261 pp::PlatformVerification platform_verification_;
254 262
255 // Since PPAPI doesn't provide handlers for CompletionCallbacks with more than 263 // Since PPAPI doesn't provide handlers for CompletionCallbacks with more than
256 // one output we need to manage our own. These values are only read by 264 // one output we need to manage our own. These values are only read by
257 // SendPlatformChallengeDone(). 265 // SendPlatformChallengeDone().
258 pp::Var signed_data_output_; 266 pp::Var signed_data_output_;
259 pp::Var signed_data_signature_output_; 267 pp::Var signed_data_signature_output_;
260 pp::Var platform_key_certificate_output_; 268 pp::Var platform_key_certificate_output_;
dmichael (off chromium) 2014/07/16 15:21:33 Can you remove these now?
xhwang 2014/07/16 16:14:31 oops, I thought I did. Done now.
261 bool challenge_in_progress_;
262 269
263 // Same as above, these are only read by QueryOutputProtectionStatusDone(). 270 // Same as above, these are only read by QueryOutputProtectionStatusDone().
264 uint32_t output_link_mask_; 271 uint32_t output_link_mask_;
265 uint32_t output_protection_mask_; 272 uint32_t output_protection_mask_;
266 bool query_output_protection_in_progress_; 273 bool query_output_protection_in_progress_;
267 274
268 // Tracks whether an output protection query and a positive query result (no 275 // Tracks whether an output protection query and a positive query result (no
269 // unprotected external link) have been reported to UMA. 276 // unprotected external link) have been reported to UMA.
270 bool uma_for_output_protection_query_reported_; 277 bool uma_for_output_protection_query_reported_;
271 bool uma_for_output_protection_positive_result_reported_; 278 bool uma_for_output_protection_positive_result_reported_;
(...skipping 11 matching lines...) Expand all
283 uint32_t deferred_audio_decoder_config_id_; 290 uint32_t deferred_audio_decoder_config_id_;
284 bool deferred_initialize_video_decoder_; 291 bool deferred_initialize_video_decoder_;
285 uint32_t deferred_video_decoder_config_id_; 292 uint32_t deferred_video_decoder_config_id_;
286 293
287 DISALLOW_COPY_AND_ASSIGN(CdmAdapter); 294 DISALLOW_COPY_AND_ASSIGN(CdmAdapter);
288 }; 295 };
289 296
290 } // namespace media 297 } // namespace media
291 298
292 #endif // MEDIA_CDM_PPAPI_CDM_ADAPTER_H_ 299 #endif // MEDIA_CDM_PPAPI_CDM_ADAPTER_H_
OLDNEW
« no previous file with comments | « no previous file | media/cdm/ppapi/cdm_adapter.cc » ('j') | media/cdm/ppapi/cdm_adapter.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698