Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.h

Issue 2780003003: Send an event to the page load metrics to track resource starting. (Closed)
Patch Set: FREEZE.unindexed - took merge and fixed it up Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 bool app_background_occurred); 114 bool app_background_occurred);
115 115
116 // Records UMA of page size when the observer is about to be deleted. 116 // Records UMA of page size when the observer is about to be deleted.
117 void RecordPageSizeUMA() const; 117 void RecordPageSizeUMA() const;
118 118
(...skipping 21 matching lines...) Expand all
140 140
141 // The total network bytes used. 141 // The total network bytes used.
142 int64_t network_bytes_; 142 int64_t network_bytes_;
143 143
144 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyMetricsObserver); 144 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyMetricsObserver);
145 }; 145 };
146 146
147 } // namespace data_reduction_proxy 147 } // namespace data_reduction_proxy
148 148
149 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_OBSERVERS_DATA_REDUCTION_PROXY_METRI CS_OBSERVER_H_ 149 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_OBSERVERS_DATA_REDUCTION_PROXY_METRI CS_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698