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 // Protocol buffers used for storing in SQLite. | 5 // Protocol buffers used for storing in SQLite. |
6 // CAUTION: When any change is done here, bump kDatabaseVersion in | 6 // CAUTION: When any change is done here, bump kDatabaseVersion in |
7 // resource_prefetch_predictor_tables.h. | 7 // resource_prefetch_predictor_tables.h. |
8 | 8 |
9 syntax = "proto2"; | 9 syntax = "proto2"; |
10 | 10 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 | 50 |
51 optional string resource_url = 1; | 51 optional string resource_url = 1; |
52 optional ResourceType resource_type = 2; | 52 optional ResourceType resource_type = 2; |
53 optional uint32 number_of_hits = 3; | 53 optional uint32 number_of_hits = 3; |
54 optional uint32 number_of_misses = 4; | 54 optional uint32 number_of_misses = 4; |
55 optional uint32 consecutive_misses = 5; | 55 optional uint32 consecutive_misses = 5; |
56 optional double average_position = 6; | 56 optional double average_position = 6; |
57 optional Priority priority = 7; | 57 optional Priority priority = 7; |
58 optional bool has_validators = 8; | 58 optional bool has_validators = 8; |
59 optional bool always_revalidate = 9; | 59 optional bool always_revalidate = 9; |
| 60 optional bool before_first_contentful_paint = 10; |
60 } | 61 } |
61 | 62 |
62 // Represents a collection of subresources associated with URL or host. | 63 // Represents a collection of subresources associated with URL or host. |
63 message PrefetchData { | 64 message PrefetchData { |
64 // Main frame URL of host. | 65 // Main frame URL of host. |
65 optional string primary_key = 1; | 66 optional string primary_key = 1; |
66 optional uint64 last_visit_time = 2; | 67 optional uint64 last_visit_time = 2; |
67 repeated ResourceData resources = 3; | 68 repeated ResourceData resources = 3; |
68 } | 69 } |
69 | 70 |
70 // Represents a mapping from URL or host to a list of redirect endpoints. | 71 // Represents a mapping from URL or host to a list of redirect endpoints. |
71 message RedirectData { | 72 message RedirectData { |
72 // Represents a single redirect chain endpoint. | 73 // Represents a single redirect chain endpoint. |
73 message RedirectStat { | 74 message RedirectStat { |
74 // Represents the host for RedirectData in a host-based table. | 75 // Represents the host for RedirectData in a host-based table. |
75 optional string url = 1; | 76 optional string url = 1; |
76 optional uint32 number_of_hits = 2; | 77 optional uint32 number_of_hits = 2; |
77 optional uint32 number_of_misses = 3; | 78 optional uint32 number_of_misses = 3; |
78 optional uint32 consecutive_misses = 4; | 79 optional uint32 consecutive_misses = 4; |
79 } | 80 } |
80 | 81 |
81 // Main frame URL or host. | 82 // Main frame URL or host. |
82 optional string primary_key = 1; | 83 optional string primary_key = 1; |
83 optional uint64 last_visit_time = 2; | 84 optional uint64 last_visit_time = 2; |
84 repeated RedirectStat redirect_endpoints = 3; | 85 repeated RedirectStat redirect_endpoints = 3; |
85 } | 86 } |
OLD | NEW |