| 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);
|
| };
|
|
|
|
|