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

Unified Diff: media/mojo/services/mojo_cdm_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_cdm_promise.h ('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 b2df1faa12322c7a717df0896c1d5a72677db203..2e1aa78225c6c3dbb2a9c6a8dce6d8db165f936b 100644
--- a/media/mojo/services/mojo_cdm_service.h
+++ b/media/mojo/services/mojo_cdm_service.h
@@ -55,23 +55,29 @@
const mojo::String& security_origin,
mojom::CdmConfigPtr cdm_config,
const InitializeCallback& callback) final;
- void SetServerCertificate(mojo::Array<uint8_t> certificate_data,
- const SetServerCertificateCallback& callback) final;
+ void SetServerCertificate(
+ mojo::Array<uint8_t> certificate_data,
+ const mojo::Callback<void(mojom::CdmPromiseResultPtr)>& callback) final;
void CreateSessionAndGenerateRequest(
mojom::ContentDecryptionModule::SessionType session_type,
mojom::ContentDecryptionModule::InitDataType init_data_type,
mojo::Array<uint8_t> init_data,
- const CreateSessionAndGenerateRequestCallback& callback) final;
+ const mojo::Callback<void(mojom::CdmPromiseResultPtr, mojo::String)>&
+ callback) final;
void LoadSession(mojom::ContentDecryptionModule::SessionType session_type,
const mojo::String& session_id,
- const LoadSessionCallback& callback) final;
- void UpdateSession(const mojo::String& session_id,
- mojo::Array<uint8_t> response,
- const UpdateSessionCallback& callback) final;
- void CloseSession(const mojo::String& session_id,
- const CloseSessionCallback& callback) final;
- void RemoveSession(const mojo::String& session_id,
- const RemoveSessionCallback& callback) final;
+ const mojo::Callback<void(mojom::CdmPromiseResultPtr,
+ mojo::String)>& callback) final;
+ void UpdateSession(
+ const mojo::String& session_id,
+ mojo::Array<uint8_t> response,
+ const mojo::Callback<void(mojom::CdmPromiseResultPtr)>& callback) final;
+ void CloseSession(
+ const mojo::String& session_id,
+ const mojo::Callback<void(mojom::CdmPromiseResultPtr)>& callback) final;
+ void RemoveSession(
+ const mojo::String& session_id,
+ const mojo::Callback<void(mojom::CdmPromiseResultPtr)>& callback) final;
// Get CDM to be used by the media pipeline.
scoped_refptr<MediaKeys> GetCdm();
« no previous file with comments | « media/mojo/services/mojo_cdm_promise.h ('k') | media/mojo/services/mojo_cdm_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698