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

Issue 1052273004: Extract requestMediaKeySystemAccess() algorithm. (Closed)

Created:
5 years, 8 months ago by sandersd (OOO until July 31)
Modified:
5 years, 8 months ago
Reviewers:
jrummell, ddorwin
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Extract requestMediaKeySystemAccess() algorithm. This separates the Chromium side of requestMediaKeySystemAccess() into the Blink interface implementation (WebEncryptedMediaClientImpl), which also handles the UMAs, and the core algorithm (KeySystemConfigSelector). This should make it easy to test the core algorithm. BUG=468912 Committed: https://crrev.com/ac2d3244accf7e64f6507ca9ae972adc63976a5f Cr-Commit-Position: refs/heads/master@{#323983}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase. #

Total comments: 18

Patch Set 3 : #

Patch Set 4 : Rebase. #

Patch Set 5 : Rebase. #

Patch Set 6 : Class vs struct forward declarations. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+329 lines, -899 lines) Patch
M media/base/key_systems.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M media/base/key_systems.cc View 1 2 7 chunks +17 lines, -16 lines 0 comments Download
M media/base/key_systems_unittest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M media/blink/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A media/blink/key_system_config_selector.h View 1 2 3 4 5 1 chunk +91 lines, -0 lines 0 comments Download
A + media/blink/key_system_config_selector.cc View 1 2 3 17 chunks +141 lines, -226 lines 0 comments Download
M media/blink/media_blink.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M media/blink/webcontentdecryptionmoduleaccess_impl.h View 1 2 2 chunks +4 lines, -10 lines 0 comments Download
M media/blink/webcontentdecryptionmoduleaccess_impl.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M media/blink/webencryptedmediaclient_impl.h View 1 2 3 4 5 2 chunks +24 lines, -16 lines 0 comments Download
M media/blink/webencryptedmediaclient_impl.cc View 1 2 5 chunks +45 lines, -627 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
sandersd (OOO until July 31)
We'll want to be careful to merge in any changes that are made in WebEncryptedMediaClient ...
5 years, 8 months ago (2015-04-02 20:28:33 UTC) #2
sandersd (OOO until July 31)
https://codereview.chromium.org/1052273004/diff/1/media/blink/webencryptedmediaclient_impl.cc File media/blink/webencryptedmediaclient_impl.cc (right): https://codereview.chromium.org/1052273004/diff/1/media/blink/webencryptedmediaclient_impl.cc#newcode84 media/blink/webencryptedmediaclient_impl.cc:84: key_system_config_selector_(&KeySystems::GetInstance(), media_permission), This makes me think that GetInstance() should ...
5 years, 8 months ago (2015-04-02 20:37:50 UTC) #3
ddorwin
First pass (did not do a detailed review in all files). https://codereview.chromium.org/1052273004/diff/20001/media/blink/key_system_config_selector.cc File media/blink/key_system_config_selector.cc (right): ...
5 years, 8 months ago (2015-04-03 22:09:18 UTC) #4
ddorwin
https://codereview.chromium.org/1052273004/diff/1/media/blink/webencryptedmediaclient_impl.cc File media/blink/webencryptedmediaclient_impl.cc (right): https://codereview.chromium.org/1052273004/diff/1/media/blink/webencryptedmediaclient_impl.cc#newcode84 media/blink/webencryptedmediaclient_impl.cc:84: key_system_config_selector_(&KeySystems::GetInstance(), media_permission), On 2015/04/02 20:37:50, sandersd wrote: > This ...
5 years, 8 months ago (2015-04-03 22:36:46 UTC) #5
sandersd (OOO until July 31)
https://codereview.chromium.org/1052273004/diff/20001/media/blink/key_system_config_selector.cc File media/blink/key_system_config_selector.cc (right): https://codereview.chromium.org/1052273004/diff/20001/media/blink/key_system_config_selector.cc#newcode58 media/blink/key_system_config_selector.cc:58: ConfigState(const SelectionRequest* request) On 2015/04/03 22:09:17, ddorwin wrote: > ...
5 years, 8 months ago (2015-04-03 22:44:58 UTC) #6
jrummell
lgtm
5 years, 8 months ago (2015-04-06 21:26:42 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1052273004/120001
5 years, 8 months ago (2015-04-06 22:30:42 UTC) #10
commit-bot: I haz the power
Committed patchset #6 (id:120001)
5 years, 8 months ago (2015-04-07 00:11:37 UTC) #11
commit-bot: I haz the power
5 years, 8 months ago (2015-04-07 00:12:39 UTC) #12
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/ac2d3244accf7e64f6507ca9ae972adc63976a5f
Cr-Commit-Position: refs/heads/master@{#323983}

Powered by Google App Engine
This is Rietveld 408576698