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

Issue 23678008: Refactor KeySystems code to call a function to populate the info. (Closed)

Created:
7 years, 3 months ago by ddorwin
Modified:
7 years, 3 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Refactor KeySystems code to call a function to populate the info. This allows KeySystems to call GetContentClient()->AddKeySystems() so we can move key system information to chrome/. The new ContentClient API is defined and called, but we still rely on key_systems_info.cc. BUG=224793 TEST=Existing content_unittests and content_browsertests pass. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221932

Patch Set 1 #

Patch Set 2 : Added concrete/parent cross checks; minor cleanup #

Patch Set 3 : rebase only #

Total comments: 4

Patch Set 4 : scherkus review updates #

Total comments: 14

Patch Set 5 : Moved new method from ContentClient to ContentRendererClient & addressed other feedback. #

Patch Set 6 : rebase only #

Patch Set 7 : add missing file #

Total comments: 12

Patch Set 8 : review feedback #

Patch Set 9 : rebase - includes reimplementation of part of r221548 #

Total comments: 10

Patch Set 10 : review feedback #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+291 lines, -191 lines) Patch
M chrome/renderer/chrome_content_renderer_client.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/renderer/content_renderer_client.h View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -0 lines 0 comments Download
M content/public/renderer/content_renderer_client.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
A content/public/renderer/key_system_info.h View 1 2 3 4 5 6 7 1 chunk +65 lines, -0 lines 0 comments Download
A + content/public/renderer/key_system_info.cc View 1 2 3 4 5 6 1 chunk +7 lines, -6 lines 0 comments Download
M content/renderer/media/crypto/key_systems.h View 1 chunk +0 lines, -41 lines 0 comments Download
M content/renderer/media/crypto/key_systems.cc View 1 2 3 4 11 chunks +81 lines, -67 lines 0 comments Download
M content/renderer/media/crypto/key_systems_info.h View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/media/crypto/key_systems_info.cc View 1 2 3 4 5 6 7 8 9 3 chunks +109 lines, -76 lines 1 comment Download
M content/renderer/media/crypto/key_systems_unittest.cc View 1 2 3 4 3 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
ddorwin
xhwang, PTAL at everything. scherkus, PTAL at a high level. The next CL will move ...
7 years, 3 months ago (2013-08-30 22:49:43 UTC) #1
scherkus (not reviewing)
approach seems fine you should s/2012/2013/ in new files https://codereview.chromium.org/23678008/diff/3002/content/renderer/media/crypto/key_systems.cc File content/renderer/media/crypto/key_systems.cc (right): https://codereview.chromium.org/23678008/diff/3002/content/renderer/media/crypto/key_systems.cc#newcode127 content/renderer/media/crypto/key_systems.cc:127: ...
7 years, 3 months ago (2013-09-03 17:56:15 UTC) #2
ddorwin
jam, please review and provide OWNERS approval for all but the last four files (media). ...
7 years, 3 months ago (2013-09-03 19:34:59 UTC) #3
jam
https://codereview.chromium.org/23678008/diff/23001/content/public/common/content_client.h File content/public/common/content_client.h (right): https://codereview.chromium.org/23678008/diff/23001/content/public/common/content_client.h#newcode106 content/public/common/content_client.h:106: virtual void AddKeySystems(std::vector<KeySystemInfo>* key_systems) {} why is this in ...
7 years, 3 months ago (2013-09-03 20:50:52 UTC) #4
scherkus (not reviewing)
https://codereview.chromium.org/23678008/diff/23001/content/renderer/media/crypto/key_systems_info.cc File content/renderer/media/crypto/key_systems_info.cc (right): https://codereview.chromium.org/23678008/diff/23001/content/renderer/media/crypto/key_systems_info.cc#newcode43 content/renderer/media/crypto/key_systems_info.cc:43: bool is_mp4_supported, fix indenting here https://codereview.chromium.org/23678008/diff/23001/content/renderer/media/crypto/key_systems_info.cc#newcode64 content/renderer/media/crypto/key_systems_info.cc:64: #if defined(USE_PROPRIETARY_CODECS) ...
7 years, 3 months ago (2013-09-03 22:22:08 UTC) #5
scherkus (not reviewing)
https://codereview.chromium.org/23678008/diff/23001/content/renderer/media/crypto/key_systems_info.cc File content/renderer/media/crypto/key_systems_info.cc (right): https://codereview.chromium.org/23678008/diff/23001/content/renderer/media/crypto/key_systems_info.cc#newcode105 content/renderer/media/crypto/key_systems_info.cc:105: false, // No AVC1. I still wonder if we ...
7 years, 3 months ago (2013-09-03 22:25:06 UTC) #6
ddorwin
Everything is fixed except the bool/ifdef issue, which we may need to discuss further. That ...
7 years, 3 months ago (2013-09-04 00:41:55 UTC) #7
jam
lgtm
7 years, 3 months ago (2013-09-04 21:11:45 UTC) #8
xhwang
https://codereview.chromium.org/23678008/diff/47001/chrome/renderer/chrome_content_renderer_client.h File chrome/renderer/chrome_content_renderer_client.h (right): https://codereview.chromium.org/23678008/diff/47001/chrome/renderer/chrome_content_renderer_client.h#newcode142 chrome/renderer/chrome_content_renderer_client.h:142: remove this empty line? I don't see why AddKeySystems() ...
7 years, 3 months ago (2013-09-04 21:48:39 UTC) #9
ddorwin
I addressed feedback in PS8. You'll also want to look at PS9 of key_systems_info.cc because ...
7 years, 3 months ago (2013-09-06 18:29:59 UTC) #10
scherkus (not reviewing)
lgtm w/ nits https://codereview.chromium.org/23678008/diff/83001/content/renderer/media/crypto/key_systems_info.cc File content/renderer/media/crypto/key_systems_info.cc (right): https://codereview.chromium.org/23678008/diff/83001/content/renderer/media/crypto/key_systems_info.cc#newcode41 content/renderer/media/crypto/key_systems_info.cc:41: WEBM_VP8_AND_VORBIS = 1, nit: 1 << ...
7 years, 3 months ago (2013-09-06 19:29:59 UTC) #11
ddorwin
https://codereview.chromium.org/23678008/diff/83001/content/renderer/media/crypto/key_systems_info.cc File content/renderer/media/crypto/key_systems_info.cc (right): https://codereview.chromium.org/23678008/diff/83001/content/renderer/media/crypto/key_systems_info.cc#newcode41 content/renderer/media/crypto/key_systems_info.cc:41: WEBM_VP8_AND_VORBIS = 1, On 2013/09/06 19:29:59, scherkus wrote: > ...
7 years, 3 months ago (2013-09-06 21:34:50 UTC) #12
xhwang
lgtm https://codereview.chromium.org/23678008/diff/88001/content/renderer/media/crypto/key_systems_info.cc File content/renderer/media/crypto/key_systems_info.cc (right): https://codereview.chromium.org/23678008/diff/88001/content/renderer/media/crypto/key_systems_info.cc#newcode40 content/renderer/media/crypto/key_systems_info.cc:40: enum SupportedCodecs { Strictly speaking MP4 and WEBM ...
7 years, 3 months ago (2013-09-06 22:47:27 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ddorwin@chromium.org/23678008/88001
7 years, 3 months ago (2013-09-06 22:55:41 UTC) #14
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 3 months ago (2013-09-07 11:36:58 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ddorwin@chromium.org/23678008/88001
7 years, 3 months ago (2013-09-07 18:32:31 UTC) #16
commit-bot: I haz the power
7 years, 3 months ago (2013-09-07 23:28:29 UTC) #17
Message was sent while issue was closed.
Change committed as 221932

Powered by Google App Engine
This is Rietveld 408576698