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

Issue 2561743003: Use associated interface on DownloadedTempFile (Closed)

Created:
4 years ago by tzik
Modified:
3 years, 11 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, kinuko+watch, jsbell+serviceworker_chromium.org, jam, abarth-chromium, darin-cc_chromium.org, loading-reviews_chromium.org, blink-worker-reviews_chromium.org, mlamouri+watch-content_chromium.org, Randy Smith (Not in Mondays), nhiroki, michaeln, shimazu+serviceworker_chromium.org, serviceworker-reviews, Aaron Boodman, kinuko+serviceworker, horo+watch_chromium.org, darin (slow to review), kouhei (in TOK)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use associated interface on DownloadedTempFile Blob systems depends on the ordering of loading IPC messages. That is, the blob creation IPC via XHR is issued before the destruction of DownloadedTempFile, and it expects to the blob IPC is handled before DownloadedTempFile IPC. However in the previous code, that is not guaranteed by Mojo, and that makes Layout tests flaky. This CL switches DownLoadedTempFile in a loading IPC to an associated interface to ensure it preserves the ordering of IPC to other loading IPCs. BUG=670562 Review-Url: https://codereview.chromium.org/2561743003 Cr-Commit-Position: refs/heads/master@{#445611} Committed: https://chromium.googlesource.com/chromium/src/+/ad092abe5691a30391dbc0fd846af75e9917d37b

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : update LayoutTest/TestExpectations #

Total comments: 4

Patch Set 4 : . #

Total comments: 4

Patch Set 5 : +\n. +comment. #

Total comments: 6

Patch Set 6 : rebase #

Patch Set 7 : typo fix #

Total comments: 3

Patch Set 8 : rebase #

Patch Set 9 : rebase #

Patch Set 10 : +NOTREACHED on non frame trasfer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -31 lines) Patch
M content/browser/loader/DEPS View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/loader/downloaded_temp_file_impl.h View 1 2 3 4 5 6 2 chunks +17 lines, -2 lines 0 comments Download
M content/browser/loader/downloaded_temp_file_impl.cc View 1 2 3 4 5 1 chunk +19 lines, -2 lines 0 comments Download
M content/browser/loader/mojo_async_resource_handler.h View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/loader/mojo_async_resource_handler.cc View 1 2 3 4 5 6 7 8 9 5 chunks +17 lines, -6 lines 0 comments Download
M content/browser/loader/mojo_async_resource_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/loader/resource_dispatcher_host_unittest.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/loader/test_url_loader_client.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/loader/test_url_loader_client.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M content/browser/service_worker/service_worker_fetch_dispatcher.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M content/child/url_loader_client_impl.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -3 lines 0 comments Download
M content/child/url_loader_client_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/url_loader.mojom View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/service_worker/service_worker_context_client.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 69 (44 generated)
tzik
PTAL
4 years ago (2016-12-08 08:44:04 UTC) #9
yhirano
lgtm https://codereview.chromium.org/2561743003/diff/40001/content/browser/loader/downloaded_temp_file_impl.cc File content/browser/loader/downloaded_temp_file_impl.cc (right): https://codereview.chromium.org/2561743003/diff/40001/content/browser/loader/downloaded_temp_file_impl.cc#newcode8 content/browser/loader/downloaded_temp_file_impl.cc:8: #include "mojo/public/cpp/bindings/strong_associated_binding.h" +mojo/public/cpp/bindings/associated_group.h https://codereview.chromium.org/2561743003/diff/40001/content/common/url_loader.mojom File content/common/url_loader.mojom (right): https://codereview.chromium.org/2561743003/diff/40001/content/common/url_loader.mojom#newcode38 ...
4 years ago (2016-12-09 03:49:23 UTC) #12
tzik
+mmenke, jam and dcheng for OWNER review. PTAL to: mmenke: overall jam: //content dcheng: *.mojom ...
4 years ago (2016-12-09 07:08:39 UTC) #17
dcheng
mojo lgtm
4 years ago (2016-12-12 09:09:55 UTC) #22
mmenke
https://codereview.chromium.org/2561743003/diff/60001/content/browser/loader/downloaded_temp_file_impl.cc File content/browser/loader/downloaded_temp_file_impl.cc (right): https://codereview.chromium.org/2561743003/diff/60001/content/browser/loader/downloaded_temp_file_impl.cc#newcode20 content/browser/loader/downloaded_temp_file_impl.cc:20: mojo::AssociatedInterfaceRequest<mojom::DownloadedTempFile> request; Are there any docs on what an ...
4 years ago (2016-12-13 20:24:06 UTC) #23
dcheng
https://codereview.chromium.org/2561743003/diff/60001/content/browser/loader/downloaded_temp_file_impl.cc File content/browser/loader/downloaded_temp_file_impl.cc (right): https://codereview.chromium.org/2561743003/diff/60001/content/browser/loader/downloaded_temp_file_impl.cc#newcode20 content/browser/loader/downloaded_temp_file_impl.cc:20: mojo::AssociatedInterfaceRequest<mojom::DownloadedTempFile> request; On 2016/12/13 20:24:06, mmenke wrote: > Are ...
4 years ago (2016-12-13 22:37:44 UTC) #24
tzik
https://codereview.chromium.org/2561743003/diff/60001/content/browser/loader/downloaded_temp_file_impl.h File content/browser/loader/downloaded_temp_file_impl.h (right): https://codereview.chromium.org/2561743003/diff/60001/content/browser/loader/downloaded_temp_file_impl.h#newcode27 content/browser/loader/downloaded_temp_file_impl.h:27: int request_id); On 2016/12/13 20:24:06, mmenke wrote: > Please ...
4 years ago (2016-12-14 07:08:29 UTC) #27
mmenke
On 2016/12/14 07:08:29, tzik wrote: > https://codereview.chromium.org/2561743003/diff/60001/content/browser/loader/downloaded_temp_file_impl.h > File content/browser/loader/downloaded_temp_file_impl.h (right): > > https://codereview.chromium.org/2561743003/diff/60001/content/browser/loader/downloaded_temp_file_impl.h#newcode27 > ...
4 years ago (2016-12-14 23:19:15 UTC) #30
mmenke
https://codereview.chromium.org/2561743003/diff/80001/content/browser/loader/downloaded_temp_file_impl.cc File content/browser/loader/downloaded_temp_file_impl.cc (right): https://codereview.chromium.org/2561743003/diff/80001/content/browser/loader/downloaded_temp_file_impl.cc#newcode25 content/browser/loader/downloaded_temp_file_impl.cc:25: std::move(request)); Sorry for all the round trips, but I ...
4 years ago (2016-12-15 16:48:19 UTC) #31
mmenke
https://codereview.chromium.org/2561743003/diff/80001/content/browser/loader/downloaded_temp_file_impl.cc File content/browser/loader/downloaded_temp_file_impl.cc (right): https://codereview.chromium.org/2561743003/diff/80001/content/browser/loader/downloaded_temp_file_impl.cc#newcode25 content/browser/loader/downloaded_temp_file_impl.cc:25: std::move(request)); On 2016/12/15 16:48:19, mmenke (Out Dec 17 to ...
4 years ago (2016-12-15 16:51:08 UTC) #32
tzik
+yzshen, as a mojo expert. Any opinion about #31 & #32? https://codereview.chromium.org/2561743003/diff/80001/content/browser/loader/downloaded_temp_file_impl.cc File content/browser/loader/downloaded_temp_file_impl.cc (right): ...
3 years, 11 months ago (2017-01-05 10:47:56 UTC) #38
yzshen1
Sorry, I wrote a reply a week ago but forgot to publish it. :/ https://codereview.chromium.org/2561743003/diff/80001/content/browser/loader/downloaded_temp_file_impl.cc ...
3 years, 11 months ago (2017-01-13 15:55:03 UTC) #39
yzshen1
(I will have a more detailed reply in the corresponding mail thread.)
3 years, 11 months ago (2017-01-13 17:45:44 UTC) #40
mmenke
https://codereview.chromium.org/2561743003/diff/80001/content/browser/loader/downloaded_temp_file_impl.cc File content/browser/loader/downloaded_temp_file_impl.cc (right): https://codereview.chromium.org/2561743003/diff/80001/content/browser/loader/downloaded_temp_file_impl.cc#newcode25 content/browser/loader/downloaded_temp_file_impl.cc:25: std::move(request)); On 2017/01/13 15:55:03, yzshen1 wrote: > On 2017/01/05 ...
3 years, 11 months ago (2017-01-13 17:48:33 UTC) #41
mmenke
Sorry, haven't had a chance to follow up on the Mojo discussion today. Ball is ...
3 years, 11 months ago (2017-01-13 20:59:57 UTC) #42
mmenke
On 2017/01/13 20:59:57, mmenke wrote: > Sorry, haven't had a chance to follow up on ...
3 years, 11 months ago (2017-01-18 20:06:43 UTC) #43
mmenke
https://codereview.chromium.org/2561743003/diff/120001/content/browser/loader/mojo_async_resource_handler.cc File content/browser/loader/mojo_async_resource_handler.cc (right): https://codereview.chromium.org/2561743003/diff/120001/content/browser/loader/mojo_async_resource_handler.cc#newcode175 content/browser/loader/mojo_async_resource_handler.cc:175: if (!response->head.download_file_path.empty()) { Hrm....I assume we never do this ...
3 years, 11 months ago (2017-01-18 20:08:53 UTC) #44
tzik
+kinuko-san for //content owner review. PTAL. https://codereview.chromium.org/2561743003/diff/120001/content/browser/loader/mojo_async_resource_handler.cc File content/browser/loader/mojo_async_resource_handler.cc (right): https://codereview.chromium.org/2561743003/diff/120001/content/browser/loader/mojo_async_resource_handler.cc#newcode175 content/browser/loader/mojo_async_resource_handler.cc:175: if (!response->head.download_file_path.empty()) { ...
3 years, 11 months ago (2017-01-19 13:04:41 UTC) #54
kinuko
lgtm
3 years, 11 months ago (2017-01-19 13:08:04 UTC) #55
mmenke
https://codereview.chromium.org/2561743003/diff/120001/content/browser/loader/mojo_async_resource_handler.cc File content/browser/loader/mojo_async_resource_handler.cc (right): https://codereview.chromium.org/2561743003/diff/120001/content/browser/loader/mojo_async_resource_handler.cc#newcode175 content/browser/loader/mojo_async_resource_handler.cc:175: if (!response->head.download_file_path.empty()) { On 2017/01/19 13:04:41, tzik wrote: > ...
3 years, 11 months ago (2017-01-19 13:09:08 UTC) #56
tzik
On 2017/01/19 13:09:08, mmenke wrote: > https://codereview.chromium.org/2561743003/diff/120001/content/browser/loader/mojo_async_resource_handler.cc > File content/browser/loader/mojo_async_resource_handler.cc (right): > > https://codereview.chromium.org/2561743003/diff/120001/content/browser/loader/mojo_async_resource_handler.cc#newcode175 > ...
3 years, 11 months ago (2017-01-23 19:21:34 UTC) #61
mmenke
On 2017/01/23 19:21:34, tzik wrote: > On 2017/01/19 13:09:08, mmenke wrote: > > > https://codereview.chromium.org/2561743003/diff/120001/content/browser/loader/mojo_async_resource_handler.cc ...
3 years, 11 months ago (2017-01-23 19:32:15 UTC) #62
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/2561743003/180001
3 years, 11 months ago (2017-01-24 02:25:23 UTC) #65
commit-bot: I haz the power
Committed patchset #10 (id:180001) as https://chromium.googlesource.com/chromium/src/+/ad092abe5691a30391dbc0fd846af75e9917d37b
3 years, 11 months ago (2017-01-24 02:35:08 UTC) #68
mastiz
3 years, 11 months ago (2017-01-25 09:46:24 UTC) #69
Message was sent while issue was closed.
A revert of this CL (patchset #10 id:180001) has been created in
https://codereview.chromium.org/2658583002/ by mastiz@chromium.org.

The reason for reverting is: Culprit suspect for failing ThreadSanitizer tests,
e.g.
https://uberchromegw.corp.google.com/i/chromium.memory/builders/Linux%20TSan%....

Powered by Google App Engine
This is Rietveld 408576698