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

Unified Diff: chrome/browser/prerender/prerender_observer.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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/prerender/prerender_observer.h
diff --git a/chrome/browser/prerender/prerender_observer.h b/chrome/browser/prerender/prerender_observer.h
index 760132dab3b2a7b02e7808523aa5cf4a55617e77..38ca76ff2ba5cdf51ca0396c24631fe82f20fc89 100644
--- a/chrome/browser/prerender/prerender_observer.h
+++ b/chrome/browser/prerender/prerender_observer.h
@@ -25,13 +25,15 @@ class PrerenderObserver : public TabContentsObserver {
virtual ~PrerenderObserver();
// TabContentsObserver implementation.
- virtual void ProvisionalChangeToMainFrameUrl(const GURL& url) OVERRIDE;
+ virtual void ProvisionalChangeToMainFrameUrl(const GURL& url,
+ bool has_opener_set) OVERRIDE;
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
virtual void DidStopLoading() OVERRIDE;
// Message handler.
void OnDidStartProvisionalLoadForFrame(int64 frame_id,
bool main_frame,
+ bool has_opener_set,
const GURL& url);
private:
@@ -41,7 +43,7 @@ class PrerenderObserver : public TabContentsObserver {
// Checks with the PrerenderManager if the specified URL has been preloaded,
// and if so, swap the RenderViewHost with the preload into this TabContents
// object.
- bool MaybeUsePreloadedPage(const GURL& url);
+ bool MaybeUsePreloadedPage(const GURL& url, bool has_opener_set);
// Returns whether the TabContents being observed is currently prerendering.
bool IsPrerendering();
« no previous file with comments | « chrome/browser/prerender/prerender_manager_unittest.cc ('k') | chrome/browser/prerender/prerender_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698