| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 optional uint32 number_of_hits = 2; | 76 optional uint32 number_of_hits = 2; |
| 77 optional uint32 number_of_misses = 3; | 77 optional uint32 number_of_misses = 3; |
| 78 optional uint32 consecutive_misses = 4; | 78 optional uint32 consecutive_misses = 4; |
| 79 } | 79 } |
| 80 | 80 |
| 81 // Main frame URL or host. | 81 // Main frame URL or host. |
| 82 optional string primary_key = 1; | 82 optional string primary_key = 1; |
| 83 optional uint64 last_visit_time = 2; | 83 optional uint64 last_visit_time = 2; |
| 84 repeated RedirectStat redirect_endpoints = 3; | 84 repeated RedirectStat redirect_endpoints = 3; |
| 85 } | 85 } |
| 86 |
| 87 // Historical data for a single origin accessed from a host. |
| 88 message OriginStat { |
| 89 optional string origin = 1; |
| 90 optional uint32 number_of_hits = 2; |
| 91 optional uint32 number_of_misses = 3; |
| 92 optional uint32 consecutive_misses = 4; |
| 93 optional double average_position = 5; |
| 94 optional bool always_access_network = 6; |
| 95 optional bool accessed_network = 7; |
| 96 } |
| 97 |
| 98 // Collection of origins accessed from a host. |
| 99 message OriginData { |
| 100 optional string host = 1; |
| 101 optional uint64 last_visit_time = 2; |
| 102 repeated OriginStat origins = 3; |
| 103 } |
| OLD | NEW |