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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 scoped_refptr<ResourceRequestBody> body, | 128 scoped_refptr<ResourceRequestBody> body, |
129 bool browser_initiated, | 129 bool browser_initiated, |
130 const FrameNavigationEntry* frame_navigation_entry, | 130 const FrameNavigationEntry* frame_navigation_entry, |
131 const NavigationEntryImpl* navitation_entry); | 131 const NavigationEntryImpl* navitation_entry); |
132 | 132 |
133 // NavigationURLLoaderDelegate implementation. | 133 // NavigationURLLoaderDelegate implementation. |
134 void OnRequestRedirected( | 134 void OnRequestRedirected( |
135 const net::RedirectInfo& redirect_info, | 135 const net::RedirectInfo& redirect_info, |
136 const scoped_refptr<ResourceResponse>& response) override; | 136 const scoped_refptr<ResourceResponse>& response) override; |
137 void OnResponseStarted(const scoped_refptr<ResourceResponse>& response, | 137 void OnResponseStarted(const scoped_refptr<ResourceResponse>& response, |
138 scoped_ptr<StreamHandle> body) override; | 138 scoped_ptr<StreamHandle> body, |
| 139 int navigation_provider_id) override; |
139 void OnRequestFailed(bool has_stale_copy_in_cache, int net_error) override; | 140 void OnRequestFailed(bool has_stale_copy_in_cache, int net_error) override; |
140 void OnRequestStarted(base::TimeTicks timestamp) override; | 141 void OnRequestStarted(base::TimeTicks timestamp) override; |
141 | 142 |
142 FrameTreeNode* frame_tree_node_; | 143 FrameTreeNode* frame_tree_node_; |
143 | 144 |
144 // Initialized on creation of the NavigationRequest. Sent to the renderer when | 145 // Initialized on creation of the NavigationRequest. Sent to the renderer when |
145 // the navigation is ready to commit. | 146 // the navigation is ready to commit. |
146 // Note: When the navigation is ready to commit, the url in |common_params| | 147 // Note: When the navigation is ready to commit, the url in |common_params| |
147 // will be set to the final navigation url, obtained after following all | 148 // will be set to the final navigation url, obtained after following all |
148 // redirects. | 149 // redirects. |
(...skipping 19 matching lines...) Expand all Loading... |
168 NavigationEntryImpl::RestoreType restore_type_; | 169 NavigationEntryImpl::RestoreType restore_type_; |
169 bool is_view_source_; | 170 bool is_view_source_; |
170 int bindings_; | 171 int bindings_; |
171 | 172 |
172 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); | 173 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); |
173 }; | 174 }; |
174 | 175 |
175 } // namespace content | 176 } // namespace content |
176 | 177 |
177 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ | 178 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ |
OLD | NEW |