| 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/time.h" | 9 #include "base/time.h" |
| 10 #include "content/public/browser/web_contents_observer.h" | 10 #include "content/public/browser/web_contents_observer.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 const GURL& url, | 28 const GURL& url, |
| 29 content::RenderViewHost* render_view_host) OVERRIDE; | 29 content::RenderViewHost* render_view_host) OVERRIDE; |
| 30 virtual void DidStopLoading( | 30 virtual void DidStopLoading( |
| 31 content::RenderViewHost* render_view_host) OVERRIDE; | 31 content::RenderViewHost* render_view_host) OVERRIDE; |
| 32 virtual void DidStartProvisionalLoadForFrame( | 32 virtual void DidStartProvisionalLoadForFrame( |
| 33 int64 frame_id, | 33 int64 frame_id, |
| 34 int64 parent_frame_id, | 34 int64 parent_frame_id, |
| 35 bool is_main_frame, | 35 bool is_main_frame, |
| 36 const GURL& validated_url, | 36 const GURL& validated_url, |
| 37 bool is_error_page, | 37 bool is_error_page, |
| 38 bool is_iframe_srcdoc, |
| 38 content::RenderViewHost* render_view_host) OVERRIDE; | 39 content::RenderViewHost* render_view_host) OVERRIDE; |
| 39 virtual void DidCommitProvisionalLoadForFrame( | 40 virtual void DidCommitProvisionalLoadForFrame( |
| 40 int64 frame_id, | 41 int64 frame_id, |
| 41 bool is_main_frame, | 42 bool is_main_frame, |
| 42 const GURL& validated_url, | 43 const GURL& validated_url, |
| 43 content::PageTransition transition_type, | 44 content::PageTransition transition_type, |
| 44 content::RenderViewHost* render_view_host) OVERRIDE; | 45 content::RenderViewHost* render_view_host) OVERRIDE; |
| 45 // Called when this prerendered WebContents has just been swapped in. | 46 // Called when this prerendered WebContents has just been swapped in. |
| 46 void PrerenderSwappedIn(); | 47 void PrerenderSwappedIn(); |
| 47 | 48 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 75 | 76 |
| 76 // Current URL being loaded. | 77 // Current URL being loaded. |
| 77 GURL url_; | 78 GURL url_; |
| 78 | 79 |
| 79 DISALLOW_COPY_AND_ASSIGN(PrerenderTabHelper); | 80 DISALLOW_COPY_AND_ASSIGN(PrerenderTabHelper); |
| 80 }; | 81 }; |
| 81 | 82 |
| 82 } // namespace prerender | 83 } // namespace prerender |
| 83 | 84 |
| 84 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_ | 85 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_ |
| OLD | NEW |