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

Unified Diff: media/cdm/ppapi/ppapi_cdm_adapter.h

Issue 2085063002: media: Add OutputProtectionProxy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: media/cdm/ppapi/ppapi_cdm_adapter.h
diff --git a/media/cdm/ppapi/ppapi_cdm_adapter.h b/media/cdm/ppapi/ppapi_cdm_adapter.h
index f1a196c7c6a3689def86c6ef0e6ea5c58d61525a..efa6ce75bc2957480adfd1e8a5be821683effbce 100644
--- a/media/cdm/ppapi/ppapi_cdm_adapter.h
+++ b/media/cdm/ppapi/ppapi_cdm_adapter.h
@@ -20,12 +20,12 @@
#include "ppapi/c/private/pp_content_decryptor.h"
#include "ppapi/cpp/completion_callback.h"
#include "ppapi/cpp/private/content_decryptor_private.h"
+#include "ppapi/cpp/private/output_protection_private.h"
#include "ppapi/cpp/var.h"
#include "ppapi/cpp/var_array_buffer.h"
#include "ppapi/utility/completion_callback_factory.h"
#if defined(OS_CHROMEOS)
-#include "ppapi/cpp/private/output_protection_private.h"
#include "ppapi/cpp/private/platform_verification.h"
#endif
@@ -238,11 +238,14 @@ class PpapiCdmAdapter : public pp::Instance,
void LogToConsole(const pp::Var& value);
#endif // !defined(NDEBUG)
-#if defined(OS_CHROMEOS)
void ReportOutputProtectionUMA(OutputProtectionStatus status);
void ReportOutputProtectionQuery();
void ReportOutputProtectionQueryResult();
+ void EnableProtectionDone(int32_t result);
+ void QueryOutputProtectionStatusDone(int32_t result);
+
+#if defined(OS_CHROMEOS)
struct PepperPlatformChallengeResponse {
pp::Var signed_data;
pp::Var signed_data_signature;
@@ -252,11 +255,9 @@ class PpapiCdmAdapter : public pp::Instance,
void SendPlatformChallengeDone(
int32_t result,
const linked_ptr<PepperPlatformChallengeResponse>& response);
- void EnableProtectionDone(int32_t result);
- void QueryOutputProtectionStatusDone(int32_t result);
+#endif
pp::OutputProtection_Private output_protection_;
- pp::PlatformVerification platform_verification_;
// Same as above, these are only read by QueryOutputProtectionStatusDone().
uint32_t output_link_mask_;
@@ -267,6 +268,9 @@ class PpapiCdmAdapter : public pp::Instance,
// unprotected external link) have been reported to UMA.
bool uma_for_output_protection_query_reported_;
bool uma_for_output_protection_positive_result_reported_;
+
+#if defined(OS_CHROMEOS)
+ pp::PlatformVerification platform_verification_;
#endif
PpbBufferAllocator allocator_;

Powered by Google App Engine
This is Rietveld 408576698