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 "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 const Referrer& GetReferrer() override; | 69 const Referrer& GetReferrer() override; |
70 bool HasUserGesture() override; | 70 bool HasUserGesture() override; |
71 ui::PageTransition GetPageTransition() override; | 71 ui::PageTransition GetPageTransition() override; |
72 bool IsExternalProtocol() override; | 72 bool IsExternalProtocol() override; |
73 net::Error GetNetErrorCode() override; | 73 net::Error GetNetErrorCode() override; |
74 RenderFrameHostImpl* GetRenderFrameHost() override; | 74 RenderFrameHostImpl* GetRenderFrameHost() override; |
75 bool IsSamePage() override; | 75 bool IsSamePage() override; |
76 bool HasCommitted() override; | 76 bool HasCommitted() override; |
77 bool IsErrorPage() override; | 77 bool IsErrorPage() override; |
78 void Resume() override; | 78 void Resume() override; |
| 79 void CancelDeferredNavigation(bool ignore) override; |
79 void RegisterThrottleForTesting( | 80 void RegisterThrottleForTesting( |
80 scoped_ptr<NavigationThrottle> navigation_throttle) override; | 81 scoped_ptr<NavigationThrottle> navigation_throttle) override; |
81 NavigationThrottle::ThrottleCheckResult CallWillStartRequestForTesting( | 82 NavigationThrottle::ThrottleCheckResult CallWillStartRequestForTesting( |
82 bool is_post, | 83 bool is_post, |
83 const Referrer& sanitized_referrer, | 84 const Referrer& sanitized_referrer, |
84 bool has_user_gesture, | 85 bool has_user_gesture, |
85 ui::PageTransition transition, | 86 ui::PageTransition transition, |
86 bool is_external_protocol) override; | 87 bool is_external_protocol) override; |
87 NavigationThrottle::ThrottleCheckResult CallWillRedirectRequestForTesting( | 88 NavigationThrottle::ThrottleCheckResult CallWillRedirectRequestForTesting( |
88 const GURL& new_url, | 89 const GURL& new_url, |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 DID_COMMIT, | 161 DID_COMMIT, |
161 DID_COMMIT_ERROR_PAGE, | 162 DID_COMMIT_ERROR_PAGE, |
162 }; | 163 }; |
163 | 164 |
164 NavigationHandleImpl(const GURL& url, | 165 NavigationHandleImpl(const GURL& url, |
165 FrameTreeNode* frame_tree_node); | 166 FrameTreeNode* frame_tree_node); |
166 | 167 |
167 NavigationThrottle::ThrottleCheckResult CheckWillStartRequest(); | 168 NavigationThrottle::ThrottleCheckResult CheckWillStartRequest(); |
168 NavigationThrottle::ThrottleCheckResult CheckWillRedirectRequest(); | 169 NavigationThrottle::ThrottleCheckResult CheckWillRedirectRequest(); |
169 | 170 |
| 171 void RunCompleteCallback(NavigationThrottle::ThrottleCheckResult result); |
| 172 |
170 // Used in tests. | 173 // Used in tests. |
171 State state() const { return state_; } | 174 State state() const { return state_; } |
172 | 175 |
173 // See NavigationHandle for a description of those member variables. | 176 // See NavigationHandle for a description of those member variables. |
174 GURL url_; | 177 GURL url_; |
175 bool is_post_; | 178 bool is_post_; |
176 Referrer sanitized_referrer_; | 179 Referrer sanitized_referrer_; |
177 bool has_user_gesture_; | 180 bool has_user_gesture_; |
178 ui::PageTransition transition_; | 181 ui::PageTransition transition_; |
179 bool is_external_protocol_; | 182 bool is_external_protocol_; |
(...skipping 24 matching lines...) Expand all Loading... |
204 // Manages the lifetime of a pre-created ServiceWorkerProviderHost until a | 207 // Manages the lifetime of a pre-created ServiceWorkerProviderHost until a |
205 // corresponding ServiceWorkerNetworkProvider is created in the renderer. | 208 // corresponding ServiceWorkerNetworkProvider is created in the renderer. |
206 scoped_ptr<ServiceWorkerNavigationHandle> service_worker_handle_; | 209 scoped_ptr<ServiceWorkerNavigationHandle> service_worker_handle_; |
207 | 210 |
208 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl); | 211 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl); |
209 }; | 212 }; |
210 | 213 |
211 } // namespace content | 214 } // namespace content |
212 | 215 |
213 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ | 216 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ |
OLD | NEW |