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

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

Issue 958083002: PlzNavigate: Show error pages when the navigation failed before commit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@support-data-urls
Patch Set: Updated test Created 5 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 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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 scoped_refptr<ResourceRequestBody> body, 127 scoped_refptr<ResourceRequestBody> body,
128 bool browser_initiated, 128 bool browser_initiated,
129 const NavigationEntryImpl* navitation_entry); 129 const NavigationEntryImpl* navitation_entry);
130 130
131 // NavigationURLLoaderDelegate implementation. 131 // NavigationURLLoaderDelegate implementation.
132 void OnRequestRedirected( 132 void OnRequestRedirected(
133 const net::RedirectInfo& redirect_info, 133 const net::RedirectInfo& redirect_info,
134 const scoped_refptr<ResourceResponse>& response) override; 134 const scoped_refptr<ResourceResponse>& response) override;
135 void OnResponseStarted(const scoped_refptr<ResourceResponse>& response, 135 void OnResponseStarted(const scoped_refptr<ResourceResponse>& response,
136 scoped_ptr<StreamHandle> body) override; 136 scoped_ptr<StreamHandle> body) override;
137 void OnRequestFailed(int net_error) override; 137 void OnRequestFailed(bool has_stale_copy_in_cache, int net_error) override;
138 void OnRequestStarted(base::TimeTicks timestamp) override; 138 void OnRequestStarted(base::TimeTicks timestamp) override;
139 139
140 FrameTreeNode* frame_tree_node_; 140 FrameTreeNode* frame_tree_node_;
141 141
142 // Initialized on creation of the NavigationRequest. Sent to the renderer when 142 // Initialized on creation of the NavigationRequest. Sent to the renderer when
143 // the navigation is ready to commit. 143 // the navigation is ready to commit.
144 // Note: When the navigation is ready to commit, the url in |common_params| 144 // Note: When the navigation is ready to commit, the url in |common_params|
145 // will be set to the final navigation url, obtained after following all 145 // will be set to the final navigation url, obtained after following all
146 // redirects. 146 // redirects.
147 CommonNavigationParams common_params_; 147 CommonNavigationParams common_params_;
(...skipping 18 matching lines...) Expand all
166 NavigationEntryImpl::RestoreType restore_type_; 166 NavigationEntryImpl::RestoreType restore_type_;
167 bool is_view_source_; 167 bool is_view_source_;
168 int bindings_; 168 int bindings_;
169 169
170 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); 170 DISALLOW_COPY_AND_ASSIGN(NavigationRequest);
171 }; 171 };
172 172
173 } // namespace content 173 } // namespace content
174 174
175 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ 175 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_
OLDNEW
« no previous file with comments | « content/browser/browser_side_navigation_browsertest.cc ('k') | content/browser/frame_host/navigation_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698