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

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

Issue 2549373004: PlzNavigate: Call NavigationHandle::WillProcessResponse for 204/205s (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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 214
215 // These next items are used in browser-initiated navigations to store 215 // These next items are used in browser-initiated navigations to store
216 // information from the NavigationEntryImpl that is required after request 216 // information from the NavigationEntryImpl that is required after request
217 // creation time. 217 // creation time.
218 scoped_refptr<SiteInstanceImpl> source_site_instance_; 218 scoped_refptr<SiteInstanceImpl> source_site_instance_;
219 scoped_refptr<SiteInstanceImpl> dest_site_instance_; 219 scoped_refptr<SiteInstanceImpl> dest_site_instance_;
220 RestoreType restore_type_; 220 RestoreType restore_type_;
221 bool is_view_source_; 221 bool is_view_source_;
222 int bindings_; 222 int bindings_;
223 223
224 // Whether the navigation should be sent to a renderer. This is true, except
225 // for 204/205 responses and downloads.
226 bool response_should_be_rendered_;
227
224 // The type of SiteInstance associated with this navigation. 228 // The type of SiteInstance associated with this navigation.
225 AssociatedSiteInstanceType associated_site_instance_type_; 229 AssociatedSiteInstanceType associated_site_instance_type_;
226 230
227 std::unique_ptr<NavigationHandleImpl> navigation_handle_; 231 std::unique_ptr<NavigationHandleImpl> navigation_handle_;
228 232
229 // Holds the ResourceResponse and the StreamHandle for the navigation while 233 // Holds the ResourceResponse and the StreamHandle for the navigation while
230 // the WillProcessResponse checks are performed by the NavigationHandle. 234 // the WillProcessResponse checks are performed by the NavigationHandle.
231 scoped_refptr<ResourceResponse> response_; 235 scoped_refptr<ResourceResponse> response_;
232 std::unique_ptr<StreamHandle> body_; 236 std::unique_ptr<StreamHandle> body_;
233 237
234 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); 238 DISALLOW_COPY_AND_ASSIGN(NavigationRequest);
235 }; 239 };
236 240
237 } // namespace content 241 } // namespace content
238 242
239 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ 243 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698