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

Unified Diff: media/mojo/services/mojo_cdm_service.h

Issue 1134003009: media: Use mojo::StrongBinding in mojo media services. (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
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | media/mojo/services/mojo_cdm_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/mojo_cdm_service.h
diff --git a/media/mojo/services/mojo_cdm_service.h b/media/mojo/services/mojo_cdm_service.h
index a1b1ea0e1bf1adf347539e2df06fbaea45c66306..8e1198afb1c92e17fdf8ff2ae6938cfeb03341f3 100644
--- a/media/mojo/services/mojo_cdm_service.h
+++ b/media/mojo/services/mojo_cdm_service.h
@@ -11,15 +11,15 @@
#include "base/memory/weak_ptr.h"
#include "media/base/media_keys.h"
#include "media/mojo/interfaces/content_decryption_module.mojom.h"
-#include "third_party/mojo/src/mojo/public/cpp/bindings/interface_impl.h"
+#include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h"
namespace media {
// A mojo::ContentDecryptionModule implementation backed by a media::MediaKeys.
-class MojoCdmService
- : public mojo::InterfaceImpl<mojo::ContentDecryptionModule> {
+class MojoCdmService : public mojo::ContentDecryptionModule {
public:
- MojoCdmService(const mojo::String& key_system);
+ MojoCdmService(const mojo::String& key_system,
+ mojo::InterfaceRequest<mojo::ContentDecryptionModule> request);
~MojoCdmService() final;
// mojo::ContentDecryptionModule implementation.
@@ -67,6 +67,8 @@ class MojoCdmService
uint32_t system_code,
const std::string& error_message);
+ mojo::StrongBinding<mojo::ContentDecryptionModule> binding_;
+
scoped_ptr<MediaKeys> cdm_;
mojo::ContentDecryptionModuleClientPtr client_;
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | media/mojo/services/mojo_cdm_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698