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_RENDERER_PAGE_LOAD_HISTOGRAMS_H_ | 5 #ifndef CHROME_RENDERER_PAGE_LOAD_HISTOGRAMS_H_ |
6 #define CHROME_RENDERER_PAGE_LOAD_HISTOGRAMS_H_ | 6 #define CHROME_RENDERER_PAGE_LOAD_HISTOGRAMS_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param
s.h" |
9 #include "content/public/renderer/render_view_observer.h" | 10 #include "content/public/renderer/render_view_observer.h" |
10 | 11 |
11 namespace content { | 12 namespace content { |
12 class DocumentState; | 13 class DocumentState; |
13 } | 14 } |
14 | 15 |
15 class PageLoadHistograms : public content::RenderViewObserver { | 16 class PageLoadHistograms : public content::RenderViewObserver { |
16 public: | 17 public: |
17 explicit PageLoadHistograms(content::RenderView* render_view); | 18 explicit PageLoadHistograms(content::RenderView* render_view); |
18 | 19 |
(...skipping 19 matching lines...) Expand all Loading... |
38 // | 39 // |
39 // It's possible for the request time not to be set, if a client | 40 // It's possible for the request time not to be set, if a client |
40 // redirect had been done (the user never requested the page) | 41 // redirect had been done (the user never requested the page) |
41 // Also, it's possible to load a page without ever laying it out | 42 // Also, it's possible to load a page without ever laying it out |
42 // so first_paint and first_paint_after_load can be 0. | 43 // so first_paint and first_paint_after_load can be 0. |
43 void Dump(blink::WebFrame* frame); | 44 void Dump(blink::WebFrame* frame); |
44 | 45 |
45 void LogPageLoadTime(const content::DocumentState* load_times, | 46 void LogPageLoadTime(const content::DocumentState* load_times, |
46 const blink::WebDataSource* ds) const; | 47 const blink::WebDataSource* ds) const; |
47 | 48 |
| 49 data_reduction_proxy::DataReductionProxyParams data_reduction_proxy_params_; |
| 50 |
48 DISALLOW_COPY_AND_ASSIGN(PageLoadHistograms); | 51 DISALLOW_COPY_AND_ASSIGN(PageLoadHistograms); |
49 }; | 52 }; |
50 | 53 |
51 #endif // CHROME_RENDERER_PAGE_LOAD_HISTOGRAMS_H_ | 54 #endif // CHROME_RENDERER_PAGE_LOAD_HISTOGRAMS_H_ |
OLD | NEW |