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_PLT_RECORDER_H_ | 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_PLT_RECORDER_H_ |
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_PLT_RECORDER_H_ | 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_PLT_RECORDER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <list> | 9 #include <list> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/scoped_ptr.h" | 12 #include "base/scoped_ptr.h" |
13 #include "base/time.h" | 13 #include "base/time.h" |
14 #include "chrome/browser/tab_contents/tab_contents_observer.h" | 14 #include "content/browser/tab_contents/tab_contents_observer.h" |
15 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
16 | 16 |
17 class PrerenderContents; | 17 class PrerenderContents; |
18 class Profile; | 18 class Profile; |
19 class TabContents; | 19 class TabContents; |
20 | 20 |
21 namespace prerender { | 21 namespace prerender { |
22 | 22 |
23 // PrerenderPLTRecorder is responsible for recording perceived pageload times | 23 // PrerenderPLTRecorder is responsible for recording perceived pageload times |
24 // to compare PLT's with prerendering enabled and disabled. | 24 // to compare PLT's with prerendering enabled and disabled. |
(...skipping 16 matching lines...) Expand all Loading... |
41 // System time at which the current load was started for the purpose of | 41 // System time at which the current load was started for the purpose of |
42 // the perceived page load time (PPLT). | 42 // the perceived page load time (PPLT). |
43 base::TimeTicks pplt_load_start_; | 43 base::TimeTicks pplt_load_start_; |
44 | 44 |
45 DISALLOW_COPY_AND_ASSIGN(PrerenderPLTRecorder); | 45 DISALLOW_COPY_AND_ASSIGN(PrerenderPLTRecorder); |
46 }; | 46 }; |
47 | 47 |
48 } // prerender | 48 } // prerender |
49 | 49 |
50 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_PLT_RECORDER_H_ | 50 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_PLT_RECORDER_H_ |
OLD | NEW |