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

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

Issue 9655003: Gather word-start Information to Aid in Scoring. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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_types.h » ('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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/history/in_memory_url_index_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698