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

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

Issue 2225343002: Navigation: move RestoreType and ReloadType into a separate file (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [rebase] Created 4 years, 3 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_NAVIGATOR_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "content/browser/frame_host/navigator_delegate.h" 10 #include "content/browser/frame_host/navigator_delegate.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 // 83 //
84 // The entry has a PageID of -1 if newly created (corresponding to navigation 84 // The entry has a PageID of -1 if newly created (corresponding to navigation
85 // to a new URL). 85 // to a new URL).
86 // 86 //
87 // If this method returns false, then the navigation is discarded (equivalent 87 // If this method returns false, then the navigation is discarded (equivalent
88 // to calling DiscardPendingEntry on the NavigationController). 88 // to calling DiscardPendingEntry on the NavigationController).
89 // 89 //
90 // TODO(nasko): Remove this method from the interface, since Navigator and 90 // TODO(nasko): Remove this method from the interface, since Navigator and
91 // NavigationController know about each other. This will be possible once 91 // NavigationController know about each other. This will be possible once
92 // initialization of Navigator and NavigationController is properly done. 92 // initialization of Navigator and NavigationController is properly done.
93 virtual bool NavigateToPendingEntry( 93 virtual bool NavigateToPendingEntry(FrameTreeNode* frame_tree_node,
94 FrameTreeNode* frame_tree_node, 94 const FrameNavigationEntry& frame_entry,
95 const FrameNavigationEntry& frame_entry, 95 ReloadType reload_type,
96 NavigationController::ReloadType reload_type, 96 bool is_same_document_history_load);
97 bool is_same_document_history_load);
98 97
99 // Called on a newly created subframe during a history navigation. The browser 98 // Called on a newly created subframe during a history navigation. The browser
100 // process looks up the corresponding FrameNavigationEntry for the new frame 99 // process looks up the corresponding FrameNavigationEntry for the new frame
101 // based on |unique_name| and navigates it in the correct process. Returns 100 // based on |unique_name| and navigates it in the correct process. Returns
102 // false if the FrameNavigationEntry can't be found or the navigation fails. 101 // false if the FrameNavigationEntry can't be found or the navigation fails.
103 // This is only used in OOPIF-enabled modes. 102 // This is only used in OOPIF-enabled modes.
104 virtual bool NavigateNewChildFrame(RenderFrameHostImpl* render_frame_host, 103 virtual bool NavigateNewChildFrame(RenderFrameHostImpl* render_frame_host,
105 const std::string& unique_name); 104 const std::string& unique_name);
106 105
107 // Navigation requests ------------------------------------------------------- 106 // Navigation requests -------------------------------------------------------
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 const base::TimeTicks& renderer_before_unload_end_time) {} 181 const base::TimeTicks& renderer_before_unload_end_time) {}
183 182
184 protected: 183 protected:
185 friend class base::RefCounted<Navigator>; 184 friend class base::RefCounted<Navigator>;
186 virtual ~Navigator() {} 185 virtual ~Navigator() {}
187 }; 186 };
188 187
189 } // namespace content 188 } // namespace content
190 189
191 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ 190 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigation_request.cc ('k') | content/browser/frame_host/navigator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698