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 CHROME_BROWSER_HISTORY_URL_INDEX_PRIVATE_DATA_H_ | 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_URL_INDEX_PRIVATE_DATA_H_ |
6 #define CHROME_BROWSER_HISTORY_URL_INDEX_PRIVATE_DATA_H_ | 6 #define CHROME_BROWSER_AUTOCOMPLETE_URL_INDEX_PRIVATE_DATA_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "chrome/browser/autocomplete/in_memory_url_index_cache.pb.h" |
| 15 #include "chrome/browser/autocomplete/in_memory_url_index_types.h" |
| 16 #include "chrome/browser/autocomplete/scored_history_match.h" |
14 #include "chrome/browser/history/history_service.h" | 17 #include "chrome/browser/history/history_service.h" |
15 #include "components/history/core/browser/in_memory_url_index_cache.pb.h" | |
16 #include "components/history/core/browser/in_memory_url_index_types.h" | |
17 #include "components/history/core/browser/scored_history_match.h" | |
18 | 18 |
19 class HistoryQuickProviderTest; | 19 class HistoryQuickProviderTest; |
20 | 20 |
21 namespace in_memory_url_index { | 21 namespace in_memory_url_index { |
22 class InMemoryURLIndexCacheItem; | 22 class InMemoryURLIndexCacheItem; |
23 } | 23 } |
24 | 24 |
25 namespace history { | 25 namespace history { |
26 | 26 |
27 namespace imui = in_memory_url_index; | 27 namespace imui = in_memory_url_index; |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 | 384 |
385 // Used for unit testing only. Records the number of candidate history items | 385 // Used for unit testing only. Records the number of candidate history items |
386 // at three stages in the index searching process. | 386 // at three stages in the index searching process. |
387 size_t pre_filter_item_count_; // After word index is queried. | 387 size_t pre_filter_item_count_; // After word index is queried. |
388 size_t post_filter_item_count_; // After trimming large result set. | 388 size_t post_filter_item_count_; // After trimming large result set. |
389 size_t post_scoring_item_count_; // After performing final filter/scoring. | 389 size_t post_scoring_item_count_; // After performing final filter/scoring. |
390 }; | 390 }; |
391 | 391 |
392 } // namespace history | 392 } // namespace history |
393 | 393 |
394 #endif // CHROME_BROWSER_HISTORY_URL_INDEX_PRIVATE_DATA_H_ | 394 #endif // CHROME_BROWSER_AUTOCOMPLETE_URL_INDEX_PRIVATE_DATA_H_ |
OLD | NEW |