| 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_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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |