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

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

Issue 1407933010: media: Make MediaKeys ref-counted. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address timav@'s comments. Created 5 years, 2 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: 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 a2424c8a1a8d9ba9ed3c461e31ad910f5dd86a9b..d2330465043fd119debf2a48fba64125cb574092 100644
--- a/media/mojo/services/mojo_cdm_service.h
+++ b/media/mojo/services/mojo_cdm_service.h
@@ -78,7 +78,7 @@ class MojoCdmService : public interfaces::ContentDecryptionModule {
// Callback for CdmFactory::Create().
void OnCdmCreated(int cdm_id,
scoped_ptr<MojoCdmPromise<>> promise,
- scoped_ptr<MediaKeys> cdm,
+ const scoped_refptr<MediaKeys>& cdm,
const std::string& error_message);
// Callbacks for firing session events.
@@ -102,7 +102,7 @@ class MojoCdmService : public interfaces::ContentDecryptionModule {
mojo::ServiceProvider* service_provider_;
CdmFactory* cdm_factory_;
- scoped_ptr<MediaKeys> cdm_;
+ scoped_refptr<MediaKeys> cdm_;
// Set to a valid CDM ID if the |cdm_| is successfully created.
int cdm_id_;

Powered by Google App Engine
This is Rietveld 408576698