| 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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 // Inserts up to |max_index| entries from |source| into this. This does NOT | 342 // Inserts up to |max_index| entries from |source| into this. This does NOT |
| 343 // adjust any of the members that reference entries_ | 343 // adjust any of the members that reference entries_ |
| 344 // (last_committed_entry_index_, pending_entry_index_ or | 344 // (last_committed_entry_index_, pending_entry_index_ or |
| 345 // transient_entry_index_). | 345 // transient_entry_index_). |
| 346 void InsertEntriesFrom(const NavigationControllerImpl& source, int max_index); | 346 void InsertEntriesFrom(const NavigationControllerImpl& source, int max_index); |
| 347 | 347 |
| 348 // Returns the navigation index that differs from the current entry by the | 348 // Returns the navigation index that differs from the current entry by the |
| 349 // specified |offset|. The index returned is not guaranteed to be valid. | 349 // specified |offset|. The index returned is not guaranteed to be valid. |
| 350 int GetIndexForOffset(int offset) const; | 350 int GetIndexForOffset(int offset) const; |
| 351 | 351 |
| 352 // Removes SSL certificate for all entries other than the last committed one. |
| 353 void DiscardUnusedSSLCerts(); |
| 354 |
| 352 // --------------------------------------------------------------------------- | 355 // --------------------------------------------------------------------------- |
| 353 | 356 |
| 354 // The user browser context associated with this controller. | 357 // The user browser context associated with this controller. |
| 355 BrowserContext* browser_context_; | 358 BrowserContext* browser_context_; |
| 356 | 359 |
| 357 // List of |NavigationEntry|s for this controller. | 360 // List of |NavigationEntry|s for this controller. |
| 358 std::vector<std::unique_ptr<NavigationEntryImpl>> entries_; | 361 std::vector<std::unique_ptr<NavigationEntryImpl>> entries_; |
| 359 | 362 |
| 360 // An entry we haven't gotten a response for yet. This will be discarded | 363 // An entry we haven't gotten a response for yet. This will be discarded |
| 361 // when we navigate again. It's used only so we know what the currently | 364 // when we navigate again. It's used only so we know what the currently |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 // these are ReloadType::NONE and a null timestamp, respectively. | 455 // these are ReloadType::NONE and a null timestamp, respectively. |
| 453 ReloadType last_committed_reload_type_; | 456 ReloadType last_committed_reload_type_; |
| 454 base::Time last_committed_reload_time_; | 457 base::Time last_committed_reload_time_; |
| 455 | 458 |
| 456 DISALLOW_COPY_AND_ASSIGN(NavigationControllerImpl); | 459 DISALLOW_COPY_AND_ASSIGN(NavigationControllerImpl); |
| 457 }; | 460 }; |
| 458 | 461 |
| 459 } // namespace content | 462 } // namespace content |
| 460 | 463 |
| 461 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_ | 464 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_ |
| OLD | NEW |