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