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

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

Issue 6915019: Changes to not use the prerendered contents when window.opener needs to be set. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Uploading synced version for commit. 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 // Destroy all preloads for the given child route id pair and assign a final 94 // Destroy all preloads for the given child route id pair and assign a final
95 // status to them. 95 // status to them.
96 void DestroyPreloadForChildRouteIdPair( 96 void DestroyPreloadForChildRouteIdPair(
97 const std::pair<int, int>& child_route_id_pair, 97 const std::pair<int, int>& child_route_id_pair,
98 FinalStatus final_status); 98 FinalStatus final_status);
99 99
100 // For a given TabContents that wants to navigate to the URL supplied, 100 // For a given TabContents that wants to navigate to the URL supplied,
101 // determines whether a preloaded version of the URL can be used, 101 // determines whether a preloaded version of the URL can be used,
102 // and substitutes the prerendered RVH into the TabContents. Returns 102 // and substitutes the prerendered RVH into the TabContents. Returns
103 // whether or not a prerendered RVH could be used or not. 103 // whether or not a prerendered RVH could be used or not.
104 bool MaybeUsePreloadedPage(TabContents* tab_contents, const GURL& url); 104 bool MaybeUsePreloadedPage(TabContents* tab_contents,
105 bool MaybeUsePreloadedPageOld(TabContents* tab_contents, const GURL& url); 105 const GURL& url,
106 bool has_opener_set);
107 bool MaybeUsePreloadedPageOld(TabContents* tab_contents,
108 const GURL& url,
109 bool has_opener_set);
106 110
107 // Moves a PrerenderContents to the pending delete list from the list of 111 // Moves a PrerenderContents to the pending delete list from the list of
108 // active prerenders when prerendering should be cancelled. 112 // active prerenders when prerendering should be cancelled.
109 void MoveEntryToPendingDelete(PrerenderContents* entry); 113 void MoveEntryToPendingDelete(PrerenderContents* entry);
110 114
111 // Checks if the PrerenderContents has been added to the pending delete list. 115 // Checks if the PrerenderContents has been added to the pending delete list.
112 bool IsPendingDelete(PrerenderContents* entry) const; 116 bool IsPendingDelete(PrerenderContents* entry) const;
113 117
114 // Retrieves the PrerenderContents object for the specified URL, if it 118 // Retrieves the PrerenderContents object for the specified URL, if it
115 // has been prerendered. The caller will then have ownership of the 119 // has been prerendered. The caller will then have ownership of the
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 313
310 // Cancels pending tasks on deletion. 314 // Cancels pending tasks on deletion.
311 ScopedRunnableMethodFactory<PrerenderManager> runnable_method_factory_; 315 ScopedRunnableMethodFactory<PrerenderManager> runnable_method_factory_;
312 316
313 DISALLOW_COPY_AND_ASSIGN(PrerenderManager); 317 DISALLOW_COPY_AND_ASSIGN(PrerenderManager);
314 }; 318 };
315 319
316 } // namespace prerender 320 } // namespace prerender
317 321
318 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ 322 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_final_status.h ('k') | chrome/browser/prerender/prerender_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698