| 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 "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 // RendererDidNavigateAutoSubframe is special, it may not actually change | 265 // RendererDidNavigateAutoSubframe is special, it may not actually change |
| 266 // anything if some random subframe is loaded. It will return true if anything | 266 // anything if some random subframe is loaded. It will return true if anything |
| 267 // changed, or false if not. | 267 // changed, or false if not. |
| 268 // | 268 // |
| 269 // The functions taking |did_replace_entry| will fill into the given variable | 269 // The functions taking |did_replace_entry| will fill into the given variable |
| 270 // whether the last entry has been replaced or not. | 270 // whether the last entry has been replaced or not. |
| 271 // See LoadCommittedDetails.did_replace_entry. | 271 // See LoadCommittedDetails.did_replace_entry. |
| 272 void RendererDidNavigateToNewPage( | 272 void RendererDidNavigateToNewPage( |
| 273 RenderFrameHostImpl* rfh, | 273 RenderFrameHostImpl* rfh, |
| 274 const FrameHostMsg_DidCommitProvisionalLoad_Params& params, | 274 const FrameHostMsg_DidCommitProvisionalLoad_Params& params, |
| 275 bool is_in_page, |
| 275 bool replace_entry); | 276 bool replace_entry); |
| 276 void RendererDidNavigateToExistingPage( | 277 void RendererDidNavigateToExistingPage( |
| 277 RenderFrameHostImpl* rfh, | 278 RenderFrameHostImpl* rfh, |
| 278 const FrameHostMsg_DidCommitProvisionalLoad_Params& params); | 279 const FrameHostMsg_DidCommitProvisionalLoad_Params& params); |
| 279 void RendererDidNavigateToSamePage( | 280 void RendererDidNavigateToSamePage( |
| 280 RenderFrameHostImpl* rfh, | 281 RenderFrameHostImpl* rfh, |
| 281 const FrameHostMsg_DidCommitProvisionalLoad_Params& params); | 282 const FrameHostMsg_DidCommitProvisionalLoad_Params& params); |
| 282 void RendererDidNavigateNewSubframe( | 283 void RendererDidNavigateNewSubframe( |
| 283 RenderFrameHostImpl* rfh, | 284 RenderFrameHostImpl* rfh, |
| 284 const FrameHostMsg_DidCommitProvisionalLoad_Params& params); | 285 const FrameHostMsg_DidCommitProvisionalLoad_Params& params, |
| 286 bool is_in_page); |
| 285 bool RendererDidNavigateAutoSubframe( | 287 bool RendererDidNavigateAutoSubframe( |
| 286 RenderFrameHostImpl* rfh, | 288 RenderFrameHostImpl* rfh, |
| 287 const FrameHostMsg_DidCommitProvisionalLoad_Params& params); | 289 const FrameHostMsg_DidCommitProvisionalLoad_Params& params); |
| 288 | 290 |
| 289 // Helper function for code shared between Reload() and ReloadIgnoringCache(). | 291 // Helper function for code shared between Reload() and ReloadIgnoringCache(). |
| 290 void ReloadInternal(bool check_for_repost, ReloadType reload_type); | 292 void ReloadInternal(bool check_for_repost, ReloadType reload_type); |
| 291 | 293 |
| 292 // Actually issues the navigation held in pending_entry. | 294 // Actually issues the navigation held in pending_entry. |
| 293 void NavigateToPendingEntry(ReloadType reload_type); | 295 void NavigateToPendingEntry(ReloadType reload_type); |
| 294 | 296 |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 TimeSmoother time_smoother_; | 440 TimeSmoother time_smoother_; |
| 439 | 441 |
| 440 scoped_ptr<NavigationEntryScreenshotManager> screenshot_manager_; | 442 scoped_ptr<NavigationEntryScreenshotManager> screenshot_manager_; |
| 441 | 443 |
| 442 DISALLOW_COPY_AND_ASSIGN(NavigationControllerImpl); | 444 DISALLOW_COPY_AND_ASSIGN(NavigationControllerImpl); |
| 443 }; | 445 }; |
| 444 | 446 |
| 445 } // namespace content | 447 } // namespace content |
| 446 | 448 |
| 447 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_ | 449 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_ |
| OLD | NEW |