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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 // delegate. | 213 // delegate. |
214 void ReadyToCommitNavigation(RenderFrameHostImpl* render_frame_host); | 214 void ReadyToCommitNavigation(RenderFrameHostImpl* render_frame_host); |
215 | 215 |
216 // Called when the navigation was committed in |render_frame_host|. This will | 216 // Called when the navigation was committed in |render_frame_host|. This will |
217 // update the |state_|. | 217 // update the |state_|. |
218 void DidCommitNavigation( | 218 void DidCommitNavigation( |
219 const FrameHostMsg_DidCommitProvisionalLoad_Params& params, | 219 const FrameHostMsg_DidCommitProvisionalLoad_Params& params, |
220 bool same_page, | 220 bool same_page, |
221 RenderFrameHostImpl* render_frame_host); | 221 RenderFrameHostImpl* render_frame_host); |
222 | 222 |
223 // This is only used for the non-PlzNavigate case, as it's the one that has | |
224 // cross-site requests being transferred to new processes. When that occurs, | |
225 // the SSL certificate ID has to be updated. | |
226 void UpdateSSLCertId(int new_cert_id); | |
227 | |
228 // Called during commit. Takes ownership of the embedder's NavigationData | 223 // Called during commit. Takes ownership of the embedder's NavigationData |
229 // instance. This NavigationData may have been cloned prior to being added | 224 // instance. This NavigationData may have been cloned prior to being added |
230 // here. | 225 // here. |
231 void set_navigation_data(std::unique_ptr<NavigationData> navigation_data) { | 226 void set_navigation_data(std::unique_ptr<NavigationData> navigation_data) { |
232 navigation_data_ = std::move(navigation_data); | 227 navigation_data_ = std::move(navigation_data); |
233 } | 228 } |
234 | 229 |
235 SSLStatus ssl_status() { return ssl_status_; } | 230 SSLStatus ssl_status() { return ssl_status_; } |
236 | 231 |
237 private: | 232 private: |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 std::unique_ptr<NavigationData> navigation_data_; | 324 std::unique_ptr<NavigationData> navigation_data_; |
330 | 325 |
331 SSLStatus ssl_status_; | 326 SSLStatus ssl_status_; |
332 | 327 |
333 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl); | 328 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl); |
334 }; | 329 }; |
335 | 330 |
336 } // namespace content | 331 } // namespace content |
337 | 332 |
338 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ | 333 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ |
OLD | NEW |