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

Issue 7582004: Add load flag indicating a request is probably the result of a user gesture. (Closed)

Created:
9 years, 4 months ago by Jói
Modified:
9 years, 4 months ago
Reviewers:
cbentzel, jam, yzshen, eroman, yzshen1
CC:
chromium-reviews, Avi (use Gerrit), Paweł Hajdan Jr., jam, cbentzel+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Add load flag indicating a request is probably the result of a user gesture. This gets set by ResourceDispatcherHost on URLRequest objects created soon after a user gesture is detected. Bypass anti-DDoS throttling on this load flag, with option to bypass on other load flags in the future (e.g. possibly LOAD_BYPASS_CACHE). BUG=83775 TEST=net_unittests. Also confirmed manually that the LOAD_MAYBE_USER_GESTURE load flag gets applied appropriately. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96088

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address yzshen's review comments. #

Patch Set 3 : Merge to lkgr. #

Patch Set 4 : Merge to lkgr. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -17 lines) Patch
M content/browser/renderer_host/resource_dispatcher_host.h View 4 chunks +9 lines, -0 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host.cc View 1 4 chunks +20 lines, -1 line 0 comments Download
M content/browser/tab_contents/tab_contents.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M net/base/load_flags_list.h View 1 chunk +4 lines, -0 lines 0 comments Download
M net/url_request/url_request_http_job.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/url_request/url_request_throttler_entry.h View 2 chunks +6 lines, -1 line 0 comments Download
M net/url_request/url_request_throttler_entry.cc View 1 3 chunks +9 lines, -2 lines 0 comments Download
M net/url_request/url_request_throttler_entry_interface.h View 1 1 chunk +5 lines, -2 lines 0 comments Download
M net/url_request/url_request_throttler_simulation_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/url_request/url_request_throttler_unittest.cc View 7 chunks +24 lines, -8 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Jói
yzshen: Main reviewer. jam: content/OWNERS eroman: net/OWNERS Cheers, Jói
9 years, 4 months ago (2011-08-05 13:07:22 UTC) #1
jam
content lgtm
9 years, 4 months ago (2011-08-05 17:03:38 UTC) #2
yzshen1
LGTM Thanks! http://codereview.chromium.org/7582004/diff/1/content/browser/renderer_host/resource_dispatcher_host.cc File content/browser/renderer_host/resource_dispatcher_host.cc (right): http://codereview.chromium.org/7582004/diff/1/content/browser/renderer_host/resource_dispatcher_host.cc#newcode120 content/browser/renderer_host/resource_dispatcher_host.cc:120: // NET_MAYBE_USER_GESTURE load flag. 1) NET_MAYBE_USER_GESTURE -> ...
9 years, 4 months ago (2011-08-05 21:50:41 UTC) #3
Jói
Thanks John and Yuzhu. Yuzhu, I've addressed your comments and uploaded a new version. Cheers, ...
9 years, 4 months ago (2011-08-08 17:09:45 UTC) #4
Jói
eroman: ping for net/OWNERS approval
9 years, 4 months ago (2011-08-08 17:10:39 UTC) #5
yzshen
Thanks, Joi. On Mon, Aug 8, 2011 at 10:09 AM, <joi@chromium.org> wrote: > Thanks John ...
9 years, 4 months ago (2011-08-08 17:12:20 UTC) #6
Jói
eroman: ping for net/OWNERS approval On Mon, Aug 8, 2011 at 5:12 PM, Yuzhu Shen ...
9 years, 4 months ago (2011-08-09 09:19:36 UTC) #7
eroman
A couple concerns: (a) I am not very familiar with the "user gesture" code, but ...
9 years, 4 months ago (2011-08-09 18:52:52 UTC) #8
Jói
Hi Eric, Thanks for the feedback. Based on my testing, clicking a NTP link or ...
9 years, 4 months ago (2011-08-09 20:30:17 UTC) #9
cbentzel
Entered http://code.google.com/p/chromium/issues/detail?id=92214 for the PRERENDER case - I agree that it should be removed, and ...
9 years, 4 months ago (2011-08-09 20:41:37 UTC) #10
eroman
9 years, 4 months ago (2011-08-09 20:53:23 UTC) #11
lgtm then it works with mainframe loads.

Powered by Google App Engine
This is Rietveld 408576698