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

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

Issue 7015026: Cancel prerenders for pages that call window.print() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment responses. Created 9 years, 7 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 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 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 const std::pair<int, int>& child_route_id_pair, 85 const std::pair<int, int>& child_route_id_pair,
86 const GURL& url, 86 const GURL& url,
87 const GURL& referrer); 87 const GURL& referrer);
88 88
89 void AddPendingPreload(const std::pair<int, int>& child_route_id_pair, 89 void AddPendingPreload(const std::pair<int, int>& child_route_id_pair,
90 const GURL& url, 90 const GURL& url,
91 const GURL& referrer); 91 const GURL& referrer);
92 92
93 // Destroy all preloads for the given child route id pair and assign a final 93 // Destroy all preloads for the given child route id pair and assign a final
94 // status to them. 94 // status to them.
95 void DestroyPreloadForChildRouteIdPair( 95 bool DestroyPreloadForChildRouteIdPair(
96 const std::pair<int, int>& child_route_id_pair, 96 const std::pair<int, int>& child_route_id_pair,
97 FinalStatus final_status); 97 FinalStatus final_status);
98 98
99 // For a given TabContents that wants to navigate to the URL supplied, 99 // For a given TabContents that wants to navigate to the URL supplied,
100 // determines whether a preloaded version of the URL can be used, 100 // determines whether a preloaded version of the URL can be used,
101 // and substitutes the prerendered RVH into the TabContents. Returns 101 // and substitutes the prerendered RVH into the TabContents. Returns
102 // whether or not a prerendered RVH could be used or not. 102 // whether or not a prerendered RVH could be used or not.
103 bool MaybeUsePreloadedPage(TabContents* tab_contents, const GURL& url); 103 bool MaybeUsePreloadedPage(TabContents* tab_contents, const GURL& url);
104 bool MaybeUsePreloadedPageOld(TabContents* tab_contents, const GURL& url); 104 bool MaybeUsePreloadedPageOld(TabContents* tab_contents, const GURL& url);
105 105
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 base::TimeTicks last_prerender_start_time_; 299 base::TimeTicks last_prerender_start_time_;
300 300
301 std::list<TabContentsWrapper*> old_tab_contents_list_; 301 std::list<TabContentsWrapper*> old_tab_contents_list_;
302 302
303 DISALLOW_COPY_AND_ASSIGN(PrerenderManager); 303 DISALLOW_COPY_AND_ASSIGN(PrerenderManager);
304 }; 304 };
305 305
306 } // namespace prerender 306 } // namespace prerender
307 307
308 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ 308 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698