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

Unified Diff: content/renderer/media/crypto/renderer_cdm_manager.h

Issue 1160983002: Allows support for persistent session types in BrowserCdm. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase conflicts with https://codereview.chromium.org/1166453002 Created 5 years, 7 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: content/renderer/media/crypto/renderer_cdm_manager.h
diff --git a/content/renderer/media/crypto/renderer_cdm_manager.h b/content/renderer/media/crypto/renderer_cdm_manager.h
index 1ab051324e625b39b24b4b9eecf03f87edc781f0..3a5215f7ad31ca9797fc66aebee88eb5ea99eb98 100644
--- a/content/renderer/media/crypto/renderer_cdm_manager.h
+++ b/content/renderer/media/crypto/renderer_cdm_manager.h
@@ -46,8 +46,13 @@ class RendererCdmManager : public RenderFrameObserver {
void CreateSessionAndGenerateRequest(
int cdm_id,
uint32_t promise_id,
+ media::MediaKeys::SessionType session_type,
CdmHostMsg_CreateSession_InitDataType init_data_type,
const std::vector<uint8>& init_data);
+ void LoadSession(int cdm_id,
+ uint32_t promise_id,
+ media::MediaKeys::SessionType session_type,
+ const std::string& session_id);
void UpdateSession(int cdm_id,
uint32_t promise_id,
const std::string& session_id,
@@ -55,6 +60,9 @@ class RendererCdmManager : public RenderFrameObserver {
void CloseSession(int cdm_id,
uint32_t promise_id,
const std::string& session_id);
+ void RemoveSession(int cdm_id,
+ uint32_t promise_id,
+ const std::string& session_id);
void DestroyCdm(int cdm_id);
// Registers a ProxyMediaKeys object. Returns allocated CDM ID.
« no previous file with comments | « content/renderer/media/crypto/proxy_media_keys.cc ('k') | content/renderer/media/crypto/renderer_cdm_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698