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

Unified Diff: media/cdm/proxy_decryptor.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/cdm/proxy_decryptor.h
diff --git a/media/cdm/proxy_decryptor.h b/media/cdm/proxy_decryptor.h
index c7f60b94d3692196ab0d2ab0ef6a57196d61d170..8d4d2b862c6990746d27954fe60911d046082282 100644
--- a/media/cdm/proxy_decryptor.h
+++ b/media/cdm/proxy_decryptor.h
@@ -77,7 +77,7 @@ class MEDIA_EXPORT ProxyDecryptor {
void OnCdmCreated(const std::string& key_system,
const GURL& security_origin,
const CdmContextReadyCB& cdm_context_ready_cb,
- scoped_ptr<MediaKeys> cdm,
+ const scoped_refptr<MediaKeys>& cdm,
const std::string& error_message);
void GenerateKeyRequestInternal(EmeInitDataType init_data_type,
@@ -129,7 +129,7 @@ class MEDIA_EXPORT ProxyDecryptor {
bool is_creating_cdm_;
// The real MediaKeys that manages key operations for the ProxyDecryptor.
- scoped_ptr<MediaKeys> media_keys_;
+ scoped_refptr<MediaKeys> media_keys_;
#if defined(OS_CHROMEOS) || defined(OS_ANDROID)
MediaPermission* media_permission_;

Powered by Google App Engine
This is Rietveld 408576698