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

Unified Diff: components/bookmarks/core/browser/bookmark_match.h

Issue 284893003: Move bookmarks/core/... to bookmarks/... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing errors reported by presubmit Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: components/bookmarks/core/browser/bookmark_match.h
diff --git a/components/bookmarks/core/browser/bookmark_match.h b/components/bookmarks/core/browser/bookmark_match.h
deleted file mode 100644
index b53f9c8ddb8873f4128f10f0f0ac1c15a4d948ca..0000000000000000000000000000000000000000
--- a/components/bookmarks/core/browser/bookmark_match.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2014 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_CORE_BROWSER_BOOKMARK_TITLE_MATCH_H_
-#define COMPONENTS_BOOKMARKS_CORE_BROWSER_BOOKMARK_TITLE_MATCH_H_
-
-#include <cstddef>
-#include <utility>
-#include <vector>
-
-class BookmarkNode;
-
-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;
-
- BookmarkMatch();
- ~BookmarkMatch();
-
- // Extracts and returns the offsets from |match_positions|.
- static std::vector<size_t> OffsetsFromMatchPositions(
- const MatchPositions& match_positions);
-
- // Replaces the offsets in |match_positions| with those given in |offsets|,
- // deleting any which are npos, and returns the updated list of match
- // positions.
- static MatchPositions ReplaceOffsetsInMatchPositions(
- const MatchPositions& match_positions,
- const std::vector<size_t>& offsets);
-
- // The matching node of a query.
- const BookmarkNode* node;
-
- // Location of the matching words in the title of the node.
- MatchPositions title_match_positions;
-
- // Location of the matching words in the URL of the node.
- MatchPositions url_match_positions;
-};
-
-#endif // COMPONENTS_BOOKMARKS_CORE_BROWSER_BOOKMARK_TITLE_MATCH_H_
« no previous file with comments | « components/bookmarks/core/browser/bookmark_index_unittest.cc ('k') | components/bookmarks/core/browser/bookmark_match.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698