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

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

Issue 1923763002: Motown: Ffmpeg video decoder (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Minor fixes per feedback. Created 4 years, 8 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 | « no previous file | services/media/factory_service/media_player_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/media/factory_service/media_player_impl.h
diff --git a/services/media/factory_service/media_player_impl.h b/services/media/factory_service/media_player_impl.h
index b663f7b31e1ac66f911f37bbbd5509118de2f6fc..f9f53df523ceb746c32a5f70ab1fa994033421ae 100644
--- a/services/media/factory_service/media_player_impl.h
+++ b/services/media/factory_service/media_player_impl.h
@@ -97,13 +97,12 @@ class MediaPlayerImpl : public MediaFactoryService::Product,
void SetReportedMediaState(MediaState media_state);
// Prepares a stream.
- void PrepareStream(const std::unique_ptr<Stream>& stream,
+ void PrepareStream(Stream* stream,
const String& url,
const std::function<void()>& callback);
// Creates a sink for a stream.
- // TODO(dalesat): Use raw pointers rather than const std::unique_ptr<>&.
- void CreateSink(const std::unique_ptr<Stream>& stream,
+ void CreateSink(Stream* stream,
const MediaTypePtr& input_media_type,
const String& url,
const std::function<void()>& callback);
@@ -116,7 +115,7 @@ class MediaPlayerImpl : public MediaFactoryService::Product,
// Handles a status update from a sink. When called with the default
// argument values, initiates sink status updates.
- void HandleSinkStatusUpdates(const std::unique_ptr<Stream>& stream,
+ void HandleSinkStatusUpdates(Stream* stream,
uint64_t version = MediaSink::kInitialStatus,
MediaSinkStatusPtr status = nullptr);
« no previous file with comments | « no previous file | services/media/factory_service/media_player_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698