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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 // Sets the screenshot manager for this NavigationControllerImpl. The | 200 // Sets the screenshot manager for this NavigationControllerImpl. The |
201 // controller takes ownership of the screenshot manager and destroys it when | 201 // controller takes ownership of the screenshot manager and destroys it when |
202 // a new screenshot-manager is set, or when the controller is destroyed. | 202 // a new screenshot-manager is set, or when the controller is destroyed. |
203 // Setting a NULL manager recreates the default screenshot manager and uses | 203 // Setting a NULL manager recreates the default screenshot manager and uses |
204 // that. | 204 // that. |
205 void SetScreenshotManager(NavigationEntryScreenshotManager* manager); | 205 void SetScreenshotManager(NavigationEntryScreenshotManager* manager); |
206 | 206 |
207 // Discards only the pending entry. | 207 // Discards only the pending entry. |
208 void DiscardPendingEntry(); | 208 void DiscardPendingEntry(); |
209 | 209 |
| 210 // Fills in the history parameters required by FrameMsg_Navigate and |
| 211 // FrameMsg_CommitNavigation. |
| 212 void FillHistoryParametersForNavigationEntry( |
| 213 const NavigationEntryImpl& entry, |
| 214 int* pending_history_list_offset, |
| 215 int* current_history_list_offset, |
| 216 int* current_history_list_length) const; |
| 217 |
210 private: | 218 private: |
211 friend class RestoreHelper; | 219 friend class RestoreHelper; |
212 | 220 |
213 FRIEND_TEST_ALL_PREFIXES(NavigationControllerTest, | 221 FRIEND_TEST_ALL_PREFIXES(NavigationControllerTest, |
214 PurgeScreenshot); | 222 PurgeScreenshot); |
215 FRIEND_TEST_ALL_PREFIXES(TimeSmoother, Basic); | 223 FRIEND_TEST_ALL_PREFIXES(TimeSmoother, Basic); |
216 FRIEND_TEST_ALL_PREFIXES(TimeSmoother, SingleDuplicate); | 224 FRIEND_TEST_ALL_PREFIXES(TimeSmoother, SingleDuplicate); |
217 FRIEND_TEST_ALL_PREFIXES(TimeSmoother, ManyDuplicates); | 225 FRIEND_TEST_ALL_PREFIXES(TimeSmoother, ManyDuplicates); |
218 FRIEND_TEST_ALL_PREFIXES(TimeSmoother, ClockBackwardsJump); | 226 FRIEND_TEST_ALL_PREFIXES(TimeSmoother, ClockBackwardsJump); |
219 | 227 |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 TimeSmoother time_smoother_; | 421 TimeSmoother time_smoother_; |
414 | 422 |
415 scoped_ptr<NavigationEntryScreenshotManager> screenshot_manager_; | 423 scoped_ptr<NavigationEntryScreenshotManager> screenshot_manager_; |
416 | 424 |
417 DISALLOW_COPY_AND_ASSIGN(NavigationControllerImpl); | 425 DISALLOW_COPY_AND_ASSIGN(NavigationControllerImpl); |
418 }; | 426 }; |
419 | 427 |
420 } // namespace content | 428 } // namespace content |
421 | 429 |
422 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_ | 430 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_ |
OLD | NEW |