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

Side by Side Diff: content/browser/frame_host/navigation_controller_impl.cc

Issue 1310743003: Consistently use LoFi for an entire page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bengr comments and rebase Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /* 5 /*
6 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 6 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
7 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 7 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * 10 *
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 281
282 void NavigationControllerImpl::Reload(bool check_for_repost) { 282 void NavigationControllerImpl::Reload(bool check_for_repost) {
283 ReloadInternal(check_for_repost, RELOAD); 283 ReloadInternal(check_for_repost, RELOAD);
284 } 284 }
285 void NavigationControllerImpl::ReloadIgnoringCache(bool check_for_repost) { 285 void NavigationControllerImpl::ReloadIgnoringCache(bool check_for_repost) {
286 ReloadInternal(check_for_repost, RELOAD_IGNORING_CACHE); 286 ReloadInternal(check_for_repost, RELOAD_IGNORING_CACHE);
287 } 287 }
288 void NavigationControllerImpl::ReloadOriginalRequestURL(bool check_for_repost) { 288 void NavigationControllerImpl::ReloadOriginalRequestURL(bool check_for_repost) {
289 ReloadInternal(check_for_repost, RELOAD_ORIGINAL_REQUEST_URL); 289 ReloadInternal(check_for_repost, RELOAD_ORIGINAL_REQUEST_URL);
290 } 290 }
291 void NavigationControllerImpl::ReloadDisableLoFi(bool check_for_repost) {
292 ReloadInternal(check_for_repost, RELOAD_DISABLE_LOFI_MODE);
293 }
291 294
292 void NavigationControllerImpl::ReloadInternal(bool check_for_repost, 295 void NavigationControllerImpl::ReloadInternal(bool check_for_repost,
293 ReloadType reload_type) { 296 ReloadType reload_type) {
294 if (transient_entry_index_ != -1) { 297 if (transient_entry_index_ != -1) {
295 // If an interstitial is showing, treat a reload as a navigation to the 298 // If an interstitial is showing, treat a reload as a navigation to the
296 // transient entry's URL. 299 // transient entry's URL.
297 NavigationEntryImpl* transient_entry = GetTransientEntry(); 300 NavigationEntryImpl* transient_entry = GetTransientEntry();
298 if (!transient_entry) 301 if (!transient_entry)
299 return; 302 return;
300 LoadURL(transient_entry->GetURL(), 303 LoadURL(transient_entry->GetURL(),
(...skipping 1718 matching lines...) Expand 10 before | Expand all | Expand 10 after
2019 } 2022 }
2020 } 2023 }
2021 } 2024 }
2022 2025
2023 void NavigationControllerImpl::SetGetTimestampCallbackForTest( 2026 void NavigationControllerImpl::SetGetTimestampCallbackForTest(
2024 const base::Callback<base::Time()>& get_timestamp_callback) { 2027 const base::Callback<base::Time()>& get_timestamp_callback) {
2025 get_timestamp_callback_ = get_timestamp_callback; 2028 get_timestamp_callback_ = get_timestamp_callback;
2026 } 2029 }
2027 2030
2028 } // namespace content 2031 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigation_controller_impl.h ('k') | content/browser/frame_host/navigation_entry_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698