| 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 syntax = "proto2"; | 5 syntax = "proto2"; |
| 6 | 6 |
| 7 option optimize_for = LITE_RUNTIME; | 7 option optimize_for = LITE_RUNTIME; |
| 8 | 8 |
| 9 import "client_config.proto"; | 9 import "client_config.proto"; |
| 10 | 10 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 // each of the enum values. | 27 // each of the enum values. |
| 28 enum EffectiveConnectionType { | 28 enum EffectiveConnectionType { |
| 29 EFFECTIVE_CONNECTION_TYPE_UNKNOWN = 0; | 29 EFFECTIVE_CONNECTION_TYPE_UNKNOWN = 0; |
| 30 EFFECTIVE_CONNECTION_TYPE_OFFLINE = 1; | 30 EFFECTIVE_CONNECTION_TYPE_OFFLINE = 1; |
| 31 EFFECTIVE_CONNECTION_TYPE_SLOW_2G = 2; | 31 EFFECTIVE_CONNECTION_TYPE_SLOW_2G = 2; |
| 32 EFFECTIVE_CONNECTION_TYPE_2G = 3; | 32 EFFECTIVE_CONNECTION_TYPE_2G = 3; |
| 33 EFFECTIVE_CONNECTION_TYPE_3G = 4; | 33 EFFECTIVE_CONNECTION_TYPE_3G = 4; |
| 34 EFFECTIVE_CONNECTION_TYPE_4G = 5; | 34 EFFECTIVE_CONNECTION_TYPE_4G = 5; |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 // The various opt out states seen by server previews. |
| 38 enum PreviewsOptOut { |
| 39 // Set for non-previews navigations and app background navigations. |
| 40 UNKNOWN = 0; |
| 41 // Set for previews navigations that clicked "show original". |
| 42 OPT_OUT = 1; |
| 43 // Set for previews navigations that did not click "show original". |
| 44 NON_OPT_OUT = 2; |
| 45 } |
| 46 |
| 47 // The various server previews that can be shown. |
| 48 enum PreviewsType { |
| 49 // No server preview was applied. |
| 50 NONE = 0; |
| 51 // Image placeholders were used on the page. |
| 52 LOFI = 1; |
| 53 // The main resource was a lite page. |
| 54 LITE_PAGE = 2; |
| 55 } |
| 56 |
| 37 // The session key used to load the page. | 57 // The session key used to load the page. |
| 38 optional string session_key = 1; | 58 optional string session_key = 1; |
| 39 // The time at which the first request of the pageload was made, according to | 59 // The time at which the first request of the pageload was made, according to |
| 40 // the client's clock. | 60 // the client's clock. |
| 41 optional Timestamp first_request_time = 2; | 61 optional Timestamp first_request_time = 2; |
| 42 // The URL of the main page request. | 62 // The URL of the main page request. |
| 43 optional string first_request_url = 4; | 63 optional string first_request_url = 4; |
| 44 // The URL of the last request. | 64 // The URL of the last request. |
| 45 optional string last_request_url = 5; | 65 optional string last_request_url = 5; |
| 46 | 66 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 68 | 88 |
| 69 // Time until parsing finished. | 89 // Time until parsing finished. |
| 70 optional Duration parse_stop = 14; | 90 optional Duration parse_stop = 14; |
| 71 | 91 |
| 72 // Time to first meaningful paint. This measure is unstable and will change | 92 // Time to first meaningful paint. This measure is unstable and will change |
| 73 // over time. | 93 // over time. |
| 74 optional Duration experimental_time_to_first_meaningful_paint = 15; | 94 optional Duration experimental_time_to_first_meaningful_paint = 15; |
| 75 | 95 |
| 76 // The unique identifier for the page load. | 96 // The unique identifier for the page load. |
| 77 optional uint64 page_id = 16; | 97 optional uint64 page_id = 16; |
| 98 |
| 99 // The opt out state of the page load. |
| 100 optional PreviewsOptOut previews_opt_out = 17; |
| 101 |
| 102 // The previews type that was used on the page. |
| 103 optional PreviewsType previews_type = 18; |
| 78 } | 104 } |
| OLD | NEW |