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 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 | 443 |
444 // Used to smooth out timestamps from |get_timestamp_callback_|. | 444 // Used to smooth out timestamps from |get_timestamp_callback_|. |
445 // Without this, whenever there is a run of redirects or | 445 // Without this, whenever there is a run of redirects or |
446 // code-generated navigations, those navigations may occur within | 446 // code-generated navigations, those navigations may occur within |
447 // the timer resolution, leading to things sometimes showing up in | 447 // the timer resolution, leading to things sometimes showing up in |
448 // the wrong order in the history view. | 448 // the wrong order in the history view. |
449 TimeSmoother time_smoother_; | 449 TimeSmoother time_smoother_; |
450 | 450 |
451 std::unique_ptr<NavigationEntryScreenshotManager> screenshot_manager_; | 451 std::unique_ptr<NavigationEntryScreenshotManager> screenshot_manager_; |
452 | 452 |
| 453 // Used for tracking consecutive reload requests. If the last user-initiated |
| 454 // navigation (either browser-initiated or renderer-initiated with a user |
| 455 // gesture) was a reload, these hold the ReloadType and timestamp. Otherwise |
| 456 // these are ReloadType::NONE and a null timestamp, respectively. |
| 457 ReloadType last_committed_reload_type_; |
| 458 base::Time last_committed_reload_time_; |
| 459 |
453 DISALLOW_COPY_AND_ASSIGN(NavigationControllerImpl); | 460 DISALLOW_COPY_AND_ASSIGN(NavigationControllerImpl); |
454 }; | 461 }; |
455 | 462 |
456 } // namespace content | 463 } // namespace content |
457 | 464 |
458 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_ | 465 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_ |
OLD | NEW |