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

Side by Side Diff: components/data_reduction_proxy/core/common/data_reduction_proxy_page_load_timing.h

Issue 2833523002: Adding opt out and previews type information to DRP pingback (Closed)
Patch Set: bengr comments 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 COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_REDUCTION_PROXY_PAGE_LO AD_TIMING_H 5 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_REDUCTION_PROXY_PAGE_LO AD_TIMING_H
6 #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_REDUCTION_PROXY_PAGE_LO AD_TIMING_H 6 #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_REDUCTION_PROXY_PAGE_LO AD_TIMING_H
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/optional.h" 10 #include "base/optional.h"
11 #include "base/time/time.h" 11 #include "base/time/time.h"
12 12
13 namespace data_reduction_proxy { 13 namespace data_reduction_proxy {
14 14
15 // The timing information that is relevant to the Pageload metrics pingback. 15 // The timing information that is relevant to the Pageload metrics pingback.
16 struct DataReductionProxyPageLoadTiming { 16 struct DataReductionProxyPageLoadTiming {
17 DataReductionProxyPageLoadTiming( 17 DataReductionProxyPageLoadTiming(
18 const base::Time& navigation_start, 18 const base::Time& navigation_start,
19 const base::Optional<base::TimeDelta>& response_start, 19 const base::Optional<base::TimeDelta>& response_start,
20 const base::Optional<base::TimeDelta>& load_event_start, 20 const base::Optional<base::TimeDelta>& load_event_start,
21 const base::Optional<base::TimeDelta>& first_image_paint, 21 const base::Optional<base::TimeDelta>& first_image_paint,
22 const base::Optional<base::TimeDelta>& first_contentful_paint, 22 const base::Optional<base::TimeDelta>& first_contentful_paint,
23 const base::Optional<base::TimeDelta>& 23 const base::Optional<base::TimeDelta>&
24 experimental_first_meaningful_paint, 24 experimental_first_meaningful_paint,
25 const base::Optional<base::TimeDelta>& 25 const base::Optional<base::TimeDelta>&
26 parse_blocked_on_script_load_duration, 26 parse_blocked_on_script_load_duration,
27 const base::Optional<base::TimeDelta>& parse_stop, 27 const base::Optional<base::TimeDelta>& parse_stop,
28 int64_t network_bytes, 28 int64_t network_bytes,
29 int64_t original_network_bytes); 29 int64_t original_network_bytes,
30 bool app_background_occurred);
30 31
31 DataReductionProxyPageLoadTiming( 32 DataReductionProxyPageLoadTiming(
32 const DataReductionProxyPageLoadTiming& other); 33 const DataReductionProxyPageLoadTiming& other);
33 34
34 // Time that the navigation for the associated page was initiated. 35 // Time that the navigation for the associated page was initiated.
35 const base::Time navigation_start; 36 const base::Time navigation_start;
36 37
37 // All TimeDeltas are relative to navigation_start. 38 // All TimeDeltas are relative to navigation_start.
38 39
39 // Time that the first byte of the response is received. 40 // Time that the first byte of the response is received.
(...skipping 10 matching lines...) Expand all
50 const base::Optional<base::TimeDelta> experimental_first_meaningful_paint; 51 const base::Optional<base::TimeDelta> experimental_first_meaningful_paint;
51 // Time that parsing was blocked by loading script. 52 // Time that parsing was blocked by loading script.
52 const base::Optional<base::TimeDelta> parse_blocked_on_script_load_duration; 53 const base::Optional<base::TimeDelta> parse_blocked_on_script_load_duration;
53 // Time when parsing completed. 54 // Time when parsing completed.
54 const base::Optional<base::TimeDelta> parse_stop; 55 const base::Optional<base::TimeDelta> parse_stop;
55 // The number of bytes served over the network, not including headers. 56 // The number of bytes served over the network, not including headers.
56 const int64_t network_bytes; 57 const int64_t network_bytes;
57 // The number of bytes that would have been served over the network if the 58 // The number of bytes that would have been served over the network if the
58 // user were not using data reduction proxy, not including headers. 59 // user were not using data reduction proxy, not including headers.
59 const int64_t original_network_bytes; 60 const int64_t original_network_bytes;
61 // True when android app background occurred during the page load lifetime.
62 const bool app_background_occurred;
60 }; 63 };
61 64
62 } // namespace data_reduction_proxy 65 } // namespace data_reduction_proxy
63 66
64 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_REDUCTION_PROXY_PAGE _LOAD_TIMING_H 67 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_REDUCTION_PROXY_PAGE _LOAD_TIMING_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698