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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 ui::PageTransition transition, | 99 ui::PageTransition transition, |
100 bool is_external_protocol) override; | 100 bool is_external_protocol) override; |
101 NavigationThrottle::ThrottleCheckResult CallWillRedirectRequestForTesting( | 101 NavigationThrottle::ThrottleCheckResult CallWillRedirectRequestForTesting( |
102 const GURL& new_url, | 102 const GURL& new_url, |
103 bool new_method_is_post, | 103 bool new_method_is_post, |
104 const GURL& new_referrer_url, | 104 const GURL& new_referrer_url, |
105 bool new_is_external_protocol) override; | 105 bool new_is_external_protocol) override; |
106 | 106 |
107 NavigatorDelegate* GetDelegate() const; | 107 NavigatorDelegate* GetDelegate() const; |
108 | 108 |
109 // Returns the response headers for the request. This can only be accessed | 109 // Returns the response headers for the request or nullptr if there are none. |
110 // after a redirect was encountered or after the the navigation is ready to | 110 // This should only be accessed after a redirect was encountered or after the |
111 // commit. It should not be modified, as modifications will not be reflected | 111 // navigation is ready to commit. The headers returned should not be modified, |
112 // in the network stack. | 112 // as modifications will not be reflected in the network stack. |
113 const net::HttpResponseHeaders* GetResponseHeaders(); | 113 const net::HttpResponseHeaders* GetResponseHeaders(); |
114 | 114 |
115 void set_net_error_code(net::Error net_error_code) { | 115 void set_net_error_code(net::Error net_error_code) { |
116 net_error_code_ = net_error_code; | 116 net_error_code_ = net_error_code; |
117 } | 117 } |
118 | 118 |
119 // Returns whether the navigation is currently being transferred from one | 119 // Returns whether the navigation is currently being transferred from one |
120 // RenderFrameHost to another. In particular, a DidStartProvisionalLoad IPC | 120 // RenderFrameHost to another. In particular, a DidStartProvisionalLoad IPC |
121 // for the navigation URL, received in the new RenderFrameHost, should not | 121 // for the navigation URL, received in the new RenderFrameHost, should not |
122 // indicate the start of a new navigation in that case. | 122 // indicate the start of a new navigation in that case. |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 // Manages the lifetime of a pre-created ServiceWorkerProviderHost until a | 266 // Manages the lifetime of a pre-created ServiceWorkerProviderHost until a |
267 // corresponding ServiceWorkerNetworkProvider is created in the renderer. | 267 // corresponding ServiceWorkerNetworkProvider is created in the renderer. |
268 scoped_ptr<ServiceWorkerNavigationHandle> service_worker_handle_; | 268 scoped_ptr<ServiceWorkerNavigationHandle> service_worker_handle_; |
269 | 269 |
270 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl); | 270 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl); |
271 }; | 271 }; |
272 | 272 |
273 } // namespace content | 273 } // namespace content |
274 | 274 |
275 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ | 275 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ |
OLD | NEW |