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 CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_UTIL_H_ |
6 #define CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_UTIL_H_ | 6 #define CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_UTIL_H_ |
7 #pragma once | |
8 | 7 |
9 #include <deque> | 8 #include <deque> |
10 #include <vector> | 9 #include <vector> |
11 | 10 |
12 #include "chrome/browser/history/history_types.h" | 11 #include "chrome/browser/history/history_types.h" |
13 | 12 |
14 namespace history { | 13 namespace history { |
15 | 14 |
16 // Used for intermediate history result operations. | 15 // Used for intermediate history result operations. |
17 struct HistoryMatch { | 16 struct HistoryMatch { |
(...skipping 27 matching lines...) Expand all Loading... |
45 // better than a non-innermost match ("www.google.com"). If the user types | 44 // better than a non-innermost match ("www.google.com"). If the user types |
46 // "x", no scheme in our prefix list (or "www.") begins with x, so all | 45 // "x", no scheme in our prefix list (or "www.") begins with x, so all |
47 // matches are, vacuously, "innermost matches". | 46 // matches are, vacuously, "innermost matches". |
48 bool innermost_match; | 47 bool innermost_match; |
49 }; | 48 }; |
50 typedef std::deque<HistoryMatch> HistoryMatches; | 49 typedef std::deque<HistoryMatch> HistoryMatches; |
51 | 50 |
52 } // namespace history | 51 } // namespace history |
53 | 52 |
54 #endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_UTIL_H_ | 53 #endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_UTIL_H_ |
OLD | NEW |