OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // InMemoryURLIndex caching protocol buffers. | 5 // InMemoryURLIndex caching protocol buffers. |
6 // | 6 // |
7 // At certain times during browser operation, the indexes from the | 7 // At certain times during browser operation, the indexes from the |
8 // InMemoryURLIndex are written to a disk-based cache using the | 8 // InMemoryURLIndex are written to a disk-based cache using the |
9 // following protobuf description. | 9 // following protobuf description. |
10 | 10 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 required int32 typed_count = 3; | 60 required int32 typed_count = 3; |
61 required int64 last_visit = 4; | 61 required int64 last_visit = 4; |
62 required string url = 5; | 62 required string url = 5; |
63 optional string title = 6; | 63 optional string title = 6; |
64 } | 64 } |
65 | 65 |
66 required uint32 item_count = 1; | 66 required uint32 item_count = 1; |
67 repeated HistoryInfoMapEntry history_info_map_entry = 2; | 67 repeated HistoryInfoMapEntry history_info_map_entry = 2; |
68 } | 68 } |
69 | 69 |
70 // The timestamp of the cache, used to validate against an | 70 message WordStartsMapItem { |
71 // accompanying transaction journal. | 71 message WordStartsMapEntry { |
| 72 required int64 history_id = 1; |
| 73 repeated int32 url_word_starts = 2 [packed=true]; |
| 74 repeated int32 title_word_starts = 3 [packed=true]; |
| 75 } |
| 76 |
| 77 required uint32 item_count = 1; |
| 78 repeated WordStartsMapEntry word_starts_map_entry = 2; |
| 79 } |
| 80 |
72 required int64 timestamp = 1; | 81 required int64 timestamp = 1; |
73 required int32 history_item_count = 2; | 82 // If there is no version we'll assume version 0. |
| 83 optional int32 version = 2; |
| 84 required int32 history_item_count = 3; |
74 | 85 |
75 optional WordListItem word_list = 3; | 86 optional WordListItem word_list = 4; |
76 optional WordMapItem word_map = 4; | 87 optional WordMapItem word_map = 5; |
77 optional CharWordMapItem char_word_map = 5; | 88 optional CharWordMapItem char_word_map = 6; |
78 optional WordIDHistoryMapItem word_id_history_map = 6; | 89 optional WordIDHistoryMapItem word_id_history_map = 7; |
79 optional HistoryInfoMapItem history_info_map = 7; | 90 optional HistoryInfoMapItem history_info_map = 8; |
| 91 optional WordStartsMapItem word_starts_map = 9; |
80 } | 92 } |
OLD | NEW |