chromium/components/search_engines/search_terms_data.cc

// Copyright 2014 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/search_engines/search_terms_data.h"
#include <memory>

#include "base/check.h"
#include "base/trace_event/memory_usage_estimator.h"
#include "base/trace_event/trace_event.h"
#include "build/build_config.h"
#include "components/google/core/common/google_util.h"
#include "components/lens/lens_features.h"
#include "url/gurl.h"

namespace {

// -----------------------------------------------------------------
// SearchTermsDataSnapshot

// Implementation of SearchTermsData that takes a snapshot of another
// SearchTermsData by copying all the responses to the different getters into
// member strings, then returning those strings when its own getters are called.
// This will typically be constructed on the UI thread from
// UIThreadSearchTermsData but is subsequently safe to use on any thread.
class SearchTermsDataSnapshot : public SearchTermsData {};

SearchTermsDataSnapshot::SearchTermsDataSnapshot(
    const SearchTermsData* search_terms_data) {}

SearchTermsDataSnapshot::~SearchTermsDataSnapshot() = default;

std::string SearchTermsDataSnapshot::GoogleBaseURLValue() const {}

std::string SearchTermsDataSnapshot::GetApplicationLocale() const {}

std::u16string SearchTermsDataSnapshot::GetRlzParameterValue(
    bool from_app_list) const {}

std::string SearchTermsDataSnapshot::GetSearchClient() const {}

std::string SearchTermsDataSnapshot::GoogleImageSearchSource() const {}

size_t SearchTermsDataSnapshot::EstimateMemoryUsage() const {}

}  // namespace

// static
std::unique_ptr<SearchTermsData> SearchTermsData::MakeSnapshot(
    const SearchTermsData* original_data) {}

SearchTermsData::SearchTermsData() = default;

SearchTermsData::~SearchTermsData() = default;

std::string SearchTermsData::GoogleBaseURLValue() const {}

std::string SearchTermsData::GoogleBaseSearchByImageURLValue() const {}

std::string SearchTermsData::GoogleBaseSuggestURLValue() const {}

std::string SearchTermsData::GetApplicationLocale() const {}

std::u16string SearchTermsData::GetRlzParameterValue(bool from_app_list) const {}

std::string SearchTermsData::GetSearchClient() const {}

std::string SearchTermsData::GoogleImageSearchSource() const {}

std::string SearchTermsData::GetYandexReferralID() const {}

std::string SearchTermsData::GetMailRUReferralID() const {}

size_t SearchTermsData::EstimateMemoryUsage() const {}