OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |