Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(278)

Side by Side Diff: chrome/browser/tab_contents/navigation_controller.h

Issue 100245: Make forward/backward navigation work even when redirection is involved. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/tab_contents/navigation_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 void set_max_restored_page_id(int max_id) { max_restored_page_id_ = max_id; } 417 void set_max_restored_page_id(int max_id) { max_restored_page_id_ = max_id; }
418 418
419 NavigationEntry* CreateNavigationEntry(const GURL& url, const GURL& referrer, 419 NavigationEntry* CreateNavigationEntry(const GURL& url, const GURL& referrer,
420 PageTransition::Type transition); 420 PageTransition::Type transition);
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 a new entry or replaces the current entry with a new one, removing
428 // The new entry will become the active one. 428 // all entries after it. The new entry will become the active one.
429 void InsertEntry(NavigationEntry* entry); 429 void InsertOrReplaceEntry(NavigationEntry* entry, bool replace);
430 430
431 // Discards the pending and transient entries. 431 // Discards the pending and transient entries.
432 void DiscardNonCommittedEntriesInternal(); 432 void DiscardNonCommittedEntriesInternal();
433 433
434 // Discards the transient entry. 434 // Discards the transient entry.
435 void DiscardTransientEntry(); 435 void DiscardTransientEntry();
436 436
437 // --------------------------------------------------------------------------- 437 // ---------------------------------------------------------------------------
438 438
439 // The user profile associated with this controller 439 // The user profile associated with this controller
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 // when testing. 497 // when testing.
498 static bool check_for_repost_; 498 static bool check_for_repost_;
499 499
500 // The maximum number of entries that a navigation controller can store. 500 // The maximum number of entries that a navigation controller can store.
501 static size_t max_entry_count_; 501 static size_t max_entry_count_;
502 502
503 DISALLOW_COPY_AND_ASSIGN(NavigationController); 503 DISALLOW_COPY_AND_ASSIGN(NavigationController);
504 }; 504 };
505 505
506 #endif // CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_ 506 #endif // CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/tab_contents/navigation_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698