| Index: chrome/browser/bookmarks/bookmark_match.h
|
| diff --git a/chrome/browser/bookmarks/bookmark_title_match.h b/chrome/browser/bookmarks/bookmark_match.h
|
| similarity index 61%
|
| rename from chrome/browser/bookmarks/bookmark_title_match.h
|
| rename to chrome/browser/bookmarks/bookmark_match.h
|
| index 334c66e9dbee22bcaf765be54aeb18f4fd37c8e8..d794cfd46d1e168812515388ff4dd823e8a50719 100644
|
| --- a/chrome/browser/bookmarks/bookmark_title_match.h
|
| +++ b/chrome/browser/bookmarks/bookmark_match.h
|
| @@ -2,8 +2,8 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_TITLE_MATCH_H_
|
| -#define CHROME_BROWSER_BOOKMARKS_BOOKMARK_TITLE_MATCH_H_
|
| +#ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_MATCH_H_
|
| +#define CHROME_BROWSER_BOOKMARKS_BOOKMARK_MATCH_H_
|
|
|
| #include <stddef.h>
|
|
|
| @@ -12,20 +12,23 @@
|
|
|
| class BookmarkNode;
|
|
|
| -struct BookmarkTitleMatch {
|
| +struct BookmarkMatch {
|
| // Each MatchPosition is the [begin, end) positions of a match within a
|
| // string.
|
| typedef std::pair<size_t, size_t> MatchPosition;
|
| typedef std::vector<MatchPosition> MatchPositions;
|
|
|
| - BookmarkTitleMatch();
|
| - ~BookmarkTitleMatch();
|
| + BookmarkMatch();
|
| + ~BookmarkMatch();
|
|
|
| // The matching node of a query.
|
| const BookmarkNode* node;
|
|
|
| // Location of the matching words in the title of the node.
|
| - MatchPositions match_positions;
|
| + MatchPositions title_match_positions;
|
| +
|
| + // Location of the matching words in the URL of the node.
|
| + MatchPositions url_match_positions;
|
| };
|
|
|
| -#endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_TITLE_MATCH_H_
|
| +#endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_MATCH_H_
|
|
|