| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 public: | 36 public: |
| 37 ~PrerenderTabHelper() override; | 37 ~PrerenderTabHelper() override; |
| 38 | 38 |
| 39 // content::WebContentsObserver implementation. | 39 // content::WebContentsObserver implementation. |
| 40 void DidGetRedirectForResourceRequest( | 40 void DidGetRedirectForResourceRequest( |
| 41 const content::ResourceRedirectDetails& details) override; | 41 const content::ResourceRedirectDetails& details) override; |
| 42 void DidStopLoading() override; | 42 void DidStopLoading() override; |
| 43 void DidStartProvisionalLoadForFrame( | 43 void DidStartProvisionalLoadForFrame( |
| 44 content::RenderFrameHost* render_frame_host, | 44 content::RenderFrameHost* render_frame_host, |
| 45 const GURL& validated_url, | 45 const GURL& validated_url, |
| 46 bool is_error_page, | 46 bool is_error_page) override; |
| 47 bool is_iframe_srcdoc) override; | |
| 48 void DidCommitProvisionalLoadForFrame( | 47 void DidCommitProvisionalLoadForFrame( |
| 49 content::RenderFrameHost* render_frame_host, | 48 content::RenderFrameHost* render_frame_host, |
| 50 const GURL& validated_url, | 49 const GURL& validated_url, |
| 51 ui::PageTransition transition_type) override; | 50 ui::PageTransition transition_type) override; |
| 52 | 51 |
| 53 // Called when the URL of the main frame changed, either when the load | 52 // Called when the URL of the main frame changed, either when the load |
| 54 // commits, or a redirect happens. | 53 // commits, or a redirect happens. |
| 55 void MainFrameUrlDidChange(const GURL& url); | 54 void MainFrameUrlDidChange(const GURL& url); |
| 56 | 55 |
| 57 // Called when this prerendered WebContents has just been swapped in. | 56 // Called when this prerendered WebContents has just been swapped in. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 GURL url_; | 103 GURL url_; |
| 105 | 104 |
| 106 base::WeakPtrFactory<PrerenderTabHelper> weak_factory_; | 105 base::WeakPtrFactory<PrerenderTabHelper> weak_factory_; |
| 107 | 106 |
| 108 DISALLOW_COPY_AND_ASSIGN(PrerenderTabHelper); | 107 DISALLOW_COPY_AND_ASSIGN(PrerenderTabHelper); |
| 109 }; | 108 }; |
| 110 | 109 |
| 111 } // namespace prerender | 110 } // namespace prerender |
| 112 | 111 |
| 113 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_ | 112 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_ |
| OLD | NEW |