| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |