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

Issue 594063: Plumb shift-reload down into newly-added shift-reload API. (Closed)

Created:
10 years, 10 months ago by Evan Martin
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, brettw+cc_chromium.org, ben+cc_chromium.org, darin+cc_chromium.org, Paul Godavari, jam
Visibility:
Public.

Description

linux: plumb shift-reload down into new shift-reload API Currently Linux-only, but the Mac/Win bits should now be trivial. While I was add it, I tweaked a NavigationController function that took a bare boolean into an enum to make the call sites more explicit about what they're doing. (In most places I added new functions that call into a shared backing function; this is so I don't need to change every single caller of e.g. Reload() to pass through an extra flag that will be the same for almost every caller.) BUG=1906 TEST=visit astronomy picture of the day; hit reload, picture pops up quickly; hit shift-reload, picture loads slowly Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=39430

Patch Set 1 #

Total comments: 14

Patch Set 2 : rewrite #

Patch Set 3 : 80 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -23 lines) Patch
M chrome/app/chrome_dll_resource.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/browser.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/browser.cc View 1 5 chunks +16 lines, -1 line 0 comments Download
M chrome/browser/gtk/accelerators_gtk.cc View 1 1 chunk +3 lines, -2 lines 1 comment Download
M chrome/browser/gtk/browser_toolbar_gtk.cc View 1 1 chunk +7 lines, -1 line 0 comments Download
M chrome/browser/tab_contents/navigation_controller.h View 1 3 chunks +12 lines, -1 line 0 comments Download
M chrome/browser/tab_contents/navigation_controller.cc View 1 10 chunks +17 lines, -9 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 1 5 chunks +18 lines, -8 lines 1 comment Download

Messages

Total messages: 15 (0 generated)
Evan Martin
Randomly picking Peter since I think I remember him being opinionated about this; if you ...
10 years, 10 months ago (2010-02-16 11:07:21 UTC) #1
viettrungluu
http://codereview.chromium.org/594063/diff/1/2 File chrome/app/chrome_dll_resource.h (right): http://codereview.chromium.org/594063/diff/1/2#newcode73 chrome/app/chrome_dll_resource.h:73: #define IDC_HOME 33004 If you do this -- renumber ...
10 years, 10 months ago (2010-02-16 14:40:54 UTC) #2
Nico
On 2010/02/16 14:40:54, viettrungluu wrote: > http://codereview.chromium.org/594063/diff/1/2 > File chrome/app/chrome_dll_resource.h (right): > > http://codereview.chromium.org/594063/diff/1/2#newcode73 > ...
10 years, 10 months ago (2010-02-16 14:47:12 UTC) #3
viettrungluu
On 2010/02/16 14:47:12, Nico wrote: > And by this, trungl means that you have to ...
10 years, 10 months ago (2010-02-16 14:51:57 UTC) #4
viettrungluu
Other than trivial style questions (and the emergency PSA), the changes here seem fine. http://codereview.chromium.org/594063/diff/1/4 ...
10 years, 10 months ago (2010-02-16 15:46:23 UTC) #5
darin (slow to review)
http://codereview.chromium.org/594063/diff/1/8 File chrome/browser/tab_contents/navigation_controller.h (right): http://codereview.chromium.org/594063/diff/1/8#newcode139 chrome/browser/tab_contents/navigation_controller.h:139: RELOAD_ALL // Reload all subresources, aka shift-reload. I think ...
10 years, 10 months ago (2010-02-16 18:32:37 UTC) #6
Evan Martin
weep. I verified with this change that clicking reload on a page with a large ...
10 years, 10 months ago (2010-02-16 18:47:30 UTC) #7
Evan Martin
trying that wording one more time: normal reload: refetch page, ignoring all cache control load ...
10 years, 10 months ago (2010-02-16 18:49:55 UTC) #8
Evan Martin
I think I still misunderstood you. :( One more comment: "This applies to all resources ...
10 years, 10 months ago (2010-02-16 19:07:09 UTC) #9
Peter Kasting
I'm wrong to review this. Darin is the right one to say what things should ...
10 years, 10 months ago (2010-02-16 19:11:27 UTC) #10
darin (slow to review)
On Tue, Feb 16, 2010 at 10:49 AM, <evan@chromium.org> wrote: > trying that wording one ...
10 years, 10 months ago (2010-02-16 19:11:35 UTC) #11
Evan Martin
trung/estade: can you check that I didn't break mac and that the gtk bits look ...
10 years, 10 months ago (2010-02-18 13:17:45 UTC) #12
viettrungluu
LGTM on not breaking Mac (well, that TODO line is longer than 80 characters, but ...
10 years, 10 months ago (2010-02-18 15:59:43 UTC) #13
Evan Stade
gtk lgtm http://codereview.chromium.org/594063/diff/9003/8016 File chrome/browser/gtk/accelerators_gtk.cc (right): http://codereview.chromium.org/594063/diff/9003/8016#newcode124 chrome/browser/gtk/accelerators_gtk.cc:124: GdkModifierType(GDK_CONTROL_MASK|GDK_SHIFT_MASK) }, nit: spaces around |
10 years, 10 months ago (2010-02-18 17:11:03 UTC) #14
darin (slow to review)
10 years, 10 months ago (2010-02-18 22:55:42 UTC) #15
LGTM

http://codereview.chromium.org/594063/diff/9003/8020
File chrome/browser/tab_contents/tab_contents.cc (right):

http://codereview.chromium.org/594063/diff/9003/8020#newcode192
chrome/browser/tab_contents/tab_contents.cc:192: case
NavigationController::RELOAD_VALIDATING_CACHE:
nit: maybe you should just stick with RELOAD / RELOAD_IGNORING_CACHE everywhere
instead of sometimes using RELOAD_VALIDATING_CACHE to mean the same thing as
RELOAD?

Powered by Google App Engine
This is Rietveld 408576698