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

Issue 2444873002: Move WebMIMERegistry impl from //content to blink:platform/network/mime (Closed)

Created:
4 years, 1 month ago by kinuko
Modified:
4 years, 1 month ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, jam, mlamouri+watch-content_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move WebMIMERegistry impl from //content to blink:platform/network/mime This change does: - Remove WebMIMERegistry from Platform interface - Merge WebMIMERegistry impl into blink::MIMETypeRegistry - Move MIMETypeRegistry.cpp into network/mime (for cleaner DEPS) I will move MIMETypeRegistry.h and other mime-related files into the same directory in a follow-up patch. BUG=561879, 659467 Committed: https://crrev.com/67437352849b595c1c3a20ced14c2be67bcea8e2 Cr-Commit-Position: refs/heads/master@{#430130}

Patch Set 1 #

Total comments: 12

Patch Set 2 : remove mimeRegistry() #

Patch Set 3 : '' #

Patch Set 4 : more fix #

Total comments: 8

Patch Set 5 : test code support #

Total comments: 5

Patch Set 6 : remove indirection #

Total comments: 2

Patch Set 7 : strong binding #

Total comments: 4

Patch Set 8 : fix #

Total comments: 4

Patch Set 9 : comment #

Patch Set 10 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+333 lines, -501 lines) Patch
M content/child/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -2 lines 0 comments Download
M content/child/assert_matching_enums.cc View 1 2 2 chunks +0 lines, -8 lines 0 comments Download
D content/child/simple_webmimeregistry_impl.h View 1 chunk +0 lines, -49 lines 0 comments Download
D content/child/simple_webmimeregistry_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -108 lines 0 comments Download
D content/child/simple_webmimeregistry_impl_unittest.cc View 1 chunk +0 lines, -32 lines 0 comments Download
M content/ppapi_plugin/ppapi_blink_platform_impl.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/ppapi_plugin/ppapi_blink_platform_impl.cc View 1 1 chunk +0 lines, -5 lines 0 comments Download
M content/renderer/renderer_blink_platform_impl.h View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -4 lines 0 comments Download
M content/renderer/renderer_blink_platform_impl.cc View 1 2 3 4 5 6 7 8 9 8 chunks +0 lines, -36 lines 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M content/test/test_blink_web_unit_test_support.h View 1 2 3 4 5 6 7 8 9 3 chunks +0 lines, -3 lines 0 comments Download
M content/test/test_blink_web_unit_test_support.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.cpp View 1 2 3 4 5 6 7 8 9 5 chunks +10 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentLoader.cpp View 1 2 3 4 5 6 7 8 9 3 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/mediasource/MediaSource.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/BUILD.gn View 1 2 3 4 5 6 7 8 9 6 chunks +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/MIMETypeRegistry.h View 1 1 chunk +24 lines, -13 lines 0 comments Download
D third_party/WebKit/Source/platform/MIMETypeRegistry.cpp View 1 1 chunk +0 lines, -135 lines 0 comments Download
M third_party/WebKit/Source/platform/network/DEPS View 1 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/network/mime/MIMETypeRegistry.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +188 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/network/mime/MIMETypeRegistryTest.cpp View 1 2 3 1 chunk +37 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/network/mime/MockMimeRegistry.h View 1 2 3 4 5 6 7 1 chunk +31 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp View 1 2 3 4 5 6 7 8 5 chunks +27 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/public/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/public/platform/Platform.h View 1 2 chunks +0 lines, -4 lines 0 comments Download
D third_party/WebKit/public/platform/WebMimeRegistry.h View 1 1 chunk +0 lines, -66 lines 0 comments Download

Messages

Total messages: 82 (57 generated)
kinuko
Elliott, can you take a look?
4 years, 1 month ago (2016-10-24 15:10:41 UTC) #6
esprehn
I think I would do platform/network/mime, the mime related things seem to be in the ...
4 years, 1 month ago (2016-10-25 00:28:12 UTC) #9
kinuko
Thanks, updated. As is commented inline I merged WebMIMERegistry impl into MIMETypeRegistry.cpp, which made the ...
4 years, 1 month ago (2016-10-27 04:34:35 UTC) #33
esprehn
https://codereview.chromium.org/2444873002/diff/100001/third_party/WebKit/Source/platform/network/mime/MIMETypeRegistry.cpp File third_party/WebKit/Source/platform/network/mime/MIMETypeRegistry.cpp (right): https://codereview.chromium.org/2444873002/diff/100001/third_party/WebKit/Source/platform/network/mime/MIMETypeRegistry.cpp#newcode1 third_party/WebKit/Source/platform/network/mime/MIMETypeRegistry.cpp:1: /* Use the short copyright for all new files, ...
4 years, 1 month ago (2016-10-27 05:20:25 UTC) #36
esprehn
See PasswordInputTypeTest.cpp for an example of mocking at the mojo layer. We shouldn't need to ...
4 years, 1 month ago (2016-10-27 05:22:40 UTC) #38
Reilly Grant (use Gerrit)
Unfortunately Elliot's confidence in my is misplaced as I am not a Blink OWNER. https://codereview.chromium.org/2444873002/diff/120001/third_party/WebKit/Source/platform/network/mime/MockMimeRegistry.h ...
4 years, 1 month ago (2016-10-27 22:31:24 UTC) #43
kinuko
Thanks Elliott! On 2016/10/27 22:31:24, Reilly Grant wrote: > Unfortunately Elliot's confidence in my is ...
4 years, 1 month ago (2016-10-28 00:32:40 UTC) #44
kinuko
https://codereview.chromium.org/2444873002/diff/100001/third_party/WebKit/Source/platform/network/mime/MIMETypeRegistry.cpp File third_party/WebKit/Source/platform/network/mime/MIMETypeRegistry.cpp (right): https://codereview.chromium.org/2444873002/diff/100001/third_party/WebKit/Source/platform/network/mime/MIMETypeRegistry.cpp#newcode1 third_party/WebKit/Source/platform/network/mime/MIMETypeRegistry.cpp:1: /* On 2016/10/27 05:20:25, esprehn wrote: > Use the ...
4 years, 1 month ago (2016-10-28 00:40:07 UTC) #45
kinuko
Ok, removed the indirection. PTAL rellyg: mojo-related changes dcheng: overall network/mime/MIMETypeRegistry.cpp has the largest change, ...
4 years, 1 month ago (2016-10-28 00:48:40 UTC) #46
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2444873002/diff/120001/third_party/WebKit/Source/platform/network/mime/MockMimeRegistry.h File third_party/WebKit/Source/platform/network/mime/MockMimeRegistry.h (right): https://codereview.chromium.org/2444873002/diff/120001/third_party/WebKit/Source/platform/network/mime/MockMimeRegistry.h#newcode17 third_party/WebKit/Source/platform/network/mime/MockMimeRegistry.h:17: class MockMimeRegistryProvider : public blink::InterfaceProvider { On 2016/10/28 at ...
4 years, 1 month ago (2016-10-28 01:04:27 UTC) #47
kinuko
https://codereview.chromium.org/2444873002/diff/120001/third_party/WebKit/Source/platform/network/mime/MockMimeRegistry.h File third_party/WebKit/Source/platform/network/mime/MockMimeRegistry.h (right): https://codereview.chromium.org/2444873002/diff/120001/third_party/WebKit/Source/platform/network/mime/MockMimeRegistry.h#newcode17 third_party/WebKit/Source/platform/network/mime/MockMimeRegistry.h:17: class MockMimeRegistryProvider : public blink::InterfaceProvider { On 2016/10/28 01:04:26, ...
4 years, 1 month ago (2016-10-28 01:09:15 UTC) #49
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2444873002/diff/140001/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp File third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp (right): https://codereview.chromium.org/2444873002/diff/140001/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp#newcode73 third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp:73: mojo::MakeRequest<mojom::blink::MimeRegistry>(std::move(handle)))); Instead of saving the MockMimeRegistry here, which only ...
4 years, 1 month ago (2016-10-28 01:12:41 UTC) #50
kinuko
https://codereview.chromium.org/2444873002/diff/140001/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp File third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp (right): https://codereview.chromium.org/2444873002/diff/140001/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp#newcode73 third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp:73: mojo::MakeRequest<mojom::blink::MimeRegistry>(std::move(handle)))); On 2016/10/28 01:12:41, Reilly Grant wrote: > Instead ...
4 years, 1 month ago (2016-10-28 01:18:46 UTC) #52
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2444873002/diff/160001/third_party/WebKit/Source/platform/network/mime/MIMETypeRegistry.cpp File third_party/WebKit/Source/platform/network/mime/MIMETypeRegistry.cpp (right): https://codereview.chromium.org/2444873002/diff/160001/third_party/WebKit/Source/platform/network/mime/MIMETypeRegistry.cpp#newcode75 third_party/WebKit/Source/platform/network/mime/MIMETypeRegistry.cpp:75: static mojom::blink::MimeRegistryPtr mimeRegistry = getMimeRegistryPtr(); Sorry I didn't notice ...
4 years, 1 month ago (2016-10-28 01:35:44 UTC) #54
kinuko
https://codereview.chromium.org/2444873002/diff/160001/third_party/WebKit/Source/platform/network/mime/MIMETypeRegistry.cpp File third_party/WebKit/Source/platform/network/mime/MIMETypeRegistry.cpp (right): https://codereview.chromium.org/2444873002/diff/160001/third_party/WebKit/Source/platform/network/mime/MIMETypeRegistry.cpp#newcode75 third_party/WebKit/Source/platform/network/mime/MIMETypeRegistry.cpp:75: static mojom::blink::MimeRegistryPtr mimeRegistry = getMimeRegistryPtr(); On 2016/10/28 01:35:44, Reilly ...
4 years, 1 month ago (2016-10-28 15:03:33 UTC) #59
dcheng
I'm not sure if std::string <-> WTF::String conversions have been a problem elsewhere, but it ...
4 years, 1 month ago (2016-10-28 23:50:30 UTC) #62
kinuko
https://codereview.chromium.org/2444873002/diff/180001/third_party/WebKit/Source/platform/network/mime/MIMETypeRegistry.cpp File third_party/WebKit/Source/platform/network/mime/MIMETypeRegistry.cpp (right): https://codereview.chromium.org/2444873002/diff/180001/third_party/WebKit/Source/platform/network/mime/MIMETypeRegistry.cpp#newcode36 third_party/WebKit/Source/platform/network/mime/MIMETypeRegistry.cpp:36: std::string ToASCIIOrEmpty(const String& str) { On 2016/10/28 23:50:30, dcheng ...
4 years, 1 month ago (2016-11-01 14:02:48 UTC) #63
kinuko
On 2016/10/28 23:50:30, dcheng wrote: > I'm not sure if std::string <-> WTF::String conversions have ...
4 years, 1 month ago (2016-11-01 14:10:22 UTC) #64
kinuko
On 2016/10/28 23:50:30, dcheng wrote: > (I also wonder if these helpers are something we ...
4 years, 1 month ago (2016-11-03 01:11:20 UTC) #69
kinuko
Rebased. PTAL?
4 years, 1 month ago (2016-11-04 14:53:51 UTC) #74
Reilly Grant (use Gerrit)
still lgtm
4 years, 1 month ago (2016-11-04 15:11:28 UTC) #75
esprehn
lgtm
4 years, 1 month ago (2016-11-04 22:47:20 UTC) #76
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2444873002/220001
4 years, 1 month ago (2016-11-05 02:35:38 UTC) #78
commit-bot: I haz the power
Committed patchset #10 (id:220001)
4 years, 1 month ago (2016-11-05 02:41:03 UTC) #80
commit-bot: I haz the power
4 years, 1 month ago (2016-11-05 02:43:39 UTC) #82
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/67437352849b595c1c3a20ced14c2be67bcea8e2
Cr-Commit-Position: refs/heads/master@{#430130}

Powered by Google App Engine
This is Rietveld 408576698