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

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

Issue 1139923006: Move PepperOutputProtectionMessageFilter::Delegate to OutputProtectionDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments addressed Created 5 years, 7 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 bb6004f456b1d567e594355b45a592b7b32fa259..830d4a61a0aaa2e40cf2e4292ea31848c44e633a 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
@@ -19,6 +19,12 @@ struct HostMessageContext;
} // namespace host
} // namespace ppapi
+#if defined(OS_CHROMEOS)
+namespace chromeos {
+class OutputProtectionDelegate;
+}
+#endif
+
namespace chrome {
class PepperOutputProtectionMessageFilter
@@ -28,10 +34,6 @@ class PepperOutputProtectionMessageFilter
PP_Instance instance);
private:
-#if defined(OS_CHROMEOS)
- class Delegate;
-#endif
-
// ppapi::host::ResourceMessageFilter overrides.
scoped_refptr<base::TaskRunner> OverrideTaskRunnerForMessage(
const IPC::Message& msg) override;
@@ -46,17 +48,17 @@ class PepperOutputProtectionMessageFilter
uint32_t desired_method_mask);
void OnQueryStatusComplete(ppapi::host::ReplyMessageContext reply_context,
- int32_t result,
+ bool success,
uint32_t link_mask,
uint32_t protection_mask);
void OnEnableProtectionComplete(
ppapi::host::ReplyMessageContext reply_context,
- int32_t result);
+ bool success);
#if defined(OS_CHROMEOS)
- // Delegator. Should be deleted in UI thread.
- Delegate* delegate_;
+ // 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