OLD | NEW |
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 Loading... |
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 1711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2012 } | 2015 } |
2013 } | 2016 } |
2014 } | 2017 } |
2015 | 2018 |
2016 void NavigationControllerImpl::SetGetTimestampCallbackForTest( | 2019 void NavigationControllerImpl::SetGetTimestampCallbackForTest( |
2017 const base::Callback<base::Time()>& get_timestamp_callback) { | 2020 const base::Callback<base::Time()>& get_timestamp_callback) { |
2018 get_timestamp_callback_ = get_timestamp_callback; | 2021 get_timestamp_callback_ = get_timestamp_callback; |
2019 } | 2022 } |
2020 | 2023 |
2021 } // namespace content | 2024 } // namespace content |
OLD | NEW |