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

Issue 1129643002: Moved media mime type and codec checks to media/base/mime_util.* (Closed)

Created:
5 years, 7 months ago by servolk
Modified:
5 years, 7 months ago
CC:
cbentzel+watch_chromium.org, 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

Moved media mime type and codec checks to media/base/mime_util.* BUG=318217 Committed: https://crrev.com/f395553f1e25bea309447770df093ed203ea111e Cr-Commit-Position: refs/heads/master@{#330239}

Patch Set 1 #

Patch Set 2 : Builfix: Updating references to old code #

Patch Set 3 : Moved media mime unit tests from net/base/ to media/base/ #

Patch Set 4 : Buildfix for unit tests #

Patch Set 5 : More build fixes #

Total comments: 7

Patch Set 6 : Mark media/base/mime_util.h functions as MEDIA_EXPORT #

Patch Set 7 : Rebase to ToT #

Patch Set 8 : Make components/mime_util depend on //media/base instead if //media #

Patch Set 9 : Change dependency back to //media, since //media/base is not public #

Patch Set 10 : Add //media dependency for components_unittests #

Patch Set 11 : Add media dependency for mime_util in .gyp file #

Total comments: 23

Patch Set 12 : CR feedback from ddorwin@ #

Total comments: 3

Patch Set 13 : Added missing #include build_config.h #

Total comments: 2

Patch Set 14 : //component/mime_util should not call media::IsSupportedMediaMimeType #

Patch Set 15 : buildfix #

Patch Set 16 : Rebase to ToT since patch failed on some trybots #

Total comments: 6

Patch Set 17 : CR feedback fixes #

Total comments: 6

Patch Set 18 : a few more CR fixes #

Total comments: 2

Patch Set 19 : Use media/base/mime_util.h in //components/mime_util/DEPS #

Unified diffs Side-by-side diffs Delta from patch set Stats (+322 lines, -1432 lines) Patch
M components/html_viewer/web_mime_registry_impl.cc View 1 2 3 4 4 chunks +8 lines, -7 lines 0 comments Download
M components/mime_util/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +5 lines, -0 lines 0 comments Download
M components/mime_util/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M components/mime_util/mime_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +9 lines, -2 lines 0 comments Download
M components/mime_util/mime_util.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +8 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_controller_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +3 lines, -2 lines 0 comments Download
M content/child/DEPS View 1 1 chunk +1 line, -1 line 0 comments Download
M content/child/assert_matching_enums.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M content/renderer/renderer_blink_platform_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +10 lines, -9 lines 0 comments Download
M content/shell/DEPS View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M content/shell/app/shell_main_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +3 lines, -1 line 0 comments Download
M media/base/BUILD.gn View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
A media/base/mime_util.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +76 lines, -0 lines 0 comments Download
A + media/base/mime_util.cc View 1 2 3 4 5 6 7 8 9 10 11 9 chunks +22 lines, -571 lines 0 comments Download
A media/base/mime_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +154 lines, -0 lines 0 comments Download
M media/blink/key_system_config_selector.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +6 lines, -6 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +3 lines, -0 lines 0 comments Download
M net/base/mime_util.h View 3 chunks +0 lines, -56 lines 0 comments Download
M net/base/mime_util.cc View 1 2 3 4 5 6 7 8 9 10 11 9 chunks +2 lines, -632 lines 0 comments Download
M net/base/mime_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +1 line, -141 lines 0 comments Download

Messages

Total messages: 53 (9 generated)
servolk
5 years, 7 months ago (2015-05-06 00:02:33 UTC) #2
Ryan Sleevi
https://codereview.chromium.org/1129643002/diff/80001/media/base/mime_util_unittest.cc File media/base/mime_util_unittest.cc (right): https://codereview.chromium.org/1129643002/diff/80001/media/base/mime_util_unittest.cc#newcode16 media/base/mime_util_unittest.cc:16: TEST(MimeUtilTest, LookupTypes) { CLEANUP: Nothing for non-Android here? ;) ...
5 years, 7 months ago (2015-05-06 00:59:13 UTC) #3
servolk
https://codereview.chromium.org/1129643002/diff/80001/media/base/mime_util_unittest.cc File media/base/mime_util_unittest.cc (right): https://codereview.chromium.org/1129643002/diff/80001/media/base/mime_util_unittest.cc#newcode16 media/base/mime_util_unittest.cc:16: TEST(MimeUtilTest, LookupTypes) { On 2015/05/06 00:59:12, Ryan Sleevi wrote: ...
5 years, 7 months ago (2015-05-06 01:13:39 UTC) #4
servolk
https://codereview.chromium.org/1129643002/diff/80001/media/base/mime_util_unittest.cc File media/base/mime_util_unittest.cc (right): https://codereview.chromium.org/1129643002/diff/80001/media/base/mime_util_unittest.cc#newcode62 media/base/mime_util_unittest.cc:62: #endif On 2015/05/06 01:13:39, servolk wrote: > On 2015/05/06 ...
5 years, 7 months ago (2015-05-06 17:03:56 UTC) #5
servolk
On 2015/05/06 17:03:56, servolk wrote: > https://codereview.chromium.org/1129643002/diff/80001/media/base/mime_util_unittest.cc > File media/base/mime_util_unittest.cc (right): > > https://codereview.chromium.org/1129643002/diff/80001/media/base/mime_util_unittest.cc#newcode62 > ...
5 years, 7 months ago (2015-05-07 22:47:32 UTC) #6
Ryan Sleevi
//net and //components/mime_util LGTM. You still need a //components and //content owner, and jochen@ happens ...
5 years, 7 months ago (2015-05-07 22:57:30 UTC) #8
ddorwin
LG. Most of the comments are about #include "build/build_config.h", which we learned the hard way ...
5 years, 7 months ago (2015-05-08 16:29:19 UTC) #9
servolk
https://codereview.chromium.org/1129643002/diff/200001/components/mime_util/mime_util.cc File components/mime_util/mime_util.cc (right): https://codereview.chromium.org/1129643002/diff/200001/components/mime_util/mime_util.cc#newcode25 components/mime_util/mime_util.cc:25: #if defined(OS_ANDROID) On 2015/05/08 16:29:18, ddorwin wrote: > #include ...
5 years, 7 months ago (2015-05-08 17:33:05 UTC) #10
ddorwin
One missed include. Other than that, LGTM. https://codereview.chromium.org/1129643002/diff/220001/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/1129643002/diff/220001/content/browser/frame_host/navigation_controller_impl.cc#newcode825 content/browser/frame_host/navigation_controller_impl.cc:825: if (!base::CommandLine::ForCurrentProcess()->HasSwitch( ...
5 years, 7 months ago (2015-05-09 02:12:02 UTC) #11
servolk
https://codereview.chromium.org/1129643002/diff/220001/content/renderer/renderer_blink_platform_impl.cc File content/renderer/renderer_blink_platform_impl.cc (right): https://codereview.chromium.org/1129643002/diff/220001/content/renderer/renderer_blink_platform_impl.cc#newcode87 content/renderer/renderer_blink_platform_impl.cc:87: #if defined(OS_ANDROID) On 2015/05/09 02:12:02, ddorwin wrote: > #include ...
5 years, 7 months ago (2015-05-11 19:30:49 UTC) #12
jochen (gone - plz use gerrit)
lgtm
5 years, 7 months ago (2015-05-11 23:37:40 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1129643002/240001
5 years, 7 months ago (2015-05-12 01:15:28 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja/builds/66234)
5 years, 7 months ago (2015-05-12 01:42:44 UTC) #18
sdefresne
not lgtm as iOS depends on //components/mime_util and cannot depends on //media https://codereview.chromium.org/1129643002/diff/240001/components/mime_util/mime_util.gyp File components/mime_util/mime_util.gyp ...
5 years, 7 months ago (2015-05-12 08:45:02 UTC) #20
Ryan Sleevi
On 2015/05/12 08:45:02, sdefresne wrote: > not lgtm as iOS depends on //components/mime_util and cannot ...
5 years, 7 months ago (2015-05-12 16:13:04 UTC) #22
Ryan Sleevi
On 2015/05/12 08:45:02, sdefresne wrote: > not lgtm as iOS depends on //components/mime_util and cannot ...
5 years, 7 months ago (2015-05-12 16:13:07 UTC) #23
sdefresne
On 2015/05/12 16:13:07, Ryan Sleevi wrote: > On 2015/05/12 08:45:02, sdefresne wrote: > > not ...
5 years, 7 months ago (2015-05-12 16:30:05 UTC) #24
servolk
On 2015/05/12 16:30:05, sdefresne wrote: > On 2015/05/12 16:13:07, Ryan Sleevi wrote: > > On ...
5 years, 7 months ago (2015-05-12 16:49:03 UTC) #25
sdefresne
On 2015/05/12 16:49:03, servolk wrote: > On 2015/05/12 16:30:05, sdefresne wrote: > > On 2015/05/12 ...
5 years, 7 months ago (2015-05-12 17:12:21 UTC) #26
jfroy
On 2015/05/12 17:12:21, sdefresne wrote: > On 2015/05/12 16:49:03, servolk wrote: > > On 2015/05/12 ...
5 years, 7 months ago (2015-05-12 17:25:26 UTC) #27
DaleCurtis
I'm unclear on the current state, but we definitely use to build media/ for iOS; ...
5 years, 7 months ago (2015-05-12 17:25:39 UTC) #28
jfroy
On 2015/05/12 17:25:39, DaleCurtis wrote: > I'm unclear on the current state, but we definitely ...
5 years, 7 months ago (2015-05-12 17:28:57 UTC) #29
servolk
On 2015/05/12 17:28:57, jfroy wrote: > On 2015/05/12 17:25:39, DaleCurtis wrote: > > I'm unclear ...
5 years, 7 months ago (2015-05-12 20:24:22 UTC) #30
servolk
On 2015/05/12 20:24:22, servolk wrote: > On 2015/05/12 17:28:57, jfroy wrote: > > On 2015/05/12 ...
5 years, 7 months ago (2015-05-12 20:31:19 UTC) #31
blundell
On 2015/05/12 20:31:19, servolk wrote: > On 2015/05/12 20:24:22, servolk wrote: > > On 2015/05/12 ...
5 years, 7 months ago (2015-05-12 20:35:32 UTC) #32
servolk
On 2015/05/12 20:35:32, blundell wrote: > On 2015/05/12 20:31:19, servolk wrote: > > On 2015/05/12 ...
5 years, 7 months ago (2015-05-12 20:38:33 UTC) #33
Ryan Sleevi
On 2015/05/12 20:38:33, servolk wrote: > Ah, ok, in that case having a separate component ...
5 years, 7 months ago (2015-05-13 02:20:38 UTC) #34
ddorwin
What are the non-media (and non-content?) consumers of the callers of the media code in ...
5 years, 7 months ago (2015-05-13 03:06:39 UTC) #35
Ryan Sleevi
On 2015/05/13 03:06:39, ddorwin wrote: > What are the non-media (and non-content?) consumers of the ...
5 years, 7 months ago (2015-05-13 03:28:37 UTC) #36
ddorwin
On 2015/05/13 03:28:37, Ryan Sleevi wrote: > On 2015/05/13 03:06:39, ddorwin wrote: > > What ...
5 years, 7 months ago (2015-05-13 03:52:41 UTC) #37
sdefresne
On 2015/05/13 03:52:41, ddorwin wrote: > On 2015/05/13 03:28:37, Ryan Sleevi wrote: > > On ...
5 years, 7 months ago (2015-05-13 08:31:59 UTC) #38
servolk
On 2015/05/13 08:31:59, sdefresne wrote: > On 2015/05/13 03:52:41, ddorwin wrote: > > On 2015/05/13 ...
5 years, 7 months ago (2015-05-13 18:34:06 UTC) #39
servolk
https://codereview.chromium.org/1129643002/diff/240001/components/mime_util/mime_util.gyp File components/mime_util/mime_util.gyp (right): https://codereview.chromium.org/1129643002/diff/240001/components/mime_util/mime_util.gyp#newcode13 components/mime_util/mime_util.gyp:13: '../../media/media.gyp:media', On 2015/05/12 08:45:02, sdefresne wrote: > iOS currently ...
5 years, 7 months ago (2015-05-13 18:35:58 UTC) #40
Ryan Sleevi
https://codereview.chromium.org/1129643002/diff/290001/components/BUILD.gn File components/BUILD.gn (right): https://codereview.chromium.org/1129643002/diff/290001/components/BUILD.gn#newcode299 components/BUILD.gn:299: "//media", You need to update this for iOS https://codereview.chromium.org/1129643002/diff/290001/components/mime_util/mime_util.cc ...
5 years, 7 months ago (2015-05-13 23:55:53 UTC) #41
servolk
https://codereview.chromium.org/1129643002/diff/290001/components/BUILD.gn File components/BUILD.gn (right): https://codereview.chromium.org/1129643002/diff/290001/components/BUILD.gn#newcode299 components/BUILD.gn:299: "//media", On 2015/05/13 23:55:53, Ryan Sleevi wrote: > You ...
5 years, 7 months ago (2015-05-14 00:13:23 UTC) #42
ddorwin
A few questions. LG otherwise. https://codereview.chromium.org/1129643002/diff/290002/components/BUILD.gn File components/BUILD.gn (right): https://codereview.chromium.org/1129643002/diff/290002/components/BUILD.gn#newcode306 components/BUILD.gn:306: deps += [ "//media" ...
5 years, 7 months ago (2015-05-14 18:10:00 UTC) #43
servolk
https://codereview.chromium.org/1129643002/diff/290002/components/BUILD.gn File components/BUILD.gn (right): https://codereview.chromium.org/1129643002/diff/290002/components/BUILD.gn#newcode306 components/BUILD.gn:306: deps += [ "//media" ] On 2015/05/14 18:09:59, ddorwin ...
5 years, 7 months ago (2015-05-14 22:30:49 UTC) #44
servolk
On 2015/05/14 22:30:49, servolk wrote: > https://codereview.chromium.org/1129643002/diff/290002/components/BUILD.gn > File components/BUILD.gn (right): > > https://codereview.chromium.org/1129643002/diff/290002/components/BUILD.gn#newcode306 > ...
5 years, 7 months ago (2015-05-15 19:53:36 UTC) #45
ddorwin
LGTM. Thanks.
5 years, 7 months ago (2015-05-15 21:10:34 UTC) #46
Ryan Sleevi
LGTM % 1 nit https://codereview.chromium.org/1129643002/diff/310001/components/mime_util/DEPS File components/mime_util/DEPS (right): https://codereview.chromium.org/1129643002/diff/310001/components/mime_util/DEPS#newcode6 components/mime_util/DEPS:6: "+media/base", # Only for platforms ...
5 years, 7 months ago (2015-05-15 21:30:32 UTC) #47
servolk
https://codereview.chromium.org/1129643002/diff/310001/components/mime_util/DEPS File components/mime_util/DEPS (right): https://codereview.chromium.org/1129643002/diff/310001/components/mime_util/DEPS#newcode6 components/mime_util/DEPS:6: "+media/base", # Only for platforms other than iOS On ...
5 years, 7 months ago (2015-05-15 22:10:31 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1129643002/330001
5 years, 7 months ago (2015-05-15 22:12:46 UTC) #51
commit-bot: I haz the power
Committed patchset #19 (id:330001)
5 years, 7 months ago (2015-05-16 00:02:19 UTC) #52
commit-bot: I haz the power
5 years, 7 months ago (2015-05-18 11:29:30 UTC) #53
Message was sent while issue was closed.
Patchset 19 (id:??) landed as
https://crrev.com/f395553f1e25bea309447770df093ed203ea111e
Cr-Commit-Position: refs/heads/master@{#330239}

Powered by Google App Engine
This is Rietveld 408576698