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

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

Issue 1846653004: Rename IGNORING_CACHE to BYPASSING_CACHE (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 void SetMaxRestoredPageID(int32_t max_id) override; 80 void SetMaxRestoredPageID(int32_t max_id) override;
81 int32_t GetMaxRestoredPageID() const override; 81 int32_t GetMaxRestoredPageID() const override;
82 bool NeedsReload() const override; 82 bool NeedsReload() const override;
83 void SetNeedsReload() override; 83 void SetNeedsReload() override;
84 void CancelPendingReload() override; 84 void CancelPendingReload() override;
85 void ContinuePendingReload() override; 85 void ContinuePendingReload() override;
86 bool IsInitialNavigation() const override; 86 bool IsInitialNavigation() const override;
87 bool IsInitialBlankNavigation() const override; 87 bool IsInitialBlankNavigation() const override;
88 void Reload(bool check_for_repost) override; 88 void Reload(bool check_for_repost) override;
89 void ReloadToRefreshContent(bool check_for_repost) override; 89 void ReloadToRefreshContent(bool check_for_repost) override;
90 void ReloadIgnoringCache(bool check_for_repost) override; 90 void ReloadBypassingCache(bool check_for_repost) override;
91 void ReloadOriginalRequestURL(bool check_for_repost) override; 91 void ReloadOriginalRequestURL(bool check_for_repost) override;
92 void ReloadDisableLoFi(bool check_for_repost) override; 92 void ReloadDisableLoFi(bool check_for_repost) override;
93 void NotifyEntryChanged(const NavigationEntry* entry) override; 93 void NotifyEntryChanged(const NavigationEntry* entry) override;
94 void CopyStateFrom(const NavigationController& source) override; 94 void CopyStateFrom(const NavigationController& source) override;
95 void CopyStateFromAndPrune(NavigationController* source, 95 void CopyStateFromAndPrune(NavigationController* source,
96 bool replace_entry) override; 96 bool replace_entry) override;
97 bool CanPruneAllButLastCommitted() override; 97 bool CanPruneAllButLastCommitted() override;
98 void PruneAllButLastCommitted() override; 98 void PruneAllButLastCommitted() override;
99 void ClearAllScreenshots() override; 99 void ClearAllScreenshots() override;
100 100
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 RenderFrameHostImpl* rfh, 292 RenderFrameHostImpl* rfh,
293 const FrameHostMsg_DidCommitProvisionalLoad_Params& params); 293 const FrameHostMsg_DidCommitProvisionalLoad_Params& params);
294 void RendererDidNavigateNewSubframe( 294 void RendererDidNavigateNewSubframe(
295 RenderFrameHostImpl* rfh, 295 RenderFrameHostImpl* rfh,
296 const FrameHostMsg_DidCommitProvisionalLoad_Params& params, 296 const FrameHostMsg_DidCommitProvisionalLoad_Params& params,
297 bool replace_entry); 297 bool replace_entry);
298 bool RendererDidNavigateAutoSubframe( 298 bool RendererDidNavigateAutoSubframe(
299 RenderFrameHostImpl* rfh, 299 RenderFrameHostImpl* rfh,
300 const FrameHostMsg_DidCommitProvisionalLoad_Params& params); 300 const FrameHostMsg_DidCommitProvisionalLoad_Params& params);
301 301
302 // Helper function for code shared between Reload() and ReloadIgnoringCache(). 302 // Helper function for code shared between Reload() and
303 // ReloadBypassingCache().
303 void ReloadInternal(bool check_for_repost, ReloadType reload_type); 304 void ReloadInternal(bool check_for_repost, ReloadType reload_type);
304 305
305 // Actually issues the navigation held in pending_entry. 306 // Actually issues the navigation held in pending_entry.
306 void NavigateToPendingEntry(ReloadType reload_type); 307 void NavigateToPendingEntry(ReloadType reload_type);
307 308
308 // Allows the derived class to issue notifications that a load has been 309 // Allows the derived class to issue notifications that a load has been
309 // committed. This will fill in the active entry to the details structure. 310 // committed. This will fill in the active entry to the details structure.
310 void NotifyNavigationEntryCommitted(LoadCommittedDetails* details); 311 void NotifyNavigationEntryCommitted(LoadCommittedDetails* details);
311 312
312 // Updates the virtual URL of an entry to match a new URL, for cases where 313 // Updates the virtual URL of an entry to match a new URL, for cases where
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 // 427 //
427 // A NavigationController may contain NavigationEntries that correspond to 428 // A NavigationController may contain NavigationEntries that correspond to
428 // different StoragePartitions. Even though they are part of the same 429 // different StoragePartitions. Even though they are part of the same
429 // NavigationController, only entries in the same StoragePartition may 430 // NavigationController, only entries in the same StoragePartition may
430 // share session storage state with one another. 431 // share session storage state with one another.
431 SessionStorageNamespaceMap session_storage_namespace_map_; 432 SessionStorageNamespaceMap session_storage_namespace_map_;
432 433
433 // The maximum number of entries that a navigation controller can store. 434 // The maximum number of entries that a navigation controller can store.
434 static size_t max_entry_count_for_testing_; 435 static size_t max_entry_count_for_testing_;
435 436
436 // If a repost is pending, its type (RELOAD or RELOAD_IGNORING_CACHE), 437 // If a repost is pending, its type (RELOAD or RELOAD_BYPASSING_CACHE),
437 // NO_RELOAD otherwise. 438 // NO_RELOAD otherwise.
438 ReloadType pending_reload_; 439 ReloadType pending_reload_;
439 440
440 // Used to get timestamps for newly-created navigation entries. 441 // Used to get timestamps for newly-created navigation entries.
441 base::Callback<base::Time()> get_timestamp_callback_; 442 base::Callback<base::Time()> get_timestamp_callback_;
442 443
443 // Used to smooth out timestamps from |get_timestamp_callback_|. 444 // Used to smooth out timestamps from |get_timestamp_callback_|.
444 // Without this, whenever there is a run of redirects or 445 // Without this, whenever there is a run of redirects or
445 // code-generated navigations, those navigations may occur within 446 // code-generated navigations, those navigations may occur within
446 // the timer resolution, leading to things sometimes showing up in 447 // the timer resolution, leading to things sometimes showing up in
447 // the wrong order in the history view. 448 // the wrong order in the history view.
448 TimeSmoother time_smoother_; 449 TimeSmoother time_smoother_;
449 450
450 scoped_ptr<NavigationEntryScreenshotManager> screenshot_manager_; 451 scoped_ptr<NavigationEntryScreenshotManager> screenshot_manager_;
451 452
452 DISALLOW_COPY_AND_ASSIGN(NavigationControllerImpl); 453 DISALLOW_COPY_AND_ASSIGN(NavigationControllerImpl);
453 }; 454 };
454 455
455 } // namespace content 456 } // namespace content
456 457
457 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_ 458 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigation_controller_android.cc ('k') | content/browser/frame_host/navigation_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698