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 |
11 syntax = "proto2"; | 11 syntax = "proto2"; |
12 | 12 |
13 option optimize_for = LITE_RUNTIME; | |
14 | |
15 package in_memory_url_index; | 13 package in_memory_url_index; |
16 | 14 |
17 message InMemoryURLIndexCacheItem { | 15 message InMemoryURLIndexCacheItem { |
18 | 16 |
19 message WordListItem { | 17 message WordListItem { |
20 required uint32 word_count = 1; | 18 required uint32 word_count = 1; |
21 repeated string word = 2; | 19 repeated string word = 2; |
22 } | 20 } |
23 | 21 |
24 message WordMapItem { | 22 message WordMapItem { |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 optional int32 version = 2; | 81 optional int32 version = 2; |
84 required int32 history_item_count = 3; | 82 required int32 history_item_count = 3; |
85 | 83 |
86 optional WordListItem word_list = 4; | 84 optional WordListItem word_list = 4; |
87 optional WordMapItem word_map = 5; | 85 optional WordMapItem word_map = 5; |
88 optional CharWordMapItem char_word_map = 6; | 86 optional CharWordMapItem char_word_map = 6; |
89 optional WordIDHistoryMapItem word_id_history_map = 7; | 87 optional WordIDHistoryMapItem word_id_history_map = 7; |
90 optional HistoryInfoMapItem history_info_map = 8; | 88 optional HistoryInfoMapItem history_info_map = 8; |
91 optional WordStartsMapItem word_starts_map = 9; | 89 optional WordStartsMapItem word_starts_map = 9; |
92 } | 90 } |
OLD | NEW |