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 <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 FrameTreeNode* frame_tree_node() const { return frame_tree_node_; } | 116 FrameTreeNode* frame_tree_node() const { return frame_tree_node_; } |
117 | 117 |
118 SiteInstanceImpl* source_site_instance() const { | 118 SiteInstanceImpl* source_site_instance() const { |
119 return source_site_instance_.get(); | 119 return source_site_instance_.get(); |
120 } | 120 } |
121 | 121 |
122 SiteInstanceImpl* dest_site_instance() const { | 122 SiteInstanceImpl* dest_site_instance() const { |
123 return dest_site_instance_.get(); | 123 return dest_site_instance_.get(); |
124 } | 124 } |
125 | 125 |
126 NavigationEntryImpl::RestoreType restore_type() const { | 126 RestoreType restore_type() const { return restore_type_; }; |
127 return restore_type_; | |
128 }; | |
129 | 127 |
130 bool is_view_source() const { return is_view_source_; }; | 128 bool is_view_source() const { return is_view_source_; }; |
131 | 129 |
132 int bindings() const { return bindings_; }; | 130 int bindings() const { return bindings_; }; |
133 | 131 |
134 bool browser_initiated() const { return browser_initiated_ ; } | 132 bool browser_initiated() const { return browser_initiated_ ; } |
135 | 133 |
136 void SetWaitingForRendererResponse() { | 134 void SetWaitingForRendererResponse() { |
137 DCHECK(state_ == NOT_STARTED); | 135 DCHECK(state_ == NOT_STARTED); |
138 state_ = WAITING_FOR_RENDERER_RESPONSE; | 136 state_ = WAITING_FOR_RENDERER_RESPONSE; |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 // |info_| after calling BeginNavigation. | 214 // |info_| after calling BeginNavigation. |
217 std::unique_ptr<NavigationRequestInfo> info_; | 215 std::unique_ptr<NavigationRequestInfo> info_; |
218 | 216 |
219 std::unique_ptr<NavigationURLLoader> loader_; | 217 std::unique_ptr<NavigationURLLoader> loader_; |
220 | 218 |
221 // These next items are used in browser-initiated navigations to store | 219 // These next items are used in browser-initiated navigations to store |
222 // information from the NavigationEntryImpl that is required after request | 220 // information from the NavigationEntryImpl that is required after request |
223 // creation time. | 221 // creation time. |
224 scoped_refptr<SiteInstanceImpl> source_site_instance_; | 222 scoped_refptr<SiteInstanceImpl> source_site_instance_; |
225 scoped_refptr<SiteInstanceImpl> dest_site_instance_; | 223 scoped_refptr<SiteInstanceImpl> dest_site_instance_; |
226 NavigationEntryImpl::RestoreType restore_type_; | 224 RestoreType restore_type_; |
227 bool is_view_source_; | 225 bool is_view_source_; |
228 int bindings_; | 226 int bindings_; |
229 | 227 |
230 // The type of SiteInstance associated with this navigation. | 228 // The type of SiteInstance associated with this navigation. |
231 AssociatedSiteInstanceType associated_site_instance_type_; | 229 AssociatedSiteInstanceType associated_site_instance_type_; |
232 | 230 |
233 std::unique_ptr<NavigationHandleImpl> navigation_handle_; | 231 std::unique_ptr<NavigationHandleImpl> navigation_handle_; |
234 | 232 |
235 // Holds the ResourceResponse and the StreamHandle for the navigation while | 233 // Holds the ResourceResponse and the StreamHandle for the navigation while |
236 // the WillProcessResponse checks are performed by the NavigationHandle. | 234 // the WillProcessResponse checks are performed by the NavigationHandle. |
237 scoped_refptr<ResourceResponse> response_; | 235 scoped_refptr<ResourceResponse> response_; |
238 std::unique_ptr<StreamHandle> body_; | 236 std::unique_ptr<StreamHandle> body_; |
239 | 237 |
240 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); | 238 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); |
241 }; | 239 }; |
242 | 240 |
243 } // namespace content | 241 } // namespace content |
244 | 242 |
245 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ | 243 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ |
OLD | NEW |