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

Unified Diff: media/blink/cdm_session_adapter.h

Issue 1904253002: Convert //media/blink from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/blink/buffered_resource_loader_unittest.cc ('k') | media/blink/cdm_session_adapter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/cdm_session_adapter.h
diff --git a/media/blink/cdm_session_adapter.h b/media/blink/cdm_session_adapter.h
index 61417db790b9ff1d0218e7296ed385a80e41e87e..50b1fb35a35665a2da6d14f122d9fa7ceed278be 100644
--- a/media/blink/cdm_session_adapter.h
+++ b/media/blink/cdm_session_adapter.h
@@ -37,16 +37,17 @@ class CdmSessionAdapter : public base::RefCounted<CdmSessionAdapter> {
// Creates the CDM for |key_system| using |cdm_factory| and returns the result
// via |result|.
- void CreateCdm(CdmFactory* cdm_factory,
- const std::string& key_system,
- const GURL& security_origin,
- const CdmConfig& cdm_config,
- scoped_ptr<blink::WebContentDecryptionModuleResult> result);
+ void CreateCdm(
+ CdmFactory* cdm_factory,
+ const std::string& key_system,
+ const GURL& security_origin,
+ const CdmConfig& cdm_config,
+ std::unique_ptr<blink::WebContentDecryptionModuleResult> result);
// Provides a server certificate to be used to encrypt messages to the
// license server.
void SetServerCertificate(const std::vector<uint8_t>& certificate,
- scoped_ptr<SimpleCdmPromise> promise);
+ std::unique_ptr<SimpleCdmPromise> promise);
// Creates a new session and adds it to the internal map. The caller owns the
// created session. RemoveSession() must be called when destroying it, if
@@ -68,26 +69,26 @@ class CdmSessionAdapter : public base::RefCounted<CdmSessionAdapter> {
void InitializeNewSession(EmeInitDataType init_data_type,
const std::vector<uint8_t>& init_data,
MediaKeys::SessionType session_type,
- scoped_ptr<NewSessionCdmPromise> promise);
+ std::unique_ptr<NewSessionCdmPromise> promise);
// Loads the session specified by |session_id|.
void LoadSession(MediaKeys::SessionType session_type,
const std::string& session_id,
- scoped_ptr<NewSessionCdmPromise> promise);
+ std::unique_ptr<NewSessionCdmPromise> promise);
// Updates the session specified by |session_id| with |response|.
void UpdateSession(const std::string& session_id,
const std::vector<uint8_t>& response,
- scoped_ptr<SimpleCdmPromise> promise);
+ std::unique_ptr<SimpleCdmPromise> promise);
// Closes the session specified by |session_id|.
void CloseSession(const std::string& session_id,
- scoped_ptr<SimpleCdmPromise> promise);
+ std::unique_ptr<SimpleCdmPromise> promise);
// Removes stored session data associated with the session specified by
// |session_id|.
void RemoveSession(const std::string& session_id,
- scoped_ptr<SimpleCdmPromise> promise);
+ std::unique_ptr<SimpleCdmPromise> promise);
// Returns the CdmContext associated with |media_keys_|.
// TODO(jrummell): Figure out lifetimes, as WMPI may still use the decryptor
@@ -149,7 +150,7 @@ class CdmSessionAdapter : public base::RefCounted<CdmSessionAdapter> {
// OnCdmCreated() call.
uint32_t trace_id_;
- scoped_ptr<blink::WebContentDecryptionModuleResult> cdm_created_result_;
+ std::unique_ptr<blink::WebContentDecryptionModuleResult> cdm_created_result_;
// NOTE: Weak pointers must be invalidated before all other member variables.
base::WeakPtrFactory<CdmSessionAdapter> weak_ptr_factory_;
« no previous file with comments | « media/blink/buffered_resource_loader_unittest.cc ('k') | media/blink/cdm_session_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698