| Index: components/bookmarks/browser/titled_url_match.h
|
| diff --git a/components/bookmarks/browser/bookmark_match.h b/components/bookmarks/browser/titled_url_match.h
|
| similarity index 77%
|
| rename from components/bookmarks/browser/bookmark_match.h
|
| rename to components/bookmarks/browser/titled_url_match.h
|
| index 76cb0bfae6b1a84b4f4d1588fc4dd460873b3cbf..6eab8c0d4272acc554061536684afeedb4d420d6 100644
|
| --- a/components/bookmarks/browser/bookmark_match.h
|
| +++ b/components/bookmarks/browser/titled_url_match.h
|
| @@ -1,9 +1,9 @@
|
| -// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_MATCH_H_
|
| -#define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_MATCH_H_
|
| +#ifndef COMPONENTS_BOOKMARKS_BROWSER_TITLED_URL_MATCH_H_
|
| +#define COMPONENTS_BOOKMARKS_BROWSER_TITLED_URL_MATCH_H_
|
|
|
| #include <stddef.h>
|
|
|
| @@ -15,15 +15,15 @@ namespace bookmarks {
|
|
|
| class TitledUrlNode;
|
|
|
| -struct BookmarkMatch {
|
| +struct TitledUrlMatch {
|
| // Each MatchPosition is the [begin, end) positions of a match within a
|
| // string.
|
| using MatchPosition = std::pair<size_t, size_t>;
|
| using MatchPositions = std::vector<MatchPosition>;
|
|
|
| - BookmarkMatch();
|
| - BookmarkMatch(const BookmarkMatch& other);
|
| - ~BookmarkMatch();
|
| + TitledUrlMatch();
|
| + TitledUrlMatch(const TitledUrlMatch& other);
|
| + ~TitledUrlMatch();
|
|
|
| // Extracts and returns the offsets from |match_positions|.
|
| static std::vector<size_t> OffsetsFromMatchPositions(
|
| @@ -48,4 +48,4 @@ struct BookmarkMatch {
|
|
|
| } // namespace bookmarks
|
|
|
| -#endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_MATCH_H_
|
| +#endif // COMPONENTS_BOOKMARKS_BROWSER_TITLED_URL_MATCH_H_
|
|
|