| 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/macros.h" | 8 #include "base/macros.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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 const RequestNavigationParams& request_params, | 148 const RequestNavigationParams& request_params, |
| 149 scoped_refptr<ResourceRequestBody> body, | 149 scoped_refptr<ResourceRequestBody> body, |
| 150 bool browser_initiated, | 150 bool browser_initiated, |
| 151 const FrameNavigationEntry* frame_navigation_entry, | 151 const FrameNavigationEntry* frame_navigation_entry, |
| 152 const NavigationEntryImpl* navitation_entry); | 152 const NavigationEntryImpl* navitation_entry); |
| 153 | 153 |
| 154 // NavigationURLLoaderDelegate implementation. | 154 // NavigationURLLoaderDelegate implementation. |
| 155 void OnRequestRedirected( | 155 void OnRequestRedirected( |
| 156 const net::RedirectInfo& redirect_info, | 156 const net::RedirectInfo& redirect_info, |
| 157 const scoped_refptr<ResourceResponse>& response) override; | 157 const scoped_refptr<ResourceResponse>& response) override; |
| 158 void OnResponseStarted(const scoped_refptr<ResourceResponse>& response, | 158 void OnResponseStarted( |
| 159 scoped_ptr<StreamHandle> body) override; | 159 const scoped_refptr<ResourceResponse>& response, |
| 160 mojo::ScopedDataPipeConsumerHandle data_consumer_handle, |
| 161 int request_id) override; |
| 160 void OnRequestFailed(bool has_stale_copy_in_cache, int net_error) override; | 162 void OnRequestFailed(bool has_stale_copy_in_cache, int net_error) override; |
| 161 void OnRequestStarted(base::TimeTicks timestamp) override; | 163 void OnRequestStarted(base::TimeTicks timestamp) override; |
| 162 | 164 |
| 163 // Called when the NavigationThrottles have been checked by the | 165 // Called when the NavigationThrottles have been checked by the |
| 164 // NavigationHandle. | 166 // NavigationHandle. |
| 165 void OnStartChecksComplete(NavigationThrottle::ThrottleCheckResult result); | 167 void OnStartChecksComplete(NavigationThrottle::ThrottleCheckResult result); |
| 166 void OnRedirectChecksComplete(NavigationThrottle::ThrottleCheckResult result); | 168 void OnRedirectChecksComplete(NavigationThrottle::ThrottleCheckResult result); |
| 167 | 169 |
| 168 // Called when the navigation is about to be sent to the IO thread. | 170 // Called when the navigation is about to be sent to the IO thread. |
| 169 void InitializeServiceWorkerHandleIfNeeded(); | 171 void InitializeServiceWorkerHandleIfNeeded(); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 int bindings_; | 205 int bindings_; |
| 204 | 206 |
| 205 scoped_ptr<NavigationHandleImpl> navigation_handle_; | 207 scoped_ptr<NavigationHandleImpl> navigation_handle_; |
| 206 | 208 |
| 207 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); | 209 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); |
| 208 }; | 210 }; |
| 209 | 211 |
| 210 } // namespace content | 212 } // namespace content |
| 211 | 213 |
| 212 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ | 214 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ |
| OLD | NEW |