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