| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 | 468 |
| 469 // Cancel the collection of the TabContents allocated for |tc|. This method | 469 // Cancel the collection of the TabContents allocated for |tc|. This method |
| 470 // is used when we keep using a TabContents because a provisional load failed. | 470 // is used when we keep using a TabContents because a provisional load failed. |
| 471 void CancelTabContentsCollection(TabContentsType t); | 471 void CancelTabContentsCollection(TabContentsType t); |
| 472 | 472 |
| 473 // Invoked after session/tab restore or cloning a tab. Resets the transition | 473 // Invoked after session/tab restore or cloning a tab. Resets the transition |
| 474 // type of the entries, updates the max page id and creates the active | 474 // type of the entries, updates the max page id and creates the active |
| 475 // contents. | 475 // contents. |
| 476 void FinishRestore(int selected_index); | 476 void FinishRestore(int selected_index); |
| 477 | 477 |
| 478 // Inserts a new entry or replaces the current entry with a new one, removing | 478 // Inserts an entry after the current position, removing all entries after it. |
| 479 // all entries after it. The new entry will become the active one. | 479 // The new entry will become the active one. |
| 480 void InsertOrReplaceEntry(NavigationEntry* entry, bool replace); | 480 void InsertEntry(NavigationEntry* entry); |
| 481 | 481 |
| 482 // Discards the pending and transient entries without updating | 482 // Discards the pending and transient entries without updating |
| 483 // active_contents_. | 483 // active_contents_. |
| 484 void DiscardNonCommittedEntriesInternal(); | 484 void DiscardNonCommittedEntriesInternal(); |
| 485 | 485 |
| 486 // Discards the transient entry without updating active_contents_. | 486 // Discards the transient entry without updating active_contents_. |
| 487 void DiscardTransientEntry(); | 487 void DiscardTransientEntry(); |
| 488 | 488 |
| 489 // --------------------------------------------------------------------------- | 489 // --------------------------------------------------------------------------- |
| 490 | 490 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 561 // when testing. | 561 // when testing. |
| 562 static bool check_for_repost_; | 562 static bool check_for_repost_; |
| 563 | 563 |
| 564 // The maximum number of entries that a navigation controller can store. | 564 // The maximum number of entries that a navigation controller can store. |
| 565 static size_t max_entry_count_; | 565 static size_t max_entry_count_; |
| 566 | 566 |
| 567 DISALLOW_COPY_AND_ASSIGN(NavigationController); | 567 DISALLOW_COPY_AND_ASSIGN(NavigationController); |
| 568 }; | 568 }; |
| 569 | 569 |
| 570 #endif // CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_ | 570 #endif // CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_ |
| OLD | NEW |