Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Side by Side Diff: components/history/core/browser/history_match.h

Issue 371283002: Componentize HistoryMatch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « components/history.gypi ('k') | components/history/core/browser/history_match.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « components/history.gypi ('k') | components/history/core/browser/history_match.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698