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> |
| 9 |
8 #include <set> | 10 #include <set> |
9 #include <string> | 11 #include <string> |
10 | 12 |
11 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
12 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
13 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
14 #include "components/history/core/browser/history_service.h" | 16 #include "components/history/core/browser/history_service.h" |
15 #include "components/omnibox/browser/in_memory_url_index_cache.pb.h" | 17 #include "components/omnibox/browser/in_memory_url_index_cache.pb.h" |
16 #include "components/omnibox/browser/in_memory_url_index_types.h" | 18 #include "components/omnibox/browser/in_memory_url_index_types.h" |
17 #include "components/omnibox/browser/scored_history_match.h" | 19 #include "components/omnibox/browser/scored_history_match.h" |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 int saved_cache_version_; | 407 int saved_cache_version_; |
406 | 408 |
407 // Used for unit testing only. Records the number of candidate history items | 409 // Used for unit testing only. Records the number of candidate history items |
408 // at three stages in the index searching process. | 410 // at three stages in the index searching process. |
409 size_t pre_filter_item_count_; // After word index is queried. | 411 size_t pre_filter_item_count_; // After word index is queried. |
410 size_t post_filter_item_count_; // After trimming large result set. | 412 size_t post_filter_item_count_; // After trimming large result set. |
411 size_t post_scoring_item_count_; // After performing final filter/scoring. | 413 size_t post_scoring_item_count_; // After performing final filter/scoring. |
412 }; | 414 }; |
413 | 415 |
414 #endif // COMPONENTS_OMNIBOX_BROWSER_URL_INDEX_PRIVATE_DATA_H_ | 416 #endif // COMPONENTS_OMNIBOX_BROWSER_URL_INDEX_PRIVATE_DATA_H_ |
OLD | NEW |