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