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

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

Issue 2510083003: PlzNavigate: properly update NavigationHandle for 204/205 and download responses (Closed)
Patch Set: . 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_REQUEST_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 const BeginNavigationParams& begin_params, 163 const BeginNavigationParams& begin_params,
164 const RequestNavigationParams& request_params, 164 const RequestNavigationParams& request_params,
165 bool browser_initiated, 165 bool browser_initiated,
166 const FrameNavigationEntry* frame_navigation_entry, 166 const FrameNavigationEntry* frame_navigation_entry,
167 const NavigationEntryImpl* navitation_entry); 167 const NavigationEntryImpl* navitation_entry);
168 168
169 // NavigationURLLoaderDelegate implementation. 169 // NavigationURLLoaderDelegate implementation.
170 void OnRequestRedirected( 170 void OnRequestRedirected(
171 const net::RedirectInfo& redirect_info, 171 const net::RedirectInfo& redirect_info,
172 const scoped_refptr<ResourceResponse>& response) override; 172 const scoped_refptr<ResourceResponse>& response) override;
173 void OnResponseStarted( 173 void OnResponseStarted(const scoped_refptr<ResourceResponse>& response,
174 const scoped_refptr<ResourceResponse>& response, 174 std::unique_ptr<StreamHandle> body,
175 std::unique_ptr<StreamHandle> body, 175 const SSLStatus& ssl_status,
176 const SSLStatus& ssl_status, 176 std::unique_ptr<NavigationData> navigation_data,
177 std::unique_ptr<NavigationData> navigation_data) override; 177 bool is_download) override;
178 void OnRequestFailed(bool has_stale_copy_in_cache, int net_error) override; 178 void OnRequestFailed(bool has_stale_copy_in_cache, int net_error) override;
179 void OnRequestStarted(base::TimeTicks timestamp) override; 179 void OnRequestStarted(base::TimeTicks timestamp) override;
180 180
181 // Called when the NavigationThrottles have been checked by the 181 // Called when the NavigationThrottles have been checked by the
182 // NavigationHandle. 182 // NavigationHandle.
183 void OnStartChecksComplete(NavigationThrottle::ThrottleCheckResult result); 183 void OnStartChecksComplete(NavigationThrottle::ThrottleCheckResult result);
184 void OnRedirectChecksComplete(NavigationThrottle::ThrottleCheckResult result); 184 void OnRedirectChecksComplete(NavigationThrottle::ThrottleCheckResult result);
185 void OnWillProcessResponseChecksComplete( 185 void OnWillProcessResponseChecksComplete(
186 NavigationThrottle::ThrottleCheckResult result); 186 NavigationThrottle::ThrottleCheckResult result);
187 187
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 // the WillProcessResponse checks are performed by the NavigationHandle. 228 // the WillProcessResponse checks are performed by the NavigationHandle.
229 scoped_refptr<ResourceResponse> response_; 229 scoped_refptr<ResourceResponse> response_;
230 std::unique_ptr<StreamHandle> body_; 230 std::unique_ptr<StreamHandle> body_;
231 231
232 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); 232 DISALLOW_COPY_AND_ASSIGN(NavigationRequest);
233 }; 233 };
234 234
235 } // namespace content 235 } // namespace content
236 236
237 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ 237 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698