| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_PAGE_LOAD_METRICS_OBSERVERS_DATA_REDUCTION_PROXY_METRICS_
OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_PAGE_LOAD_METRICS_OBSERVERS_DATA_REDUCTION_PROXY_METRICS_
OBSERVER_H_ |
| 6 #define CHROME_BROWSER_PAGE_LOAD_METRICS_OBSERVERS_DATA_REDUCTION_PROXY_METRICS_
OBSERVER_H_ | 6 #define CHROME_BROWSER_PAGE_LOAD_METRICS_OBSERVERS_DATA_REDUCTION_PROXY_METRICS_
OBSERVER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 void OnFirstContentfulPaint( | 97 void OnFirstContentfulPaint( |
| 98 const page_load_metrics::PageLoadTiming& timing, | 98 const page_load_metrics::PageLoadTiming& timing, |
| 99 const page_load_metrics::PageLoadExtraInfo& info) override; | 99 const page_load_metrics::PageLoadExtraInfo& info) override; |
| 100 void OnFirstMeaningfulPaint( | 100 void OnFirstMeaningfulPaint( |
| 101 const page_load_metrics::PageLoadTiming& timing, | 101 const page_load_metrics::PageLoadTiming& timing, |
| 102 const page_load_metrics::PageLoadExtraInfo& info) override; | 102 const page_load_metrics::PageLoadExtraInfo& info) override; |
| 103 void OnParseStart(const page_load_metrics::PageLoadTiming& timing, | 103 void OnParseStart(const page_load_metrics::PageLoadTiming& timing, |
| 104 const page_load_metrics::PageLoadExtraInfo& info) override; | 104 const page_load_metrics::PageLoadExtraInfo& info) override; |
| 105 void OnParseStop(const page_load_metrics::PageLoadTiming& timing, | 105 void OnParseStop(const page_load_metrics::PageLoadTiming& timing, |
| 106 const page_load_metrics::PageLoadExtraInfo& info) override; | 106 const page_load_metrics::PageLoadExtraInfo& info) override; |
| 107 void OnLoadedResource( | 107 void OnLoadedResource(const page_load_metrics::ExtraRequestCompleteInfo& |
| 108 const page_load_metrics::ExtraRequestInfo& extra_request_info) override; | 108 extra_request_compelte_info) override; |
| 109 | 109 |
| 110 private: | 110 private: |
| 111 // Sends the page load information to the pingback client. | 111 // Sends the page load information to the pingback client. |
| 112 void SendPingback(const page_load_metrics::PageLoadTiming& timing, | 112 void SendPingback(const page_load_metrics::PageLoadTiming& timing, |
| 113 const page_load_metrics::PageLoadExtraInfo& info); | 113 const page_load_metrics::PageLoadExtraInfo& info); |
| 114 | 114 |
| 115 // Records UMA of page size when the observer is about to be deleted. | 115 // Records UMA of page size when the observer is about to be deleted. |
| 116 void RecordPageSizeUMA() const; | 116 void RecordPageSizeUMA() const; |
| 117 | 117 |
| 118 // Gets the default DataReductionProxyPingbackClient. Overridden in testing. | 118 // Gets the default DataReductionProxyPingbackClient. Overridden in testing. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 139 | 139 |
| 140 // The total network bytes used. | 140 // The total network bytes used. |
| 141 int64_t network_bytes_; | 141 int64_t network_bytes_; |
| 142 | 142 |
| 143 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyMetricsObserver); | 143 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyMetricsObserver); |
| 144 }; | 144 }; |
| 145 | 145 |
| 146 } // namespace data_reduction_proxy | 146 } // namespace data_reduction_proxy |
| 147 | 147 |
| 148 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_OBSERVERS_DATA_REDUCTION_PROXY_METRI
CS_OBSERVER_H_ | 148 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_OBSERVERS_DATA_REDUCTION_PROXY_METRI
CS_OBSERVER_H_ |
| OLD | NEW |