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

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

Issue 2552663002: NavigationController: merge Reload*() to one Reload() with ReloadType (Closed)
Patch Set: [rebase] Created 4 years 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 bool RemoveEntryAtIndex(int index) override; 76 bool RemoveEntryAtIndex(int index) override;
77 const SessionStorageNamespaceMap& GetSessionStorageNamespaceMap() 77 const SessionStorageNamespaceMap& GetSessionStorageNamespaceMap()
78 const override; 78 const override;
79 SessionStorageNamespace* GetDefaultSessionStorageNamespace() override; 79 SessionStorageNamespace* GetDefaultSessionStorageNamespace() override;
80 bool NeedsReload() const override; 80 bool NeedsReload() const override;
81 void SetNeedsReload() override; 81 void SetNeedsReload() override;
82 void CancelPendingReload() override; 82 void CancelPendingReload() override;
83 void ContinuePendingReload() override; 83 void ContinuePendingReload() override;
84 bool IsInitialNavigation() const override; 84 bool IsInitialNavigation() const override;
85 bool IsInitialBlankNavigation() const override; 85 bool IsInitialBlankNavigation() const override;
86 void Reload(bool check_for_repost, ReloadType reload_type) override;
87 // TODO(toyoshim): Remove following Reload* methods once all callers to use
88 // new Reload() with ReloadType above. http://crbug.com/670232
86 void Reload(bool check_for_repost) override; 89 void Reload(bool check_for_repost) override;
87 void ReloadBypassingCache(bool check_for_repost) override; 90 void ReloadBypassingCache(bool check_for_repost) override;
88 void ReloadOriginalRequestURL(bool check_for_repost) override; 91 void ReloadOriginalRequestURL(bool check_for_repost) override;
89 void ReloadDisableLoFi(bool check_for_repost) override; 92 void ReloadDisableLoFi(bool check_for_repost) override;
90 void NotifyEntryChanged(const NavigationEntry* entry) override; 93 void NotifyEntryChanged(const NavigationEntry* entry) override;
91 void CopyStateFrom(const NavigationController& source) override; 94 void CopyStateFrom(const NavigationController& source) override;
92 void CopyStateFromAndPrune(NavigationController* source, 95 void CopyStateFromAndPrune(NavigationController* source,
93 bool replace_entry) override; 96 bool replace_entry) override;
94 bool CanPruneAllButLastCommitted() override; 97 bool CanPruneAllButLastCommitted() override;
95 void PruneAllButLastCommitted() override; 98 void PruneAllButLastCommitted() override;
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 NavigationHandleImpl* handle); 292 NavigationHandleImpl* handle);
290 void RendererDidNavigateNewSubframe( 293 void RendererDidNavigateNewSubframe(
291 RenderFrameHostImpl* rfh, 294 RenderFrameHostImpl* rfh,
292 const FrameHostMsg_DidCommitProvisionalLoad_Params& params, 295 const FrameHostMsg_DidCommitProvisionalLoad_Params& params,
293 bool is_in_page, 296 bool is_in_page,
294 bool replace_entry); 297 bool replace_entry);
295 bool RendererDidNavigateAutoSubframe( 298 bool RendererDidNavigateAutoSubframe(
296 RenderFrameHostImpl* rfh, 299 RenderFrameHostImpl* rfh,
297 const FrameHostMsg_DidCommitProvisionalLoad_Params& params); 300 const FrameHostMsg_DidCommitProvisionalLoad_Params& params);
298 301
299 // Helper function for code shared between Reload() and
300 // ReloadBypassingCache().
301 void ReloadInternal(bool check_for_repost, ReloadType reload_type);
302
303 // Actually issues the navigation held in pending_entry. 302 // Actually issues the navigation held in pending_entry.
304 void NavigateToPendingEntry(ReloadType reload_type); 303 void NavigateToPendingEntry(ReloadType reload_type);
305 304
306 // Allows the derived class to issue notifications that a load has been 305 // Allows the derived class to issue notifications that a load has been
307 // committed. This will fill in the active entry to the details structure. 306 // committed. This will fill in the active entry to the details structure.
308 void NotifyNavigationEntryCommitted(LoadCommittedDetails* details); 307 void NotifyNavigationEntryCommitted(LoadCommittedDetails* details);
309 308
310 // Updates the virtual URL of an entry to match a new URL, for cases where 309 // Updates the virtual URL of an entry to match a new URL, for cases where
311 // the real renderer URL is derived from the virtual URL, like view-source: 310 // the real renderer URL is derived from the virtual URL, like view-source:
312 void UpdateVirtualURLToURL(NavigationEntryImpl* entry, 311 void UpdateVirtualURLToURL(NavigationEntryImpl* entry,
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 // these are ReloadType::NONE and a null timestamp, respectively. 443 // these are ReloadType::NONE and a null timestamp, respectively.
445 ReloadType last_committed_reload_type_; 444 ReloadType last_committed_reload_type_;
446 base::Time last_committed_reload_time_; 445 base::Time last_committed_reload_time_;
447 446
448 DISALLOW_COPY_AND_ASSIGN(NavigationControllerImpl); 447 DISALLOW_COPY_AND_ASSIGN(NavigationControllerImpl);
449 }; 448 };
450 449
451 } // namespace content 450 } // namespace content
452 451
453 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_ 452 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_commands.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