chromium/components/bookmarks/browser/typed_count_sorter.cc

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/bookmarks/browser/typed_count_sorter.h"

#include "base/memory/raw_ref.h"
#include "base/ranges/algorithm.h"
#include "components/bookmarks/browser/bookmark_client.h"
#include "components/bookmarks/browser/titled_url_node.h"

namespace bookmarks {

UrlTypedCountMap;

namespace {

UrlNodeMap;
UrlTypedCountPair;
UrlTypedCountPairs;

// Sort functor for UrlTypedCountPairs. We sort in decreasing order of typed
// count so that the best matches will always be added to the results.
struct UrlTypedCountPairSortFunctor {};

// Extract the GURL stored in an UrlTypedCountPair and use it to look up the
// corresponding TitledUrlNode.
class UrlTypedCountPairNodeLookupFunctor {};

}  // namespace

TypedCountSorter::TypedCountSorter(BookmarkClient* client)
    :{}

TypedCountSorter::~TypedCountSorter() = default;

void TypedCountSorter::SortMatches(const TitledUrlNodeSet& matches,
                                   TitledUrlNodes* sorted_nodes) const {}

}  // namespace bookmarks