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

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

Issue 1200323003: media: Quit MojoMediaApplication when no service is bound. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase only Created 5 years, 5 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 | « media/mojo/services/mojo_media_application.cc ('k') | media/mojo/services/mojo_renderer_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/mojo_renderer_service.h
diff --git a/media/mojo/services/mojo_renderer_service.h b/media/mojo/services/mojo_renderer_service.h
index 99a504b20be0002e76e619952af368b11d08accb..ddebcbb1682912f042b8f91548de5e40469409af 100644
--- a/media/mojo/services/mojo_renderer_service.h
+++ b/media/mojo/services/mojo_renderer_service.h
@@ -20,6 +20,7 @@
namespace mojo {
class ApplicationConnection;
+class AppRefCount;
}
namespace media {
@@ -37,8 +38,9 @@ class MEDIA_EXPORT MojoRendererService
public:
// |cdm_context_provider| can be used to find the CdmContext to support
// encrypted media. If null, encrypted media is not supported.
- MojoRendererService(CdmContextProvider* cdm_context_provider,
- mojo::InterfaceRequest<mojo::MediaRenderer> request);
+ MojoRendererService(mojo::InterfaceRequest<mojo::MediaRenderer> request,
+ CdmContextProvider* cdm_context_provider,
+ scoped_ptr<mojo::AppRefCount> parent_app_refcount);
~MojoRendererService() final;
// mojo::MediaRenderer implementation.
@@ -96,8 +98,8 @@ class MEDIA_EXPORT MojoRendererService
void OnCdmAttached(const mojo::Callback<void(bool)>& callback, bool success);
mojo::StrongBinding<mojo::MediaRenderer> binding_;
-
CdmContextProvider* cdm_context_provider_;
+ scoped_ptr<mojo::AppRefCount> parent_app_refcount_;
State state_;
« no previous file with comments | « media/mojo/services/mojo_media_application.cc ('k') | media/mojo/services/mojo_renderer_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698