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

Unified Diff: components/bookmarks/browser/titled_url_match.h

Issue 2569333003: Rename BookmarkIndex to TitledUrlIndex and BookmarkMatch to TitledUrlMatch (Closed)
Patch Set: fix bookmark_bridge.cc Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/bookmarks/browser/titled_url_index.cc ('k') | components/bookmarks/browser/titled_url_match.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 81%
rename from components/bookmarks/browser/bookmark_match.h
rename to components/bookmarks/browser/titled_url_match.h
index 76cb0bfae6b1a84b4f4d1588fc4dd460873b3cbf..767a1907d0613dcc90a0c423bedf52f2ecd7b797 100644
--- a/components/bookmarks/browser/bookmark_match.h
+++ b/components/bookmarks/browser/titled_url_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 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_
« no previous file with comments | « components/bookmarks/browser/titled_url_index.cc ('k') | components/bookmarks/browser/titled_url_match.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698