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

Issue 1085783002: Replace image_messages.h with Mojo service (Closed)

Created:
5 years, 8 months ago by haltonhuo
Modified:
5 years, 5 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, nasko+codewatch_chromium.org, jam, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace image_messages.h with Mojo service Implement ImageDownloader service and register it into RenderFrame ServiceRegistry. This Mojo service will do the job did by ImageLoadingHelper before. Re-use mojom files: third_party/mojo_services/src/geometry/public/interfaces/ geometry.mojom skia/public/interfaces/bitmap.mojom TBR=rockot@chromium.org,amistry@google.com,darin@chromium.org,nasko@chromium.org BUG= Committed: https://crrev.com/ca2eabdc854a972db31fec01af6bb22ae643af4c Cr-Commit-Position: refs/heads/master@{#337370}

Patch Set 1 #

Total comments: 26

Patch Set 2 : update based on comments #

Patch Set 3 : rebase to master@{#333882} #

Total comments: 12

Patch Set 4 : resolve review comments #

Total comments: 4

Patch Set 5 : rework based on review comments #

Patch Set 6 : rebase to master@{#336990} #

Patch Set 7 : Fix trybot unit_tests error #

Total comments: 16

Patch Set 8 : Fix review comments on set7 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+353 lines, -460 lines) Patch
M content/browser/BUILD.gn View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 5 6 7 3 chunks +7 lines, -0 lines 1 comment Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 2 chunks +12 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 2 chunks +0 lines, -9 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 6 chunks +38 lines, -46 lines 0 comments Download
M content/common/BUILD.gn View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M content/common/content_message_generator.h View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
A content/common/image_downloader/image_downloader.mojom View 1 2 3 1 chunk +28 lines, -0 lines 0 comments Download
D content/common/image_messages.h View 1 chunk +0 lines, -44 lines 0 comments Download
M content/content.gyp View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 1 comment Download
M content/content_browser.gypi View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M content/content_common_mojo_bindings.gyp View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 5 2 chunks +5 lines, -2 lines 0 comments Download
M content/renderer/BUILD.gn View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/DEPS View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
A content/renderer/image_downloader/image_downloader_impl.h View 1 2 3 4 5 6 7 1 chunk +88 lines, -0 lines 0 comments Download
A + content/renderer/image_downloader/image_downloader_impl.cc View 1 2 3 4 5 6 7 7 chunks +82 lines, -65 lines 0 comments Download
D content/renderer/image_loading_helper.h View 1 chunk +0 lines, -79 lines 0 comments Download
D content/renderer/image_loading_helper.cc View 1 chunk +0 lines, -207 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 3 chunks +12 lines, -4 lines 0 comments Download
M content/test/test_web_contents.h View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M content/test/test_web_contents.cc View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
M ipc/ipc_message_start.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M mojo/mojo_base.gyp View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
A ui/mojo/geometry/mojo_bindings.gyp View 1 2 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 55 (12 generated)
haltonhuo
This CL is come from Leon Han <leon.han@intel.com>, he has "git cl upload" issue inside ...
5 years, 8 months ago (2015-04-14 07:42:35 UTC) #1
leonhsl(Using Gerrit)
This CL is for the intent-to-impl discussed in https://groups.google.com/a/chromium.org/forum/#!topic/mojo-dev/hfO12Iwnxow This CL depends on the CL ...
5 years, 8 months ago (2015-04-14 07:53:18 UTC) #2
Ken Rockot(use gerrit already)
Holding off the LG until the dependent patch lands, but this looks pretty great as-is! ...
5 years, 8 months ago (2015-04-14 16:14:21 UTC) #3
leonhsl(Using Gerrit)
Thank you very much for kindly review and encouragement words:) I'll fix the nit issues ...
5 years, 8 months ago (2015-04-15 02:50:31 UTC) #4
Ken Rockot(use gerrit already)
In this case I am inclined to ignore the presubmit warning, but I could be ...
5 years, 8 months ago (2015-04-15 03:22:32 UTC) #5
Anand Mistry (off Chromium)
I haven't gotten around to reviewing this yet (but I will), but I should say ...
5 years, 8 months ago (2015-04-15 07:20:45 UTC) #7
nasko
Overall it looks good, some minor nits on formatting and comments. I would defer to ...
5 years, 8 months ago (2015-04-15 20:57:22 UTC) #8
Anand Mistry (off Chromium)
First pass comments. Haven't looked too carefully and I'm about to catch a flight. At ...
5 years, 8 months ago (2015-04-16 01:07:16 UTC) #9
Ken Rockot(use gerrit already)
> https://codereview.chromium.org/1085783002/diff/1/third_party/mojo_services/mojo_services_public.gyp#newcode1 > third_party/mojo_services/mojo_services_public.gyp:1: # Copyright 2015 The > Chromium Authors. All rights reserved. > ...
5 years, 8 months ago (2015-04-16 01:09:10 UTC) #10
leonhsl(Using Gerrit)
Thank you all for kindly review and I'll revise code according comments now. Thanks again~
5 years, 8 months ago (2015-04-16 02:58:17 UTC) #12
leonhsl(Using Gerrit)
1. Updated code according review comments, PTAL. 2. Split out another CL https://codereview.chromium.org/1098643002/ from Amistry's ...
5 years, 8 months ago (2015-04-17 06:14:35 UTC) #13
leonhsl(Using Gerrit)
As the dependency /skia part has been submitted, did the rebase and re-uploaded. PTAL, Thanks.
5 years, 6 months ago (2015-06-11 05:23:17 UTC) #14
Anand Mistry (off Chromium)
https://codereview.chromium.org/1085783002/diff/40001/content/browser/image_downloader/image_downloader_dispatcher.h File content/browser/image_downloader/image_downloader_dispatcher.h (right): https://codereview.chromium.org/1085783002/diff/40001/content/browser/image_downloader/image_downloader_dispatcher.h#newcode24 content/browser/image_downloader/image_downloader_dispatcher.h:24: class ImageDownloaderDispatcher : public mojo::ErrorHandler { I'm strongly inclined ...
5 years, 6 months ago (2015-06-12 08:19:38 UTC) #15
leonhsl(Using Gerrit)
Thanks for review. Uploaded new patch, PTAL. https://codereview.chromium.org/1085783002/diff/40001/content/browser/image_downloader/image_downloader_dispatcher.h File content/browser/image_downloader/image_downloader_dispatcher.h (right): https://codereview.chromium.org/1085783002/diff/40001/content/browser/image_downloader/image_downloader_dispatcher.h#newcode24 content/browser/image_downloader/image_downloader_dispatcher.h:24: class ImageDownloaderDispatcher ...
5 years, 6 months ago (2015-06-15 08:09:43 UTC) #16
Anand Mistry (off Chromium)
Adding Sam, who probably has some things to say. https://codereview.chromium.org/1085783002/diff/40001/content/browser/image_downloader/image_downloader_dispatcher.h File content/browser/image_downloader/image_downloader_dispatcher.h (right): https://codereview.chromium.org/1085783002/diff/40001/content/browser/image_downloader/image_downloader_dispatcher.h#newcode24 content/browser/image_downloader/image_downloader_dispatcher.h:24: ...
5 years, 6 months ago (2015-06-16 07:51:36 UTC) #18
leonhsl(Using Gerrit)
On 2015/06/16 07:51:36, Anand Mistry wrote: > > Yes, but the Mojo connection should never ...
5 years, 6 months ago (2015-06-17 11:30:36 UTC) #19
Anand Mistry (off Chromium)
On 2015/06/17 11:30:36, leon.han wrote: > On 2015/06/16 07:51:36, Anand Mistry wrote: > > > ...
5 years, 6 months ago (2015-06-18 00:36:31 UTC) #20
leonhsl(Using Gerrit)
Sorry for late response. PTAL, Thanks~ https://codereview.chromium.org/1085783002/diff/40001/content/browser/image_downloader/image_downloader_dispatcher.h File content/browser/image_downloader/image_downloader_dispatcher.h (right): https://codereview.chromium.org/1085783002/diff/40001/content/browser/image_downloader/image_downloader_dispatcher.h#newcode24 content/browser/image_downloader/image_downloader_dispatcher.h:24: class ImageDownloaderDispatcher : ...
5 years, 6 months ago (2015-06-23 02:18:02 UTC) #21
leonhsl(Using Gerrit)
ping amistry@
5 years, 5 months ago (2015-06-28 09:59:41 UTC) #22
Anand Mistry (off Chromium)
LGTM Sorry this has taken so long. I'm happy with this, but you need to ...
5 years, 5 months ago (2015-07-01 04:17:12 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1085783002/100001
5 years, 5 months ago (2015-07-01 07:46:47 UTC) #26
Anand Mistry (off Chromium)
On 2015/07/01 07:46:47, commit-bot: I haz the power wrote: > CQ is trying da patch. ...
5 years, 5 months ago (2015-07-01 07:53:52 UTC) #27
commit-bot: I haz the power
Exceeded global retry quota
5 years, 5 months ago (2015-07-01 08:23:41 UTC) #29
leonhsl(Using Gerrit)
Hi, Would you PTAL as OWNERs? Thanks~ ping rockot@, nasko@, sky@ amistry@, Thanks a lot ...
5 years, 5 months ago (2015-07-01 08:44:29 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1085783002/120001
5 years, 5 months ago (2015-07-02 01:03:30 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/92810)
5 years, 5 months ago (2015-07-02 01:41:17 UTC) #36
nasko
Looks good overall, but there are some layering issues that need to be resolved. https://codereview.chromium.org/1085783002/diff/120001/content/browser/frame_host/DEPS ...
5 years, 5 months ago (2015-07-02 08:41:07 UTC) #37
Anand Mistry (off Chromium)
https://codereview.chromium.org/1085783002/diff/120001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/1085783002/diff/120001/content/browser/frame_host/render_frame_host_impl.cc#newcode1902 content/browser/frame_host/render_frame_host_impl.cc:1902: mojo::GetProxy(&mojo_image_downloader_)); On 2015/07/02 08:41:07, nasko (paris) wrote: > Can ...
5 years, 5 months ago (2015-07-02 08:56:51 UTC) #38
nasko
On 2015/07/02 08:56:51, Anand Mistry wrote: > https://codereview.chromium.org/1085783002/diff/120001/content/browser/frame_host/render_frame_host_impl.cc > File content/browser/frame_host/render_frame_host_impl.cc (right): > > https://codereview.chromium.org/1085783002/diff/120001/content/browser/frame_host/render_frame_host_impl.cc#newcode1902 ...
5 years, 5 months ago (2015-07-02 09:00:09 UTC) #39
Anand Mistry (off Chromium)
On 2015/07/02 09:00:09, nasko (paris) wrote: > On 2015/07/02 08:56:51, Anand Mistry wrote: > > ...
5 years, 5 months ago (2015-07-02 09:03:53 UTC) #40
nasko
On 2015/07/02 09:03:53, Anand Mistry wrote: > On 2015/07/02 09:00:09, nasko (paris) wrote: > > ...
5 years, 5 months ago (2015-07-02 11:13:33 UTC) #41
leonhsl(Using Gerrit)
On 2015/07/02 08:41:07, nasko (paris) wrote: > Looks good overall, but there are some layering ...
5 years, 5 months ago (2015-07-03 03:49:55 UTC) #42
nasko
On 2015/07/03 03:49:55, leon.han wrote: > On 2015/07/02 08:41:07, nasko (paris) wrote: > > Looks ...
5 years, 5 months ago (2015-07-03 11:11:31 UTC) #43
leonhsl(Using Gerrit)
uploaded patch set #8, PTAL, Thanks~ https://codereview.chromium.org/1085783002/diff/120001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/1085783002/diff/120001/content/browser/frame_host/render_frame_host_impl.cc#newcode1890 content/browser/frame_host/render_frame_host_impl.cc:1890: int RenderFrameHostImpl::DownloadImage( On ...
5 years, 5 months ago (2015-07-06 02:15:26 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1085783002/140001
5 years, 5 months ago (2015-07-06 07:05:22 UTC) #47
nasko
https://codereview.chromium.org/1085783002/diff/140001/content/browser/frame_host/render_frame_host_impl.h File content/browser/frame_host/render_frame_host_impl.h (right): https://codereview.chromium.org/1085783002/diff/140001/content/browser/frame_host/render_frame_host_impl.h#newcode449 content/browser/frame_host/render_frame_host_impl.h:449: // Returns the Mojo ImageDownloader service pointer. You are ...
5 years, 5 months ago (2015-07-06 07:45:23 UTC) #48
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 5 months ago (2015-07-06 08:17:50 UTC) #49
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/ca2eabdc854a972db31fec01af6bb22ae643af4c Cr-Commit-Position: refs/heads/master@{#337370}
5 years, 5 months ago (2015-07-06 08:18:55 UTC) #50
leonhsl(Using Gerrit)
On 2015/07/06 07:45:23, nasko (paris) wrote: > https://codereview.chromium.org/1085783002/diff/140001/content/browser/frame_host/render_frame_host_impl.h > File content/browser/frame_host/render_frame_host_impl.h (right): > > https://codereview.chromium.org/1085783002/diff/140001/content/browser/frame_host/render_frame_host_impl.h#newcode449 ...
5 years, 5 months ago (2015-07-06 08:28:08 UTC) #51
leonhsl(Using Gerrit)
Sorry I just clicked the commit checkbox to try the buildbot but seems now the ...
5 years, 5 months ago (2015-07-06 08:32:06 UTC) #52
leonhsl(Using Gerrit)
On 2015/07/06 08:28:08, leon.han wrote: > On 2015/07/06 07:45:23, nasko (paris) wrote: > > > ...
5 years, 5 months ago (2015-07-06 08:48:33 UTC) #53
nasko
On 2015/07/06 08:32:06, leon.han wrote: > Sorry I just clicked the commit checkbox to try ...
5 years, 5 months ago (2015-07-06 10:00:31 UTC) #54
leonhsl(Using Gerrit)
5 years, 5 months ago (2015-07-06 10:35:35 UTC) #55
Message was sent while issue was closed.
On 2015/07/06 10:00:31, nasko (paris) wrote:
> On 2015/07/06 08:32:06, leon.han wrote:
> > Sorry I just clicked the commit checkbox to try the buildbot but seems now
the
> > patch has been landed...
> > I thought this wouldn't happen because it has not gotten looks good from
> OWNERs.
> > My misunderstanding.
> > But now what should I do?  Thanks~
> 
> In the future, please don't check the CQ box until you have LGTM from all
> owners. There is a CQ dry run you could use if you want to launch a bunch of
try
> jobs at the same time or use "git cl try" from your command line.
> 
> Please prepare a separate patch to address the outstanding issues.

Understood. Will follow the rule strictly in the future.
I'll make a new CL to revise it soon. Thanks~

Powered by Google App Engine
This is Rietveld 408576698