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

Issue 141163002: Make PrerenderTracker's resource_throttle_io_thread_map_ use RenderFrame IDs instead of RenderView … (Closed)

Created:
6 years, 11 months ago by jam
Modified:
6 years, 11 months ago
Reviewers:
tburkard, davidben, nasko
CC:
chromium-reviews, davidben+watch_chromium.org, cbentzel+watch_chromium.org, joi+watch-content_chromium.org, gavinp+prer_chromium.org, dominich+watch_chromium.org, darin-cc_chromium.org, site-isolation-reviews_chromium.org
Visibility:
Public.

Description

Make PrerenderTracker's resource_throttle_io_thread_map_ use RenderFrame IDs instead of RenderView IDs. BUG=304341 R=davidben@chromium.org, tburkard@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245958

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : fix clang #

Patch Set 4 : sync #

Total comments: 2

Patch Set 5 : simplify code #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -330 lines) Patch
M chrome/browser/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/prerender/prerender_contents.h View 1 2 3 4 3 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/prerender/prerender_contents.cc View 1 2 3 4 7 chunks +22 lines, -5 lines 0 comments Download
M chrome/browser/prerender/prerender_resource_throttle.h View 1 2 3 4 3 chunks +6 lines, -12 lines 0 comments Download
M chrome/browser/prerender/prerender_resource_throttle.cc View 1 2 3 4 5 chunks +4 lines, -40 lines 2 comments Download
M chrome/browser/prerender/prerender_tracker.h View 1 2 3 4 6 chunks +1 line, -38 lines 0 comments Download
M chrome/browser/prerender/prerender_tracker.cc View 1 2 3 4 4 chunks +1 line, -91 lines 0 comments Download
M chrome/browser/prerender/prerender_tracker_unittest.cc View 1 2 3 4 7 chunks +3 lines, -72 lines 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h View 1 2 3 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc View 1 2 3 4 4 chunks +5 lines, -20 lines 0 comments Download
M chrome/browser/ui/search/instant_search_prerenderer_unittest.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 3 chunks +2 lines, -10 lines 0 comments Download
M content/browser/loader/resource_request_info_impl.h View 1 2 3 3 chunks +3 lines, -0 lines 0 comments Download
M content/browser/loader/resource_request_info_impl.cc View 1 2 3 4 chunks +9 lines, -1 line 0 comments Download
M content/browser/loader/resource_scheduler_unittest.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/child/request_extra_data.h View 1 2 3 4 chunks +6 lines, -0 lines 0 comments Download
M content/child/request_extra_data.cc View 1 2 3 1 chunk +17 lines, -14 lines 0 comments Download
M content/child/resource_dispatcher.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M content/child/resource_dispatcher_unittest.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/common/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/common/content_param_traits_macros.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M content/common/resource_messages.h View 1 2 3 1 chunk +3 lines, -0 lines 2 comments Download
M content/public/browser/resource_dispatcher_host_delegate.h View 1 2 3 1 chunk +0 lines, -9 lines 0 comments Download
M content/public/browser/resource_dispatcher_host_delegate.cc View 1 2 3 1 chunk +0 lines, -9 lines 0 comments Download
M content/public/browser/resource_request_info.h View 1 2 3 2 chunks +4 lines, -0 lines 2 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
jam
6 years, 11 months ago (2014-01-16 20:48:34 UTC) #1
tburkard
davidben@ should def. review this too since he wrote the resourcethrottle code. Added a few ...
6 years, 11 months ago (2014-01-17 11:26:11 UTC) #2
jam
ah thanks for the thorough review, I'll update the cl and let you know. David: ...
6 years, 11 months ago (2014-01-17 17:02:45 UTC) #3
jam
On 2014/01/17 17:02:45, jam wrote: > ah thanks for the thorough review, I'll update the ...
6 years, 11 months ago (2014-01-19 23:50:39 UTC) #4
tburkard
lgtm, but please wait for David's review as well. Very elegant! I don't see any ...
6 years, 11 months ago (2014-01-20 10:01:37 UTC) #5
davidben
LGTM! I like moving the throttles to the PrerenderContents instead of keying off a random ...
6 years, 11 months ago (2014-01-20 20:51:57 UTC) #6
jam
TBR=nasko for a trivial addition to content/common/resource_messages.h https://codereview.chromium.org/141163002/diff/1010004/chrome/browser/prerender/prerender_resource_throttle.cc File chrome/browser/prerender/prerender_resource_throttle.cc (right): https://codereview.chromium.org/141163002/diff/1010004/chrome/browser/prerender/prerender_resource_throttle.cc#newcode132 chrome/browser/prerender/prerender_resource_throttle.cc:132: prerender_contents->AddResourceThrottle(throttle); On ...
6 years, 11 months ago (2014-01-21 00:30:08 UTC) #7
nasko
A comment on the IPC change. https://codereview.chromium.org/141163002/diff/1010004/content/common/resource_messages.h File content/common/resource_messages.h (right): https://codereview.chromium.org/141163002/diff/1010004/content/common/resource_messages.h#newcode144 content/common/resource_messages.h:144: IPC_STRUCT_MEMBER(blink::WebPageVisibilityState, visiblity_state) Since ...
6 years, 11 months ago (2014-01-21 18:19:21 UTC) #8
jam
6 years, 11 months ago (2014-01-21 18:54:09 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/141163002/diff/1010004/content/common/resourc...
File content/common/resource_messages.h (right):

https://codereview.chromium.org/141163002/diff/1010004/content/common/resourc...
content/common/resource_messages.h:144:
IPC_STRUCT_MEMBER(blink::WebPageVisibilityState, visiblity_state)
On 2014/01/21 18:19:21, nasko wrote:
> Since this is an enum, we should add at least IPC_ENUM_TRAITS. 

I had added it in content_param_traits_macros.h

> Prefered will be
> IPC_ENUM_TRAITS_MAX_VALUE, but it doesn't look it has a predefined max value
in
> the enum itself.

right, so that's why I used IPC_ENUM_TRAITS

Powered by Google App Engine
This is Rietveld 408576698