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

Side by Side Diff: chrome/browser/history/url_index_private_data.h

Issue 306963002: Omnibox: HistoryQuick Provider: Index Farther Into URL and Title (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test Created 6 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 | « chrome/browser/history/in_memory_url_index_types_unittest.cc ('k') | no next file » | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_HISTORY_URL_INDEX_PRIVATE_DATA_H_ 5 #ifndef CHROME_BROWSER_HISTORY_URL_INDEX_PRIVATE_DATA_H_
6 #define CHROME_BROWSER_HISTORY_URL_INDEX_PRIVATE_DATA_H_ 6 #define CHROME_BROWSER_HISTORY_URL_INDEX_PRIVATE_DATA_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 15 matching lines...) Expand all
26 26
27 namespace history { 27 namespace history {
28 28
29 namespace imui = in_memory_url_index; 29 namespace imui = in_memory_url_index;
30 30
31 class HistoryDatabase; 31 class HistoryDatabase;
32 class InMemoryURLIndex; 32 class InMemoryURLIndex;
33 class RefCountedBool; 33 class RefCountedBool;
34 34
35 // Current version of the cache file. 35 // Current version of the cache file.
36 static const int kCurrentCacheFileVersion = 4; 36 static const int kCurrentCacheFileVersion = 5;
37 37
38 // A structure private to InMemoryURLIndex describing its internal data and 38 // A structure private to InMemoryURLIndex describing its internal data and
39 // providing for restoring, rebuilding and updating that internal data. As 39 // providing for restoring, rebuilding and updating that internal data. As
40 // this class is for exclusive use by the InMemoryURLIndex class there should 40 // this class is for exclusive use by the InMemoryURLIndex class there should
41 // be no calls from any other class. 41 // be no calls from any other class.
42 // 42 //
43 // All public member functions are called on the main thread unless otherwise 43 // All public member functions are called on the main thread unless otherwise
44 // annotated. 44 // annotated.
45 class URLIndexPrivateData 45 class URLIndexPrivateData
46 : public base::RefCountedThreadSafe<URLIndexPrivateData> { 46 : public base::RefCountedThreadSafe<URLIndexPrivateData> {
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 // Used for unit testing only. Records the number of candidate history items 392 // Used for unit testing only. Records the number of candidate history items
393 // at three stages in the index searching process. 393 // at three stages in the index searching process.
394 size_t pre_filter_item_count_; // After word index is queried. 394 size_t pre_filter_item_count_; // After word index is queried.
395 size_t post_filter_item_count_; // After trimming large result set. 395 size_t post_filter_item_count_; // After trimming large result set.
396 size_t post_scoring_item_count_; // After performing final filter/scoring. 396 size_t post_scoring_item_count_; // After performing final filter/scoring.
397 }; 397 };
398 398
399 } // namespace history 399 } // namespace history
400 400
401 #endif // CHROME_BROWSER_HISTORY_URL_INDEX_PRIVATE_DATA_H_ 401 #endif // CHROME_BROWSER_HISTORY_URL_INDEX_PRIVATE_DATA_H_
OLDNEW
« no previous file with comments | « chrome/browser/history/in_memory_url_index_types_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698