Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Side by Side Diff: chrome/browser/history/in_memory_url_index_cache.proto

Issue 15645012: Omnibox: Rebuild HQP Cache if it's old (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: correct 1 to -1. Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/history/in_memory_url_index_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 message WordStartsMapEntry { 77 message WordStartsMapEntry {
78 required int64 history_id = 1; 78 required int64 history_id = 1;
79 repeated int32 url_word_starts = 2 [packed=true]; 79 repeated int32 url_word_starts = 2 [packed=true];
80 repeated int32 title_word_starts = 3 [packed=true]; 80 repeated int32 title_word_starts = 3 [packed=true];
81 } 81 }
82 82
83 required uint32 item_count = 1; 83 required uint32 item_count = 1;
84 repeated WordStartsMapEntry word_starts_map_entry = 2; 84 repeated WordStartsMapEntry word_starts_map_entry = 2;
85 } 85 }
86 86
87 required int64 timestamp = 1; 87 // The date that the cache was last rebuilt from history. Note that
88 // this cache may include items that were visited after this date if
89 // the InMemoryURLIndex was updated on the fly. This timestamp is meant
90 // to indicate the last date the index was rebuilt from the ground truth:
91 // the history database on disk.
92 required int64 last_rebuild_timestamp = 1;
88 // If there is no version we'll assume version 0. 93 // If there is no version we'll assume version 0.
89 optional int32 version = 2; 94 optional int32 version = 2;
90 required int32 history_item_count = 3; 95 required int32 history_item_count = 3;
91 96
92 optional WordListItem word_list = 4; 97 optional WordListItem word_list = 4;
93 optional WordMapItem word_map = 5; 98 optional WordMapItem word_map = 5;
94 optional CharWordMapItem char_word_map = 6; 99 optional CharWordMapItem char_word_map = 6;
95 optional WordIDHistoryMapItem word_id_history_map = 7; 100 optional WordIDHistoryMapItem word_id_history_map = 7;
96 optional HistoryInfoMapItem history_info_map = 8; 101 optional HistoryInfoMapItem history_info_map = 8;
97 optional WordStartsMapItem word_starts_map = 9; 102 optional WordStartsMapItem word_starts_map = 9;
98 } 103 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/history/in_memory_url_index_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698