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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 } | 50 } |
51 | 51 |
52 required uint32 item_count = 1; | 52 required uint32 item_count = 1; |
53 repeated WordIDHistoryMapEntry word_id_history_map_entry = 2; | 53 repeated WordIDHistoryMapEntry word_id_history_map_entry = 2; |
54 } | 54 } |
55 | 55 |
56 message HistoryInfoMapItem { | 56 message HistoryInfoMapItem { |
57 message HistoryInfoMapEntry { | 57 message HistoryInfoMapEntry { |
58 message VisitInfo { | 58 message VisitInfo { |
59 required int64 visit_time = 1; | 59 required int64 visit_time = 1; |
60 // Corresponds to content::PageTransition. | 60 // Corresponds to ui::PageTransition. |
61 required uint64 transition_type = 2; | 61 required uint64 transition_type = 2; |
62 } | 62 } |
63 required int64 history_id = 1; | 63 required int64 history_id = 1; |
64 required int32 visit_count = 2; | 64 required int32 visit_count = 2; |
65 required int32 typed_count = 3; | 65 required int32 typed_count = 3; |
66 required int64 last_visit = 4; | 66 required int64 last_visit = 4; |
67 required string url = 5; | 67 required string url = 5; |
68 optional string title = 6; | 68 optional string title = 6; |
69 repeated VisitInfo visits = 7; | 69 repeated VisitInfo visits = 7; |
70 } | 70 } |
(...skipping 23 matching lines...) Expand all Loading... |
94 optional int32 version = 2; | 94 optional int32 version = 2; |
95 required int32 history_item_count = 3; | 95 required int32 history_item_count = 3; |
96 | 96 |
97 optional WordListItem word_list = 4; | 97 optional WordListItem word_list = 4; |
98 optional WordMapItem word_map = 5; | 98 optional WordMapItem word_map = 5; |
99 optional CharWordMapItem char_word_map = 6; | 99 optional CharWordMapItem char_word_map = 6; |
100 optional WordIDHistoryMapItem word_id_history_map = 7; | 100 optional WordIDHistoryMapItem word_id_history_map = 7; |
101 optional HistoryInfoMapItem history_info_map = 8; | 101 optional HistoryInfoMapItem history_info_map = 8; |
102 optional WordStartsMapItem word_starts_map = 9; | 102 optional WordStartsMapItem word_starts_map = 9; |
103 } | 103 } |
OLD | NEW |