| 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/time.h" | 8 #include "base/time.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "content/public/browser/web_contents_observer.h" | 10 #include "content/public/browser/web_contents_observer.h" |
| 11 #include "googleurl/src/gurl.h" | 11 #include "googleurl/src/gurl.h" |
| 12 | 12 |
| 13 class TabContentsWrapper; | 13 class TabContents; |
| 14 typedef TabContents TabContentsWrapper; |
| 14 | 15 |
| 15 namespace prerender { | 16 namespace prerender { |
| 16 | 17 |
| 17 class PrerenderManager; | 18 class PrerenderManager; |
| 18 | 19 |
| 19 // PrerenderTabHelper is responsible for recording perceived pageload times | 20 // PrerenderTabHelper is responsible for recording perceived pageload times |
| 20 // to compare PLT's with prerendering enabled and disabled. | 21 // to compare PLT's with prerendering enabled and disabled. |
| 21 class PrerenderTabHelper : public content::WebContentsObserver { | 22 class PrerenderTabHelper : public content::WebContentsObserver { |
| 22 public: | 23 public: |
| 23 explicit PrerenderTabHelper(TabContentsWrapper* tab); | 24 explicit PrerenderTabHelper(TabContentsWrapper* tab); |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 75 |
| 75 // Current URL being loaded. | 76 // Current URL being loaded. |
| 76 GURL url_; | 77 GURL url_; |
| 77 | 78 |
| 78 DISALLOW_COPY_AND_ASSIGN(PrerenderTabHelper); | 79 DISALLOW_COPY_AND_ASSIGN(PrerenderTabHelper); |
| 79 }; | 80 }; |
| 80 | 81 |
| 81 } // namespace prerender | 82 } // namespace prerender |
| 82 | 83 |
| 83 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_ | 84 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_ |
| OLD | NEW |