| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "content/browser/tab_contents/tab_contents_observer.h" | 8 #include "content/browser/tab_contents/tab_contents_observer.h" |
| 9 | 9 |
| 10 #include "base/time.h" | 10 #include "base/time.h" |
| 11 | 11 |
| 12 class TabContentsWrapper; | 12 class TabContentsWrapper; |
| 13 class GURL; | 13 class GURL; |
| 14 | 14 |
| 15 namespace prerender { | 15 namespace prerender { |
| 16 | 16 |
| 17 class PrerenderContents; | |
| 18 class PrerenderManager; | 17 class PrerenderManager; |
| 19 | 18 |
| 20 // PrerenderTabHelper is responsible for recording perceived pageload times | 19 // PrerenderTabHelper is responsible for recording perceived pageload times |
| 21 // to compare PLT's with prerendering enabled and disabled. | 20 // to compare PLT's with prerendering enabled and disabled. |
| 22 class PrerenderTabHelper : public TabContentsObserver { | 21 class PrerenderTabHelper : public TabContentsObserver { |
| 23 public: | 22 public: |
| 24 explicit PrerenderTabHelper(TabContentsWrapper* tab); | 23 explicit PrerenderTabHelper(TabContentsWrapper* tab); |
| 25 virtual ~PrerenderTabHelper(); | 24 virtual ~PrerenderTabHelper(); |
| 26 | 25 |
| 27 // TabContentsObserver implementation. | 26 // TabContentsObserver implementation. |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 | 79 |
| 81 // Current URL being loaded. | 80 // Current URL being loaded. |
| 82 GURL url_; | 81 GURL url_; |
| 83 | 82 |
| 84 DISALLOW_COPY_AND_ASSIGN(PrerenderTabHelper); | 83 DISALLOW_COPY_AND_ASSIGN(PrerenderTabHelper); |
| 85 }; | 84 }; |
| 86 | 85 |
| 87 } // namespace prerender | 86 } // namespace prerender |
| 88 | 87 |
| 89 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_ | 88 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_ |
| OLD | NEW |