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

Side by Side Diff: content/browser/tab_contents/tab_contents.h

Issue 7618016: Additional fixes for prerender/instant + browsing history. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Checks for pending_render_view_host_ Created 9 years, 4 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_TAB_CONTENTS_TAB_CONTENTS_H_ 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 619
620 // Causes the TabContents to navigate in the right renderer to |entry|, which 620 // Causes the TabContents to navigate in the right renderer to |entry|, which
621 // must be already part of the entries in the navigation controller. 621 // must be already part of the entries in the navigation controller.
622 // This does not change the NavigationController state. 622 // This does not change the NavigationController state.
623 bool NavigateToEntry(const NavigationEntry& entry, 623 bool NavigateToEntry(const NavigationEntry& entry,
624 NavigationController::ReloadType reload_type); 624 NavigationController::ReloadType reload_type);
625 625
626 // Sets the history for this tab_contents to |history_length| entries, and 626 // Sets the history for this tab_contents to |history_length| entries, and
627 // moves the current page_id to the last entry in the list if it's valid. 627 // moves the current page_id to the last entry in the list if it's valid.
628 // This is mainly used when a prerendered page is swapped into the current 628 // This is mainly used when a prerendered page is swapped into the current
629 // tab. 629 // tab. The method is virtual for testing.
630 void SetHistoryLengthAndClear(int history_length); 630 virtual void SetHistoryLengthAndPrune(const SiteInstance* site_instance,
631 631 int merge_history_length,
632 int32 minimum_page_id);
632 633
633 // Misc non-view stuff ------------------------------------------------------- 634 // Misc non-view stuff -------------------------------------------------------
634 635
635 // Helper functions for sending notifications. 636 // Helper functions for sending notifications.
636 void NotifySwapped(); 637 void NotifySwapped();
637 void NotifyConnected(); 638 void NotifyConnected();
638 void NotifyDisconnected(); 639 void NotifyDisconnected();
639 640
640 // RenderViewHostDelegate ---------------------------------------------------- 641 // RenderViewHostDelegate ----------------------------------------------------
641 642
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
865 ObserverList<TabContentsObserver> observers_; 866 ObserverList<TabContentsObserver> observers_;
866 867
867 // Content restrictions, used to disable print/copy etc based on content's 868 // Content restrictions, used to disable print/copy etc based on content's
868 // (full-page plugins for now only) permissions. 869 // (full-page plugins for now only) permissions.
869 int content_restrictions_; 870 int content_restrictions_;
870 871
871 DISALLOW_COPY_AND_ASSIGN(TabContents); 872 DISALLOW_COPY_AND_ASSIGN(TabContents);
872 }; 873 };
873 874
874 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 875 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698