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 PasswordManager* password_manager); | 49 PasswordManager* password_manager); |
50 | 50 |
51 virtual ~PrerenderTabHelper(); | 51 virtual ~PrerenderTabHelper(); |
52 | 52 |
53 // content::WebContentsObserver implementation. | 53 // content::WebContentsObserver implementation. |
54 virtual void ProvisionalChangeToMainFrameUrl( | 54 virtual void ProvisionalChangeToMainFrameUrl( |
55 const GURL& url, | 55 const GURL& url, |
56 content::RenderViewHost* render_view_host) OVERRIDE; | 56 content::RenderFrameHost* render_frame_host) 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 int64 frame_id, | 60 int64 frame_id, |
61 int64 parent_frame_id, | 61 int64 parent_frame_id, |
62 bool is_main_frame, | 62 bool is_main_frame, |
63 const GURL& validated_url, | 63 const GURL& validated_url, |
64 bool is_error_page, | 64 bool is_error_page, |
65 bool is_iframe_srcdoc, | 65 bool is_iframe_srcdoc, |
66 content::RenderViewHost* render_view_host) OVERRIDE; | 66 content::RenderViewHost* render_view_host) OVERRIDE; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 GURL url_; | 115 GURL url_; |
116 | 116 |
117 base::WeakPtrFactory<PrerenderTabHelper> weak_factory_; | 117 base::WeakPtrFactory<PrerenderTabHelper> weak_factory_; |
118 | 118 |
119 DISALLOW_COPY_AND_ASSIGN(PrerenderTabHelper); | 119 DISALLOW_COPY_AND_ASSIGN(PrerenderTabHelper); |
120 }; | 120 }; |
121 | 121 |
122 } // namespace prerender | 122 } // namespace prerender |
123 | 123 |
124 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_ | 124 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_ |
OLD | NEW |