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

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

Issue 2080083002: Revert of Deletes mojo::Callback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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_decryptor_service.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 fb108738424572458b7d2a30cebf48a268f155dc..58b1ce7bd4806cdba3b30846699f1edb7f17e4f0 100644
--- a/media/mojo/services/mojo_renderer_service.h
+++ b/media/mojo/services/mojo_renderer_service.h
@@ -9,7 +9,6 @@
#include <memory>
-#include "base/callback.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
@@ -45,12 +44,12 @@
void Initialize(mojom::RendererClientPtr client,
mojom::DemuxerStreamPtr audio,
mojom::DemuxerStreamPtr video,
- const InitializeCallback& callback) final;
- void Flush(const FlushCallback& callback) final;
+ const mojo::Callback<void(bool)>& callback) final;
+ void Flush(const mojo::Closure& callback) final;
void StartPlayingFrom(int64_t time_delta_usec) final;
void SetPlaybackRate(double playback_rate) final;
void SetVolume(float volume) final;
- void SetCdm(int32_t cdm_id, const SetCdmCallback& callback) final;
+ void SetCdm(int32_t cdm_id, const mojo::Callback<void(bool)>& callback) final;
private:
enum State {
@@ -72,10 +71,10 @@
// Called when the DemuxerStreamProviderShim is ready to go (has a config,
// pipe handle, etc) and can be handed off to a renderer for use.
- void OnStreamReady(const base::Callback<void(bool)>& callback);
+ void OnStreamReady(const mojo::Callback<void(bool)>& callback);
// Called when |audio_renderer_| initialization has completed.
- void OnRendererInitializeDone(const base::Callback<void(bool)>& callback,
+ void OnRendererInitializeDone(const mojo::Callback<void(bool)>& callback,
PipelineStatus status);
// Periodically polls the media time from the renderer and notifies the client
@@ -86,11 +85,11 @@
void SchedulePeriodicMediaTimeUpdates();
// Callback executed once Flush() completes.
- void OnFlushCompleted(const FlushCallback& callback);
+ void OnFlushCompleted(const mojo::Closure& callback);
// Callback executed once SetCdm() completes.
void OnCdmAttached(scoped_refptr<MediaKeys> cdm,
- const base::Callback<void(bool)>& callback,
+ const mojo::Callback<void(bool)>& callback,
bool success);
mojo::StrongBinding<mojom::Renderer> binding_;
« no previous file with comments | « media/mojo/services/mojo_decryptor_service.cc ('k') | media/mojo/services/mojo_renderer_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698