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_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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 static void CreateForWebContentsWithPasswordManager( | 47 static void CreateForWebContentsWithPasswordManager( |
48 content::WebContents* web_contents, | 48 content::WebContents* web_contents, |
49 password_manager::PasswordManager* password_manager); | 49 password_manager::PasswordManager* password_manager); |
50 | 50 |
51 virtual ~PrerenderTabHelper(); | 51 virtual ~PrerenderTabHelper(); |
52 | 52 |
53 // content::WebContentsObserver implementation. | 53 // content::WebContentsObserver implementation. |
54 virtual void DidGetRedirectForResourceRequest( | 54 virtual void DidGetRedirectForResourceRequest( |
55 content::RenderViewHost* render_view_host, | 55 content::RenderViewHost* render_view_host, |
56 const content::ResourceRedirectDetails& details) OVERRIDE; | 56 const content::ResourceRedirectDetails& details) override; |
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 ui::PageTransition transition_type) OVERRIDE; | 67 ui::PageTransition transition_type) override; |
68 | 68 |
69 // Called when the URL of the main frame changed, either when the load | 69 // Called when the URL of the main frame changed, either when the load |
70 // commits, or a redirect happens. | 70 // commits, or a redirect happens. |
71 void MainFrameUrlDidChange(const GURL& url); | 71 void MainFrameUrlDidChange(const GURL& url); |
72 | 72 |
73 // Called when a password form has been submitted. | 73 // Called when a password form has been submitted. |
74 void PasswordSubmitted(const autofill::PasswordForm& form); | 74 void PasswordSubmitted(const autofill::PasswordForm& form); |
75 | 75 |
76 // Called when this prerendered WebContents has just been swapped in. | 76 // Called when this prerendered WebContents has just been swapped in. |
77 void PrerenderSwappedIn(); | 77 void PrerenderSwappedIn(); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 GURL url_; | 129 GURL url_; |
130 | 130 |
131 base::WeakPtrFactory<PrerenderTabHelper> weak_factory_; | 131 base::WeakPtrFactory<PrerenderTabHelper> weak_factory_; |
132 | 132 |
133 DISALLOW_COPY_AND_ASSIGN(PrerenderTabHelper); | 133 DISALLOW_COPY_AND_ASSIGN(PrerenderTabHelper); |
134 }; | 134 }; |
135 | 135 |
136 } // namespace prerender | 136 } // namespace prerender |
137 | 137 |
138 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_ | 138 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_ |
OLD | NEW |