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 |
(...skipping 24 matching lines...) Expand all Loading... |
94 optional bool always_access_network = 6; | 95 optional bool always_access_network = 6; |
95 optional bool accessed_network = 7; | 96 optional bool accessed_network = 7; |
96 } | 97 } |
97 | 98 |
98 // Collection of origins accessed from a host. | 99 // Collection of origins accessed from a host. |
99 message OriginData { | 100 message OriginData { |
100 optional string host = 1; | 101 optional string host = 1; |
101 optional uint64 last_visit_time = 2; | 102 optional uint64 last_visit_time = 2; |
102 repeated OriginStat origins = 3; | 103 repeated OriginStat origins = 3; |
103 } | 104 } |
OLD | NEW |