Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_CONTROLLER_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 142 // If a new entry is created, it will return true and will have filled the | 142 // If a new entry is created, it will return true and will have filled the |
| 143 // given details structure and broadcast the NOTIFY_NAV_ENTRY_COMMITTED | 143 // given details structure and broadcast the NOTIFY_NAV_ENTRY_COMMITTED |
| 144 // notification. The caller can then use the details without worrying about | 144 // notification. The caller can then use the details without worrying about |
| 145 // listening for the notification. | 145 // listening for the notification. |
| 146 // | 146 // |
| 147 // In the case that nothing has changed, the details structure is undefined | 147 // In the case that nothing has changed, the details structure is undefined |
| 148 // and it will return false. | 148 // and it will return false. |
| 149 bool RendererDidNavigate( | 149 bool RendererDidNavigate( |
| 150 RenderFrameHostImpl* rfh, | 150 RenderFrameHostImpl* rfh, |
| 151 const FrameHostMsg_DidCommitProvisionalLoad_Params& params, | 151 const FrameHostMsg_DidCommitProvisionalLoad_Params& params, |
| 152 LoadCommittedDetails* details); | 152 LoadCommittedDetails* details, |
| 153 scoped_refptr<ResourceRequestBody> post_data); | |
|
Charlie Reis
2016/04/27 23:00:55
We shouldn't be adding more parameters here. Can
clamy
2016/04/29 16:07:16
We no longer send the ResourceRequestBody back to
| |
| 153 | 154 |
| 154 // Notifies us that we just became active. This is used by the WebContentsImpl | 155 // Notifies us that we just became active. This is used by the WebContentsImpl |
| 155 // so that we know to load URLs that were pending as "lazy" loads. | 156 // so that we know to load URLs that were pending as "lazy" loads. |
| 156 void SetActive(bool is_active); | 157 void SetActive(bool is_active); |
| 157 | 158 |
| 158 // Returns true if the given URL would be an in-page navigation (i.e. only the | 159 // Returns true if the given URL would be an in-page navigation (i.e. only the |
| 159 // reference fragment is different) from the last committed URL in the | 160 // reference fragment is different) from the last committed URL in the |
| 160 // specified frame. If there is no last committed entry, then nothing will be | 161 // specified frame. If there is no last committed entry, then nothing will be |
| 161 // in-page. | 162 // in-page. |
| 162 // | 163 // |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 277 // changed, or false if not. | 278 // changed, or false if not. |
| 278 // | 279 // |
| 279 // The NewPage and NewSubframe functions take in |replace_entry| to pass to | 280 // The NewPage and NewSubframe functions take in |replace_entry| to pass to |
| 280 // InsertOrReplaceEntry, in case the newly created NavigationEntry is meant to | 281 // InsertOrReplaceEntry, in case the newly created NavigationEntry is meant to |
| 281 // replace the current one (e.g., for location.replace or successful loads | 282 // replace the current one (e.g., for location.replace or successful loads |
| 282 // after net errors), in contrast to updating a NavigationEntry in place | 283 // after net errors), in contrast to updating a NavigationEntry in place |
| 283 // (e.g., for history.replaceState). | 284 // (e.g., for history.replaceState). |
| 284 void RendererDidNavigateToNewPage( | 285 void RendererDidNavigateToNewPage( |
| 285 RenderFrameHostImpl* rfh, | 286 RenderFrameHostImpl* rfh, |
| 286 const FrameHostMsg_DidCommitProvisionalLoad_Params& params, | 287 const FrameHostMsg_DidCommitProvisionalLoad_Params& params, |
| 287 bool replace_entry); | 288 bool replace_entry, |
| 289 scoped_refptr<ResourceRequestBody> post_data); | |
| 288 void RendererDidNavigateToExistingPage( | 290 void RendererDidNavigateToExistingPage( |
| 289 RenderFrameHostImpl* rfh, | 291 RenderFrameHostImpl* rfh, |
| 290 const FrameHostMsg_DidCommitProvisionalLoad_Params& params); | 292 const FrameHostMsg_DidCommitProvisionalLoad_Params& params, |
| 293 scoped_refptr<ResourceRequestBody> post_data); | |
| 291 void RendererDidNavigateToSamePage( | 294 void RendererDidNavigateToSamePage( |
| 292 RenderFrameHostImpl* rfh, | 295 RenderFrameHostImpl* rfh, |
| 293 const FrameHostMsg_DidCommitProvisionalLoad_Params& params); | 296 const FrameHostMsg_DidCommitProvisionalLoad_Params& params, |
| 297 scoped_refptr<ResourceRequestBody> post_data); | |
| 294 void RendererDidNavigateNewSubframe( | 298 void RendererDidNavigateNewSubframe( |
| 295 RenderFrameHostImpl* rfh, | 299 RenderFrameHostImpl* rfh, |
| 296 const FrameHostMsg_DidCommitProvisionalLoad_Params& params, | 300 const FrameHostMsg_DidCommitProvisionalLoad_Params& params, |
| 297 bool replace_entry); | 301 bool replace_entry, |
| 302 scoped_refptr<ResourceRequestBody> post_data); | |
| 298 bool RendererDidNavigateAutoSubframe( | 303 bool RendererDidNavigateAutoSubframe( |
| 299 RenderFrameHostImpl* rfh, | 304 RenderFrameHostImpl* rfh, |
| 300 const FrameHostMsg_DidCommitProvisionalLoad_Params& params); | 305 const FrameHostMsg_DidCommitProvisionalLoad_Params& params, |
| 306 scoped_refptr<ResourceRequestBody> post_data); | |
| 301 | 307 |
| 302 // Helper function for code shared between Reload() and | 308 // Helper function for code shared between Reload() and |
| 303 // ReloadBypassingCache(). | 309 // ReloadBypassingCache(). |
| 304 void ReloadInternal(bool check_for_repost, ReloadType reload_type); | 310 void ReloadInternal(bool check_for_repost, ReloadType reload_type); |
| 305 | 311 |
| 306 // Actually issues the navigation held in pending_entry. | 312 // Actually issues the navigation held in pending_entry. |
| 307 void NavigateToPendingEntry(ReloadType reload_type); | 313 void NavigateToPendingEntry(ReloadType reload_type); |
| 308 | 314 |
| 309 // Allows the derived class to issue notifications that a load has been | 315 // Allows the derived class to issue notifications that a load has been |
| 310 // committed. This will fill in the active entry to the details structure. | 316 // committed. This will fill in the active entry to the details structure. |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 449 TimeSmoother time_smoother_; | 455 TimeSmoother time_smoother_; |
| 450 | 456 |
| 451 std::unique_ptr<NavigationEntryScreenshotManager> screenshot_manager_; | 457 std::unique_ptr<NavigationEntryScreenshotManager> screenshot_manager_; |
| 452 | 458 |
| 453 DISALLOW_COPY_AND_ASSIGN(NavigationControllerImpl); | 459 DISALLOW_COPY_AND_ASSIGN(NavigationControllerImpl); |
| 454 }; | 460 }; |
| 455 | 461 |
| 456 } // namespace content | 462 } // namespace content |
| 457 | 463 |
| 458 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_ | 464 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_ |
| OLD | NEW |