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

Unified Diff: chrome/browser/prerender/prerender_contents.h

Issue 10978016: Remove two functions on WebContentsDelegate which didn't belong in content. They were only called f… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/prerender/prerender_contents.h
===================================================================
--- chrome/browser/prerender/prerender_contents.h (revision 158566)
+++ chrome/browser/prerender/prerender_contents.h (working copy)
@@ -34,6 +34,10 @@
class WebContents;
}
+namespace history {
+struct HistoryAddPageArgs;
+}
+
namespace prerender {
class PrerenderHandle;
@@ -205,6 +209,11 @@
// PrerenderManager's pending deletes list.
void Destroy(FinalStatus reason);
+ // Called by the history tab helper with the information that it woudl have
+ // added to the history service had this web contents not been used for
+ // prerendering.
+ void DidNavigate(const history::HistoryAddPageArgs& add_page_args);
+
// Applies all the URL history encountered during prerendering to the
// new tab.
void CommitHistory(TabContents* tab);
@@ -383,6 +392,11 @@
// The size of the WebView from the launching page.
gfx::Size size_;
+ typedef std::vector<history::HistoryAddPageArgs> AddPageVector;
+
+ // Caches pages to be added to the history.
+ AddPageVector add_page_vector_;
+
DISALLOW_COPY_AND_ASSIGN(PrerenderContents);
};

Powered by Google App Engine
This is Rietveld 408576698