chromium/components/ntp_tiles/custom_links_manager_impl.cc

// Copyright 2018 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/ntp_tiles/custom_links_manager_impl.h"

#include <memory>
#include <string>
#include <utility>
#include <vector>

#include "base/auto_reset.h"
#include "base/functional/bind.h"
#include "base/ranges/algorithm.h"
#include "components/ntp_tiles/constants.h"
#include "components/ntp_tiles/deleted_tile_type.h"
#include "components/ntp_tiles/metrics.h"
#include "components/ntp_tiles/most_visited_sites.h"
#include "components/ntp_tiles/pref_names.h"
#include "components/pref_registry/pref_registry_syncable.h"
#include "components/prefs/pref_service.h"

namespace ntp_tiles {

CustomLinksManagerImpl::CustomLinksManagerImpl(
    PrefService* prefs,
    history::HistoryService* history_service)
    :{}

CustomLinksManagerImpl::~CustomLinksManagerImpl() = default;

bool CustomLinksManagerImpl::Initialize(const NTPTilesVector& tiles) {}

void CustomLinksManagerImpl::Uninitialize() {}

bool CustomLinksManagerImpl::IsInitialized() const {}

const std::vector<CustomLinksManager::Link>& CustomLinksManagerImpl::GetLinks()
    const {}

bool CustomLinksManagerImpl::AddLink(const GURL& url,
                                     const std::u16string& title) {}

bool CustomLinksManagerImpl::UpdateLink(const GURL& url,
                                        const GURL& new_url,
                                        const std::u16string& new_title) {}

bool CustomLinksManagerImpl::ReorderLink(const GURL& url, size_t new_pos) {}

bool CustomLinksManagerImpl::DeleteLink(const GURL& url) {}

bool CustomLinksManagerImpl::UndoAction() {}

void CustomLinksManagerImpl::ClearLinks() {}

void CustomLinksManagerImpl::StoreLinks() {}

void CustomLinksManagerImpl::RemoveCustomLinksForPreinstalledApps() {}

std::vector<CustomLinksManager::Link>::iterator
CustomLinksManagerImpl::FindLinkWithUrl(const GURL& url) {}

base::CallbackListSubscription
CustomLinksManagerImpl::RegisterCallbackForOnChanged(
    base::RepeatingClosure callback) {}

// history::HistoryServiceObserver implementation.
void CustomLinksManagerImpl::OnHistoryDeletions(
    history::HistoryService* history_service,
    const history::DeletionInfo& deletion_info) {}

void CustomLinksManagerImpl::HistoryServiceBeingDeleted(
    history::HistoryService* history_service) {}

void CustomLinksManagerImpl::OnPreferenceChanged() {}

// static
void CustomLinksManagerImpl::RegisterProfilePrefs(
    user_prefs::PrefRegistrySyncable* user_prefs) {}

}  // namespace ntp_tiles