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

Issue 171073002: Move SessionIdAdapter out of WebContentDecryptionModuleImpl (Closed)

Created:
6 years, 10 months ago by jrummell
Modified:
6 years, 10 months ago
Reviewers:
jamesr, xhwang, ddorwin
CC:
chromium-reviews, fischman+watch_chromium.org, jam, mcasas+watch_chromium.org, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Move SessionIdAdapter out of WebContentDecryptionModuleImpl In order to manage the lifetime of the CDM, have WebContentDecryptionModuleImpl and WebContentDecryptionModuleSessionImpl both keep RefPtrs to SessionIdAdapter (now renamed CdmSessionAdapter). CdmSessionAdapter owns the MediaKeys object, so the CDM gets destroyed when there is no more need for it. BUG=341567 TEST=EME content tests pass Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=252226

Patch Set 1 #

Total comments: 9

Patch Set 2 : cdm_session_id_adapter renamed cdm_session_adapter #

Total comments: 28

Patch Set 3 : Changes #

Total comments: 4

Patch Set 4 : Fix DLOG_IF #

Total comments: 4

Patch Set 5 : const refptr #

Unified diffs Side-by-side diffs Delta from patch set Stats (+274 lines, -205 lines) Patch
M content/content_renderer.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
A content/renderer/media/cdm_session_adapter.h View 1 2 3 4 1 chunk +94 lines, -0 lines 0 comments Download
A content/renderer/media/cdm_session_adapter.cc View 1 2 3 1 chunk +149 lines, -0 lines 0 comments Download
M content/renderer/media/webcontentdecryptionmodule_impl.h View 1 3 chunks +5 lines, -9 lines 0 comments Download
M content/renderer/media/webcontentdecryptionmodule_impl.cc View 1 2 3 chunks +10 lines, -177 lines 0 comments Download
M content/renderer/media/webcontentdecryptionmodulesession_impl.h View 1 2 3 4 3 chunks +6 lines, -8 lines 0 comments Download
M content/renderer/media/webcontentdecryptionmodulesession_impl.cc View 1 2 3 4 3 chunks +8 lines, -11 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
jrummell
PTAL.
6 years, 10 months ago (2014-02-18 18:51:19 UTC) #1
ddorwin
The changes look fine (I skipped the new class for now since a rename will ...
6 years, 10 months ago (2014-02-18 20:59:42 UTC) #2
jrummell
Updated, new class renamed CdmSessionAdapter. https://codereview.chromium.org/171073002/diff/1/content/renderer/media/webcontentdecryptionmodule_impl.cc File content/renderer/media/webcontentdecryptionmodule_impl.cc (right): https://codereview.chromium.org/171073002/diff/1/content/renderer/media/webcontentdecryptionmodule_impl.cc#newcode13 content/renderer/media/webcontentdecryptionmodule_impl.cc:13: #include "content/renderer/media/cdm_session_id_adapter.h" On 2014/02/18 ...
6 years, 10 months ago (2014-02-19 00:20:29 UTC) #3
ddorwin
LG overall. https://codereview.chromium.org/171073002/diff/60001/content/renderer/media/cdm_session_adapter.cc File content/renderer/media/cdm_session_adapter.cc (right): https://codereview.chromium.org/171073002/diff/60001/content/renderer/media/cdm_session_adapter.cc#newcode49 content/renderer/media/cdm_session_adapter.cc:49: if (!media_keys_) collapse these 4 lines. OR ...
6 years, 10 months ago (2014-02-19 01:41:52 UTC) #4
jrummell
Updated. https://codereview.chromium.org/171073002/diff/60001/content/renderer/media/cdm_session_adapter.cc File content/renderer/media/cdm_session_adapter.cc (right): https://codereview.chromium.org/171073002/diff/60001/content/renderer/media/cdm_session_adapter.cc#newcode49 content/renderer/media/cdm_session_adapter.cc:49: if (!media_keys_) On 2014/02/19 01:41:53, ddorwin wrote: > ...
6 years, 10 months ago (2014-02-19 20:42:10 UTC) #5
ddorwin
LGTM when comments are fixed. https://codereview.chromium.org/171073002/diff/180001/content/renderer/media/cdm_session_adapter.cc File content/renderer/media/cdm_session_adapter.cc (right): https://codereview.chromium.org/171073002/diff/180001/content/renderer/media/cdm_session_adapter.cc#newcode98 content/renderer/media/cdm_session_adapter.cc:98: DLOG_IF(WARNING, session) << __FUNCTION__ ...
6 years, 10 months ago (2014-02-19 21:09:14 UTC) #6
jrummell
Updated. https://codereview.chromium.org/171073002/diff/180001/content/renderer/media/cdm_session_adapter.cc File content/renderer/media/cdm_session_adapter.cc (right): https://codereview.chromium.org/171073002/diff/180001/content/renderer/media/cdm_session_adapter.cc#newcode98 content/renderer/media/cdm_session_adapter.cc:98: DLOG_IF(WARNING, session) << __FUNCTION__ << " for unknown ...
6 years, 10 months ago (2014-02-19 21:23:14 UTC) #7
xhwang
lgtm % nits. You can address them later. https://codereview.chromium.org/171073002/diff/270001/content/renderer/media/cdm_session_adapter.h File content/renderer/media/cdm_session_adapter.h (right): https://codereview.chromium.org/171073002/diff/270001/content/renderer/media/cdm_session_adapter.h#newcode16 content/renderer/media/cdm_session_adapter.h:16: namespace ...
6 years, 10 months ago (2014-02-19 21:58:04 UTC) #8
jrummell
Updated for nits. +jamesr for OWNERS review of content_renderer.gypi https://codereview.chromium.org/171073002/diff/270001/content/renderer/media/cdm_session_adapter.h File content/renderer/media/cdm_session_adapter.h (right): https://codereview.chromium.org/171073002/diff/270001/content/renderer/media/cdm_session_adapter.h#newcode16 content/renderer/media/cdm_session_adapter.h:16: ...
6 years, 10 months ago (2014-02-19 22:51:26 UTC) #9
jamesr
content_renderer.gypi lgtm (maybe we should have a * rule for the gypis for file additions/removals ...
6 years, 10 months ago (2014-02-19 22:56:51 UTC) #10
jrummell
The CQ bit was checked by jrummell@chromium.org
6 years, 10 months ago (2014-02-19 22:58:31 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jrummell@chromium.org/171073002/250002
6 years, 10 months ago (2014-02-19 23:19:48 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jrummell@chromium.org/171073002/250002
6 years, 10 months ago (2014-02-20 01:12:19 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jrummell@chromium.org/171073002/250002
6 years, 10 months ago (2014-02-20 04:58:45 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jrummell@chromium.org/171073002/250002
6 years, 10 months ago (2014-02-20 08:56:54 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jrummell@chromium.org/171073002/250002
6 years, 10 months ago (2014-02-20 12:24:00 UTC) #16
commit-bot: I haz the power
6 years, 10 months ago (2014-02-20 13:47:56 UTC) #17
Message was sent while issue was closed.
Change committed as 252226

Powered by Google App Engine
This is Rietveld 408576698