| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_HISTORY_CORE_BROWSER_HISTORY_MATCH_H_ | 5 #ifndef COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_MATCH_H_ |
| 6 #define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_MATCH_H_ | 6 #define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_MATCH_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 9 |
| 8 #include <deque> | 10 #include <deque> |
| 9 | 11 |
| 10 #include "components/history/core/browser/url_row.h" | 12 #include "components/history/core/browser/url_row.h" |
| 11 | 13 |
| 12 namespace history { | 14 namespace history { |
| 13 | 15 |
| 14 // Used for intermediate history result operations. | 16 // Used for intermediate history result operations. |
| 15 struct HistoryMatch { | 17 struct HistoryMatch { |
| 16 // Required for STL, we don't use this directly. | 18 // Required for STL, we don't use this directly. |
| 17 HistoryMatch(); | 19 HistoryMatch(); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 48 // better than a non-innermost match ("www.google.com"). If the user types | 50 // better than a non-innermost match ("www.google.com"). If the user types |
| 49 // "x", no scheme in our prefix list (or "www.") begins with x, so all | 51 // "x", no scheme in our prefix list (or "www.") begins with x, so all |
| 50 // matches are, vacuously, "innermost matches". | 52 // matches are, vacuously, "innermost matches". |
| 51 bool innermost_match; | 53 bool innermost_match; |
| 52 }; | 54 }; |
| 53 typedef std::deque<HistoryMatch> HistoryMatches; | 55 typedef std::deque<HistoryMatch> HistoryMatches; |
| 54 | 56 |
| 55 } // namespace history | 57 } // namespace history |
| 56 | 58 |
| 57 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_MATCH_H_ | 59 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_MATCH_H_ |
| OLD | NEW |