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

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

Issue 1009943006: [1/8] Prepare Pepper for async output protection configuration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 c9e575e965da73b1663d6df180b0215d4233eae3..77bf562b40af5d4a00e0b687becc9610529d52f7 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
@@ -5,6 +5,7 @@
#ifndef CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_OUTPUT_PROTECTION_MESSAGE_FILTER_H_
#define CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_OUTPUT_PROTECTION_MESSAGE_FILTER_H_
+#include "base/memory/weak_ptr.h"
#include "ppapi/c/pp_instance.h"
#include "ppapi/host/resource_message_filter.h"
@@ -44,11 +45,22 @@ class PepperOutputProtectionMessageFilter
int32_t OnEnableProtection(ppapi::host::HostMessageContext* context,
uint32_t desired_method_mask);
+ void OnQueryStatusCallback(ppapi::host::ReplyMessageContext reply_context,
+ int32_t result,
+ uint32_t link_mask,
+ uint32_t protection_mask);
+
+ void OnEnableProtectionCallback(
+ ppapi::host::ReplyMessageContext reply_context,
+ int32_t result);
+
#if defined(OS_CHROMEOS)
// Delegator. Should be deleted in UI thread.
Delegate* delegate_;
#endif
+ base::WeakPtrFactory<PepperOutputProtectionMessageFilter> weak_ptr_factory_;
+
DISALLOW_COPY_AND_ASSIGN(PepperOutputProtectionMessageFilter);
};

Powered by Google App Engine
This is Rietveld 408576698