OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_HANDLE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ |
7 | 7 |
8 #include "content/public/browser/navigation_handle.h" | 8 #include "content/public/browser/navigation_handle.h" |
9 | 9 |
10 #include <stddef.h> | 10 #include <stddef.h> |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 NavigationThrottle::ThrottleCheckResult CheckWillRedirectRequest(); | 254 NavigationThrottle::ThrottleCheckResult CheckWillRedirectRequest(); |
255 NavigationThrottle::ThrottleCheckResult CheckWillProcessResponse(); | 255 NavigationThrottle::ThrottleCheckResult CheckWillProcessResponse(); |
256 | 256 |
257 // Helper function to run and reset the |complete_callback_|. This marks the | 257 // Helper function to run and reset the |complete_callback_|. This marks the |
258 // end of a round of NavigationThrottleChecks. | 258 // end of a round of NavigationThrottleChecks. |
259 void RunCompleteCallback(NavigationThrottle::ThrottleCheckResult result); | 259 void RunCompleteCallback(NavigationThrottle::ThrottleCheckResult result); |
260 | 260 |
261 // Used in tests. | 261 // Used in tests. |
262 State state() const { return state_; } | 262 State state() const { return state_; } |
263 | 263 |
| 264 // Populates |throttles_| with the throttles for this navigation. |
| 265 void RegisterNavigationThrottles(); |
| 266 |
264 // See NavigationHandle for a description of those member variables. | 267 // See NavigationHandle for a description of those member variables. |
265 GURL url_; | 268 GURL url_; |
266 Referrer sanitized_referrer_; | 269 Referrer sanitized_referrer_; |
267 bool has_user_gesture_; | 270 bool has_user_gesture_; |
268 ui::PageTransition transition_; | 271 ui::PageTransition transition_; |
269 bool is_external_protocol_; | 272 bool is_external_protocol_; |
270 net::Error net_error_code_; | 273 net::Error net_error_code_; |
271 RenderFrameHostImpl* render_frame_host_; | 274 RenderFrameHostImpl* render_frame_host_; |
272 const bool is_renderer_initiated_; | 275 const bool is_renderer_initiated_; |
273 bool is_same_page_; | 276 bool is_same_page_; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 | 314 |
312 // Embedder data tied to this navigation. | 315 // Embedder data tied to this navigation. |
313 std::unique_ptr<NavigationData> navigation_data_; | 316 std::unique_ptr<NavigationData> navigation_data_; |
314 | 317 |
315 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl); | 318 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl); |
316 }; | 319 }; |
317 | 320 |
318 } // namespace content | 321 } // namespace content |
319 | 322 |
320 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ | 323 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ |
OLD | NEW |