| 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" |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
| 13 #include "chrome/browser/prerender/prerender_histograms.h" | 13 #include "chrome/browser/prerender/prerender_histograms.h" |
| 14 #include "chrome/browser/prerender/prerender_origin.h" | 14 #include "chrome/browser/prerender/prerender_origin.h" |
| 15 #include "content/public/browser/web_contents_observer.h" | 15 #include "content/public/browser/web_contents_observer.h" |
| 16 #include "content/public/browser/web_contents_user_data.h" | 16 #include "content/public/browser/web_contents_user_data.h" |
| 17 #include "url/gurl.h" | 17 #include "url/gurl.h" |
| 18 | 18 |
| 19 namespace autofill { | |
| 20 struct PasswordForm; | |
| 21 } | |
| 22 | |
| 23 namespace password_manager { | |
| 24 class PasswordManager; | |
| 25 } | |
| 26 | |
| 27 namespace prerender { | 19 namespace prerender { |
| 28 | 20 |
| 29 class PrerenderManager; | 21 class PrerenderManager; |
| 30 | 22 |
| 31 // PrerenderTabHelper is responsible for recording perceived pageload times | 23 // PrerenderTabHelper is responsible for recording perceived pageload times |
| 32 // to compare PLT's with prerendering enabled and disabled. | 24 // to compare PLT's with prerendering enabled and disabled. |
| 33 class PrerenderTabHelper | 25 class PrerenderTabHelper |
| 34 : public content::WebContentsObserver, | 26 : public content::WebContentsObserver, |
| 35 public content::WebContentsUserData<PrerenderTabHelper> { | 27 public content::WebContentsUserData<PrerenderTabHelper> { |
| 36 public: | 28 public: |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 GURL url_; | 96 GURL url_; |
| 105 | 97 |
| 106 base::WeakPtrFactory<PrerenderTabHelper> weak_factory_; | 98 base::WeakPtrFactory<PrerenderTabHelper> weak_factory_; |
| 107 | 99 |
| 108 DISALLOW_COPY_AND_ASSIGN(PrerenderTabHelper); | 100 DISALLOW_COPY_AND_ASSIGN(PrerenderTabHelper); |
| 109 }; | 101 }; |
| 110 | 102 |
| 111 } // namespace prerender | 103 } // namespace prerender |
| 112 | 104 |
| 113 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_ | 105 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_ |
| OLD | NEW |