OLD | NEW |
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 COMPONENTS_OMNIBOX_BROWSER_URL_INDEX_PRIVATE_DATA_H_ | 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_URL_INDEX_PRIVATE_DATA_H_ |
6 #define COMPONENTS_OMNIBOX_BROWSER_URL_INDEX_PRIVATE_DATA_H_ | 6 #define COMPONENTS_OMNIBOX_BROWSER_URL_INDEX_PRIVATE_DATA_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <set> | 10 #include <set> |
(...skipping 14 matching lines...) Expand all Loading... |
25 class BookmarkModel; | 25 class BookmarkModel; |
26 } | 26 } |
27 | 27 |
28 namespace in_memory_url_index { | 28 namespace in_memory_url_index { |
29 class InMemoryURLIndexCacheItem; | 29 class InMemoryURLIndexCacheItem; |
30 } | 30 } |
31 | 31 |
32 namespace history { | 32 namespace history { |
33 class HistoryDatabase; | 33 class HistoryDatabase; |
34 class InMemoryURLIndex; | 34 class InMemoryURLIndex; |
35 class RefCountedBool; | |
36 } | 35 } |
37 | 36 |
38 // Current version of the cache file. | 37 // Current version of the cache file. |
39 static const int kCurrentCacheFileVersion = 5; | 38 static const int kCurrentCacheFileVersion = 5; |
40 | 39 |
41 // A structure private to InMemoryURLIndex describing its internal data and | 40 // A structure private to InMemoryURLIndex describing its internal data and |
42 // providing for restoring, rebuilding and updating that internal data. As | 41 // providing for restoring, rebuilding and updating that internal data. As |
43 // this class is for exclusive use by the InMemoryURLIndex class there should | 42 // this class is for exclusive use by the InMemoryURLIndex class there should |
44 // be no calls from any other class. | 43 // be no calls from any other class. |
45 // | 44 // |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 int saved_cache_version_; | 381 int saved_cache_version_; |
383 | 382 |
384 // Used for unit testing only. Records the number of candidate history items | 383 // Used for unit testing only. Records the number of candidate history items |
385 // at three stages in the index searching process. | 384 // at three stages in the index searching process. |
386 size_t pre_filter_item_count_; // After word index is queried. | 385 size_t pre_filter_item_count_; // After word index is queried. |
387 size_t post_filter_item_count_; // After trimming large result set. | 386 size_t post_filter_item_count_; // After trimming large result set. |
388 size_t post_scoring_item_count_; // After performing final filter/scoring. | 387 size_t post_scoring_item_count_; // After performing final filter/scoring. |
389 }; | 388 }; |
390 | 389 |
391 #endif // COMPONENTS_OMNIBOX_BROWSER_URL_INDEX_PRIVATE_DATA_H_ | 390 #endif // COMPONENTS_OMNIBOX_BROWSER_URL_INDEX_PRIVATE_DATA_H_ |
OLD | NEW |