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

Side by Side Diff: chrome/browser/prerender/prerender_manager.h

Issue 45693002: Add ExternalPrerenderRequestHandler and related API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Styling fixes and added other API Created 7 years, 1 month 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PRERENDER_PRERENDER_MANAGER_H_ 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 PrerenderHandle* AddPrerenderFromOmnibox( 144 PrerenderHandle* AddPrerenderFromOmnibox(
145 const GURL& url, 145 const GURL& url,
146 content::SessionStorageNamespace* session_storage_namespace, 146 content::SessionStorageNamespace* session_storage_namespace,
147 const gfx::Size& size); 147 const gfx::Size& size);
148 148
149 PrerenderHandle* AddPrerenderFromLocalPredictor( 149 PrerenderHandle* AddPrerenderFromLocalPredictor(
150 const GURL& url, 150 const GURL& url,
151 content::SessionStorageNamespace* session_storage_namespace, 151 content::SessionStorageNamespace* session_storage_namespace,
152 const gfx::Size& size); 152 const gfx::Size& size);
153 153
154 PrerenderHandle* AddPrerenderFromExternalRequest(
155 const GURL& url,
156 const content::Referrer& referrer,
157 content::SessionStorageNamespace* session_storage_namespace,
158 const gfx::Size& size);
159
154 // If |process_id| and |view_id| refer to a running prerender, destroy 160 // If |process_id| and |view_id| refer to a running prerender, destroy
155 // it with |final_status|. 161 // it with |final_status|.
156 virtual void DestroyPrerenderForRenderView(int process_id, 162 virtual void DestroyPrerenderForRenderView(int process_id,
157 int view_id, 163 int view_id,
158 FinalStatus final_status); 164 FinalStatus final_status);
159 165
160 // Cancels all active prerenders. 166 // Cancels all active prerenders.
161 void CancelAllPrerenders(); 167 void CancelAllPrerenders();
162 168
163 // If |url| matches a valid prerendered page and |params| are compatible, try 169 // If |url| matches a valid prerendered page and |params| are compatible, try
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 652
647 DISALLOW_COPY_AND_ASSIGN(PrerenderManager); 653 DISALLOW_COPY_AND_ASSIGN(PrerenderManager);
648 }; 654 };
649 655
650 PrerenderManager* FindPrerenderManagerUsingRenderProcessId( 656 PrerenderManager* FindPrerenderManagerUsingRenderProcessId(
651 int render_process_id); 657 int render_process_id);
652 658
653 } // namespace prerender 659 } // namespace prerender
654 660
655 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ 661 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698