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

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

Issue 1811913003: PlzNavigate: support NavigationThrottle::WillProcessResponse (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase on top of 1832803002 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_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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 // PlzNavigate 142 // PlzNavigate
143 // Used to start a new renderer-initiated navigation, following a 143 // Used to start a new renderer-initiated navigation, following a
144 // BeginNavigation IPC from the renderer. 144 // BeginNavigation IPC from the renderer.
145 virtual void OnBeginNavigation( 145 virtual void OnBeginNavigation(
146 FrameTreeNode* frame_tree_node, 146 FrameTreeNode* frame_tree_node,
147 const CommonNavigationParams& common_params, 147 const CommonNavigationParams& common_params,
148 const BeginNavigationParams& begin_params, 148 const BeginNavigationParams& begin_params,
149 scoped_refptr<ResourceRequestBody> body); 149 scoped_refptr<ResourceRequestBody> body);
150 150
151 // PlzNavigate 151 // PlzNavigate
152 // Signal |render_frame_host| that a navigation is ready to commit (the
153 // response to the navigation request has been received).
154 virtual void CommitNavigation(NavigationRequest* navigation_request,
155 ResourceResponse* response,
156 scoped_ptr<StreamHandle> body);
157
158 // PlzNavigate
159 // Called when a NavigationRequest for |frame_tree_node| failed. An 152 // Called when a NavigationRequest for |frame_tree_node| failed. An
160 // appropriate RenderFrameHost should be selected and asked to show an error 153 // appropriate RenderFrameHost should be selected and asked to show an error
161 // page. |has_stale_copy_in_cache| is true if there is a stale copy of the 154 // page. |has_stale_copy_in_cache| is true if there is a stale copy of the
162 // unreachable page in cache. 155 // unreachable page in cache.
163 virtual void FailedNavigation(FrameTreeNode* frame_tree_node, 156 virtual void FailedNavigation(FrameTreeNode* frame_tree_node,
164 bool has_stale_copy_in_cache, 157 bool has_stale_copy_in_cache,
165 int error_code) {} 158 int error_code) {}
166 159
167 // PlzNavigate 160 // PlzNavigate
168 // Cancel a NavigationRequest for |frame_tree_node|. Called when 161 // Cancel a NavigationRequest for |frame_tree_node|. Called when
(...skipping 16 matching lines...) Expand all
185 const base::TimeTicks& renderer_before_unload_end_time) {} 178 const base::TimeTicks& renderer_before_unload_end_time) {}
186 179
187 protected: 180 protected:
188 friend class base::RefCounted<Navigator>; 181 friend class base::RefCounted<Navigator>;
189 virtual ~Navigator() {} 182 virtual ~Navigator() {}
190 }; 183 };
191 184
192 } // namespace content 185 } // namespace content
193 186
194 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ 187 #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