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

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

Issue 580133002: Update entry page type to include error pages when appropriate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compile fix for unit_tests Created 6 years, 3 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
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_TAB_HELPER_H_ 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_ 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 virtual void DidStopLoading( 57 virtual void DidStopLoading(
58 content::RenderViewHost* render_view_host) OVERRIDE; 58 content::RenderViewHost* render_view_host) OVERRIDE;
59 virtual void DidStartProvisionalLoadForFrame( 59 virtual void DidStartProvisionalLoadForFrame(
60 content::RenderFrameHost* render_frame_host, 60 content::RenderFrameHost* render_frame_host,
61 const GURL& validated_url, 61 const GURL& validated_url,
62 bool is_error_page, 62 bool is_error_page,
63 bool is_iframe_srcdoc) OVERRIDE; 63 bool is_iframe_srcdoc) OVERRIDE;
64 virtual void DidCommitProvisionalLoadForFrame( 64 virtual void DidCommitProvisionalLoadForFrame(
65 content::RenderFrameHost* render_frame_host, 65 content::RenderFrameHost* render_frame_host,
66 const GURL& validated_url, 66 const GURL& validated_url,
67 bool url_is_unreachable,
67 ui::PageTransition transition_type) OVERRIDE; 68 ui::PageTransition transition_type) OVERRIDE;
68 69
69 // Called when a password form has been submitted. 70 // Called when a password form has been submitted.
70 void PasswordSubmitted(const autofill::PasswordForm& form); 71 void PasswordSubmitted(const autofill::PasswordForm& form);
71 72
72 // Called when this prerendered WebContents has just been swapped in. 73 // Called when this prerendered WebContents has just been swapped in.
73 void PrerenderSwappedIn(); 74 void PrerenderSwappedIn();
74 75
75 // Called when a control prerender is resolved. Applies to the next load. 76 // Called when a control prerender is resolved. Applies to the next load.
76 void WouldHavePrerenderedNextLoad(Origin origin); 77 void WouldHavePrerenderedNextLoad(Origin origin);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 GURL url_; 126 GURL url_;
126 127
127 base::WeakPtrFactory<PrerenderTabHelper> weak_factory_; 128 base::WeakPtrFactory<PrerenderTabHelper> weak_factory_;
128 129
129 DISALLOW_COPY_AND_ASSIGN(PrerenderTabHelper); 130 DISALLOW_COPY_AND_ASSIGN(PrerenderTabHelper);
130 }; 131 };
131 132
132 } // namespace prerender 133 } // namespace prerender
133 134
134 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_ 135 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698