Chromium Code Reviews| 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.h. | 7 // resource_prefetch_predictor_tables.h. |
| 8 | 8 |
| 9 syntax = "proto2"; | 9 syntax = "proto2"; |
| 10 | 10 |
| 11 package chrome_browser_predictors; | 11 package predictors; |
| 12 | 12 |
| 13 // Required in Chrome. | 13 // Required in Chrome. |
| 14 option optimize_for = LITE_RUNTIME; | 14 option optimize_for = LITE_RUNTIME; |
| 15 | 15 |
| 16 message Metadata { | 16 message Metadata { |
| 17 optional string main_page_url = 1; | 17 optional string main_page_url = 1; |
| 18 optional uint64 last_visit_time = 2; | 18 optional uint64 last_visit_time = 2; |
| 19 } | 19 } |
| 20 | 20 |
| 21 message ResourceData { | 21 message ResourceData { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 54 optional string resource_url = 1; | 54 optional string resource_url = 1; |
| 55 optional ResourceType resource_type = 2; | 55 optional ResourceType resource_type = 2; |
| 56 optional uint32 number_of_hits = 3; | 56 optional uint32 number_of_hits = 3; |
| 57 optional uint32 number_of_misses = 4; | 57 optional uint32 number_of_misses = 4; |
| 58 optional uint32 consecutive_misses = 5; | 58 optional uint32 consecutive_misses = 5; |
| 59 optional double average_position = 6; | 59 optional double average_position = 6; |
| 60 optional Priority priority = 7; | 60 optional Priority priority = 7; |
| 61 optional bool has_validators = 8; | 61 optional bool has_validators = 8; |
| 62 optional bool always_revalidate = 9; | 62 optional bool always_revalidate = 9; |
| 63 } | 63 } |
| 64 | |
| 65 // Represents a mapping of origin to all possible endpoints. | |
|
pasko
2016/09/27 16:21:27
hm, this is again confusing because a web origin i
alexilin
2016/09/27 18:11:08
Done.
| |
| 66 message RedirectData { | |
| 67 // Represents a single redirect chain endpoint. | |
| 68 message RedirectStat { | |
| 69 optional string url = 1; | |
|
pasko
2016/09/27 16:21:27
needs a comment like:
// For RedirectData in a hos
alexilin
2016/09/27 18:11:08
Done.
| |
| 70 optional uint32 number_of_hits = 2; | |
| 71 optional uint32 number_of_misses = 3; | |
| 72 optional uint32 consecutive_misses = 4; | |
| 73 } | |
| 74 | |
| 75 optional string primary_key = 1; | |
|
pasko
2016/09/27 16:21:27
needs a comment like:
// Main frame URL or host.
alexilin
2016/09/27 18:11:08
Done.
| |
| 76 optional uint64 last_visit_time = 2; | |
| 77 repeated RedirectStat redirect_endpoints = 3; | |
| 78 } | |
| OLD | NEW |