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

Unified Diff: chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.h

Issue 2085063002: media: Add OutputProtectionProxy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments addressed 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: chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.h
diff --git a/chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.h b/chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.h
index fe4865b8bb871664a1aeb5b12191237ac915fc55..55d40405650f7dc5f206af39024d8e8b26b35f26 100644
--- a/chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.h
+++ b/chrome/browser/renderer_host/pepper/pepper_output_protection_message_filter.h
@@ -7,8 +7,11 @@
#include <stdint.h>
+#include <memory>
+
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
+#include "content/public/browser/browser_thread.h"
#include "build/build_config.h"
#include "ppapi/c/pp_instance.h"
#include "ppapi/host/resource_message_filter.h"
@@ -23,14 +26,10 @@ struct HostMessageContext;
} // namespace host
} // namespace ppapi
-#if defined(OS_CHROMEOS)
-namespace chromeos {
-class OutputProtectionDelegate;
-}
-#endif
-
namespace chrome {
+class OutputProtectionProxy;
+
class PepperOutputProtectionMessageFilter
: public ppapi::host::ResourceMessageFilter {
public:
@@ -60,10 +59,9 @@ class PepperOutputProtectionMessageFilter
ppapi::host::ReplyMessageContext reply_context,
bool success);
-#if defined(OS_CHROMEOS)
- // Delegate. Should be deleted in UI thread.
- chromeos::OutputProtectionDelegate* delegate_;
-#endif
+ std::unique_ptr<OutputProtectionProxy,
+ content::BrowserThread::DeleteOnUIThread>
+ proxy_;
base::WeakPtrFactory<PepperOutputProtectionMessageFilter> weak_ptr_factory_;

Powered by Google App Engine
This is Rietveld 408576698