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

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

Issue 2095963004: Revert of 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: 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 55d40405650f7dc5f206af39024d8e8b26b35f26..fe4865b8bb871664a1aeb5b12191237ac915fc55 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,11 +7,8 @@
#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"
@@ -26,9 +23,13 @@
} // namespace host
} // namespace ppapi
+#if defined(OS_CHROMEOS)
+namespace chromeos {
+class OutputProtectionDelegate;
+}
+#endif
+
namespace chrome {
-
-class OutputProtectionProxy;
class PepperOutputProtectionMessageFilter
: public ppapi::host::ResourceMessageFilter {
@@ -59,9 +60,10 @@
ppapi::host::ReplyMessageContext reply_context,
bool success);
- std::unique_ptr<OutputProtectionProxy,
- content::BrowserThread::DeleteOnUIThread>
- proxy_;
+#if defined(OS_CHROMEOS)
+ // Delegate. Should be deleted in UI thread.
+ chromeos::OutputProtectionDelegate* delegate_;
+#endif
base::WeakPtrFactory<PepperOutputProtectionMessageFilter> weak_ptr_factory_;

Powered by Google App Engine
This is Rietveld 408576698