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

Unified Diff: media/base/cdm_factory.h

Issue 1407933010: media: Make MediaKeys ref-counted. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments addressed 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/base/cdm_factory.h
diff --git a/media/base/cdm_factory.h b/media/base/cdm_factory.h
index 4a5cfb7f880416907ebd700a39adca853fdcf83a..a120707847365423539d8c5883b76f5671a524ca 100644
--- a/media/base/cdm_factory.h
+++ b/media/base/cdm_factory.h
@@ -17,7 +17,7 @@ namespace media {
// Callback used when CDM is created. |error_message| only used if
// MediaKeys is null (i.e. CDM can't be created).
-using CdmCreatedCB = base::Callback<void(scoped_ptr<MediaKeys>,
+using CdmCreatedCB = base::Callback<void(const scoped_refptr<MediaKeys>&,
const std::string& error_message)>;
struct CdmConfig;

Powered by Google App Engine
This is Rietveld 408576698