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 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 | 421 |
422 // Invoked after session/tab restore or cloning a tab. Resets the transition | 422 // Invoked after session/tab restore or cloning a tab. Resets the transition |
423 // type of the entries, updates the max page id and creates the active | 423 // type of the entries, updates the max page id and creates the active |
424 // contents. | 424 // contents. |
425 void FinishRestore(int selected_index); | 425 void FinishRestore(int selected_index); |
426 | 426 |
427 // Inserts an entry after the current position, removing all entries after it. | 427 // Inserts an entry after the current position, removing all entries after it. |
428 // The new entry will become the active one. | 428 // The new entry will become the active one. |
429 void InsertEntry(NavigationEntry* entry); | 429 void InsertEntry(NavigationEntry* entry); |
430 | 430 |
| 431 // Replaces the current entry with a new one, removing all entries after it. |
| 432 // The new entry will become the active one. |
| 433 void ReplaceCurrentEntry(NavigationEntry* entry); |
| 434 |
| 435 // Inserts a new entry or replaces the current entry with a new one, removing |
| 436 // all entries after it. The new entry will become the active one. |
| 437 void InsertOrReplaceEntry(NavigationEntry* entry, |
| 438 bool replace); |
| 439 |
431 // Discards the pending and transient entries. | 440 // Discards the pending and transient entries. |
432 void DiscardNonCommittedEntriesInternal(); | 441 void DiscardNonCommittedEntriesInternal(); |
433 | 442 |
434 // Discards the transient entry. | 443 // Discards the transient entry. |
435 void DiscardTransientEntry(); | 444 void DiscardTransientEntry(); |
436 | 445 |
437 // --------------------------------------------------------------------------- | 446 // --------------------------------------------------------------------------- |
438 | 447 |
439 // The user profile associated with this controller | 448 // The user profile associated with this controller |
440 Profile* profile_; | 449 Profile* profile_; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 // when testing. | 506 // when testing. |
498 static bool check_for_repost_; | 507 static bool check_for_repost_; |
499 | 508 |
500 // The maximum number of entries that a navigation controller can store. | 509 // The maximum number of entries that a navigation controller can store. |
501 static size_t max_entry_count_; | 510 static size_t max_entry_count_; |
502 | 511 |
503 DISALLOW_COPY_AND_ASSIGN(NavigationController); | 512 DISALLOW_COPY_AND_ASSIGN(NavigationController); |
504 }; | 513 }; |
505 | 514 |
506 #endif // CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_ | 515 #endif // CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_ |
OLD | NEW |