| 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_AUTOCOMPLETE_HISTORY_PROVIDER_UTIL_H_ | 5 #ifndef COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_MATCH_H_ |
| 6 #define CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_UTIL_H_ | 6 #define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_MATCH_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <vector> | |
| 10 | 9 |
| 11 #include "chrome/browser/history/history_types.h" | 10 #include "components/history/core/browser/url_row.h" |
| 12 | 11 |
| 13 namespace history { | 12 namespace history { |
| 14 | 13 |
| 15 // Used for intermediate history result operations. | 14 // Used for intermediate history result operations. |
| 16 struct HistoryMatch { | 15 struct HistoryMatch { |
| 17 // Required for STL, we don't use this directly. | 16 // Required for STL, we don't use this directly. |
| 18 HistoryMatch(); | 17 HistoryMatch(); |
| 19 | 18 |
| 20 HistoryMatch(const URLRow& url_info, | 19 HistoryMatch(const URLRow& url_info, |
| 21 size_t input_location, | 20 size_t input_location, |
| (...skipping 26 matching lines...) Expand all Loading... |
| 48 // locations. If the user types "w", an innermost match ("website.com") is | 47 // locations. If the user types "w", an innermost match ("website.com") is |
| 49 // better than a non-innermost match ("www.google.com"). If the user types | 48 // better than a non-innermost match ("www.google.com"). If the user types |
| 50 // "x", no scheme in our prefix list (or "www.") begins with x, so all | 49 // "x", no scheme in our prefix list (or "www.") begins with x, so all |
| 51 // matches are, vacuously, "innermost matches". | 50 // matches are, vacuously, "innermost matches". |
| 52 bool innermost_match; | 51 bool innermost_match; |
| 53 }; | 52 }; |
| 54 typedef std::deque<HistoryMatch> HistoryMatches; | 53 typedef std::deque<HistoryMatch> HistoryMatches; |
| 55 | 54 |
| 56 } // namespace history | 55 } // namespace history |
| 57 | 56 |
| 58 #endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_UTIL_H_ | 57 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_MATCH_H_ |
| OLD | NEW |