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

Unified Diff: chrome/browser/media/output_protection_impl.h

Issue 2326913003: Privatize StrongBinding lifetime management (Closed)
Patch Set: rebase Created 4 years, 3 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/media/output_protection_impl.h
diff --git a/chrome/browser/media/output_protection_impl.h b/chrome/browser/media/output_protection_impl.h
index 54fb916973b4972d0a2db8214efc6ead140e5c14..cab0c96b445a5302ba7c29469663cd49f316890c 100644
--- a/chrome/browser/media/output_protection_impl.h
+++ b/chrome/browser/media/output_protection_impl.h
@@ -7,7 +7,6 @@
#include "content/public/browser/render_frame_host.h"
#include "media/mojo/interfaces/output_protection.mojom.h"
-#include "mojo/public/cpp/bindings/strong_binding.h"
// Implements media::mojom::OutputProtection to check display links and
// their statuses. On all platforms we'll check the network links. On ChromeOS
@@ -18,8 +17,7 @@ class OutputProtectionImpl : public media::mojom::OutputProtection {
content::RenderFrameHost* render_frame_host,
mojo::InterfaceRequest<media::mojom::OutputProtection> request);
- OutputProtectionImpl(content::RenderFrameHost* render_frame_host,
- mojo::InterfaceRequest<OutputProtection> request);
+ explicit OutputProtectionImpl(content::RenderFrameHost* render_frame_host);
~OutputProtectionImpl() final;
// media::mojom::OutputProtection implementation.
@@ -28,8 +26,6 @@ class OutputProtectionImpl : public media::mojom::OutputProtection {
const EnableProtectionCallback& callback) final;
private:
- mojo::StrongBinding<media::mojom::OutputProtection> binding_;
-
content::RenderFrameHost* const render_frame_host_;
base::WeakPtrFactory<OutputProtectionImpl> weak_factory_;
« no previous file with comments | « chrome/browser/chromeos/attestation/platform_verification_impl.cc ('k') | chrome/browser/media/output_protection_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698