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

Unified Diff: services/media/factory_service/media_sink_impl.h

Issue 1945903006: Motown: Move responsibility for binding to MediaFactoryService::Product (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Change per feedback - rename Abort to UnbindAndReleaseFromOwner Created 4 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: services/media/factory_service/media_sink_impl.h
diff --git a/services/media/factory_service/media_sink_impl.h b/services/media/factory_service/media_sink_impl.h
index 8d098e9ffd3125eaecbb84ce72c483f8a1aff78e..17db63a5cd6d0c99608fb46009a8fc53b19e754b 100644
--- a/services/media/factory_service/media_sink_impl.h
+++ b/services/media/factory_service/media_sink_impl.h
@@ -25,7 +25,8 @@ namespace media {
// Mojo agent that consumes a stream and delivers it to a destination specified
// by URL.
-class MediaSinkImpl : public MediaFactoryService::Product, public MediaSink {
+class MediaSinkImpl : public MediaFactoryService::Product<MediaSink>,
+ public MediaSink {
public:
static std::shared_ptr<MediaSinkImpl> Create(
const String& destination_url,
@@ -56,7 +57,6 @@ class MediaSinkImpl : public MediaFactoryService::Product, public MediaSink {
void MaybeSetRate();
Incident ready_;
- Binding<MediaSink> binding_;
Graph graph_;
std::shared_ptr<MojoConsumer> consumer_;
std::shared_ptr<MojoProducer> producer_;
« no previous file with comments | « services/media/factory_service/media_player_impl.cc ('k') | services/media/factory_service/media_sink_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698