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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 max_entry_count_for_testing_ = max_entry_count; | 190 max_entry_count_for_testing_ = max_entry_count; |
191 } | 191 } |
192 static size_t max_entry_count(); | 192 static size_t max_entry_count(); |
193 | 193 |
194 void SetGetTimestampCallbackForTest( | 194 void SetGetTimestampCallbackForTest( |
195 const base::Callback<base::Time()>& get_timestamp_callback); | 195 const base::Callback<base::Time()>& get_timestamp_callback); |
196 | 196 |
197 // Takes a screenshot of the page at the current state. | 197 // Takes a screenshot of the page at the current state. |
198 void TakeScreenshot(); | 198 void TakeScreenshot(); |
199 | 199 |
| 200 bool ShouldTakeScreenshotOnNavigation(); |
| 201 |
200 // Sets the screenshot manager for this NavigationControllerImpl. The | 202 // Sets the screenshot manager for this NavigationControllerImpl. The |
201 // controller takes ownership of the screenshot manager and destroys it when | 203 // controller takes ownership of the screenshot manager and destroys it when |
202 // a new screenshot-manager is set, or when the controller is destroyed. | 204 // a new screenshot-manager is set, or when the controller is destroyed. |
203 // Setting a NULL manager recreates the default screenshot manager and uses | 205 // Setting a NULL manager recreates the default screenshot manager and uses |
204 // that. | 206 // that. |
205 void SetScreenshotManager(NavigationEntryScreenshotManager* manager); | 207 void SetScreenshotManager(NavigationEntryScreenshotManager* manager); |
206 | 208 |
207 // Discards only the pending entry. | 209 // Discards only the pending entry. |
208 void DiscardPendingEntry(); | 210 void DiscardPendingEntry(); |
209 | 211 |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 TimeSmoother time_smoother_; | 415 TimeSmoother time_smoother_; |
414 | 416 |
415 scoped_ptr<NavigationEntryScreenshotManager> screenshot_manager_; | 417 scoped_ptr<NavigationEntryScreenshotManager> screenshot_manager_; |
416 | 418 |
417 DISALLOW_COPY_AND_ASSIGN(NavigationControllerImpl); | 419 DISALLOW_COPY_AND_ASSIGN(NavigationControllerImpl); |
418 }; | 420 }; |
419 | 421 |
420 } // namespace content | 422 } // namespace content |
421 | 423 |
422 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_ | 424 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_ |
OLD | NEW |