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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 | 164 |
165 FrameTreeNode* frame_tree_node_; | 165 FrameTreeNode* frame_tree_node_; |
166 | 166 |
167 // Initialized on creation of the NavigationRequest. Sent to the renderer when | 167 // Initialized on creation of the NavigationRequest. Sent to the renderer when |
168 // the navigation is ready to commit. | 168 // the navigation is ready to commit. |
169 // Note: When the navigation is ready to commit, the url in |common_params| | 169 // Note: When the navigation is ready to commit, the url in |common_params| |
170 // will be set to the final navigation url, obtained after following all | 170 // will be set to the final navigation url, obtained after following all |
171 // redirects. | 171 // redirects. |
172 // Note: |common_params_| and |begin_params_| are not const as they can be | 172 // Note: |common_params_| and |begin_params_| are not const as they can be |
173 // modified during redirects. | 173 // modified during redirects. |
| 174 // Note: |request_params_| is not const because service_worker_provider_id |
| 175 // and should_create_service_worker will be set in OnResponseStarted. |
174 CommonNavigationParams common_params_; | 176 CommonNavigationParams common_params_; |
175 BeginNavigationParams begin_params_; | 177 BeginNavigationParams begin_params_; |
176 const RequestNavigationParams request_params_; | 178 RequestNavigationParams request_params_; |
177 const bool browser_initiated_; | 179 const bool browser_initiated_; |
178 | 180 |
179 NavigationState state_; | 181 NavigationState state_; |
180 | 182 |
181 | 183 |
182 // The parameters to send to the IO thread. |loader_| takes ownership of | 184 // The parameters to send to the IO thread. |loader_| takes ownership of |
183 // |info_| after calling BeginNavigation. | 185 // |info_| after calling BeginNavigation. |
184 scoped_ptr<NavigationRequestInfo> info_; | 186 scoped_ptr<NavigationRequestInfo> info_; |
185 | 187 |
186 scoped_ptr<NavigationURLLoader> loader_; | 188 scoped_ptr<NavigationURLLoader> loader_; |
187 | 189 |
188 // These next items are used in browser-initiated navigations to store | 190 // These next items are used in browser-initiated navigations to store |
189 // information from the NavigationEntryImpl that is required after request | 191 // information from the NavigationEntryImpl that is required after request |
190 // creation time. | 192 // creation time. |
191 scoped_refptr<SiteInstanceImpl> source_site_instance_; | 193 scoped_refptr<SiteInstanceImpl> source_site_instance_; |
192 scoped_refptr<SiteInstanceImpl> dest_site_instance_; | 194 scoped_refptr<SiteInstanceImpl> dest_site_instance_; |
193 NavigationEntryImpl::RestoreType restore_type_; | 195 NavigationEntryImpl::RestoreType restore_type_; |
194 bool is_view_source_; | 196 bool is_view_source_; |
195 int bindings_; | 197 int bindings_; |
196 | 198 |
197 scoped_ptr<NavigationHandleImpl> navigation_handle_; | 199 scoped_ptr<NavigationHandleImpl> navigation_handle_; |
198 | 200 |
199 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); | 201 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); |
200 }; | 202 }; |
201 | 203 |
202 } // namespace content | 204 } // namespace content |
203 | 205 |
204 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ | 206 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ |
OLD | NEW |