chromium/components/omnibox/browser/voice_suggest_provider.cc

// Copyright 2020 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/omnibox/browser/voice_suggest_provider.h"

#include <string>

#include "components/omnibox/browser/autocomplete_input.h"
#include "components/omnibox/browser/autocomplete_match.h"
#include "components/omnibox/browser/autocomplete_match_classification.h"
#include "components/search_engines/template_url.h"
#include "components/search_engines/template_url_service.h"
#include "third_party/omnibox_proto/navigational_intent.pb.h"
#include "third_party/omnibox_proto/types.pb.h"

namespace {
// Maximum and minimum score allowed for voice suggestions.
// The score is multiplied by confidence score to produce suggestion relevance.
constexpr const int kMaxVoiceSuggestionScore =;
constexpr const int kMinVoiceSuggestionScore =;
constexpr const float kConfidenceAlternativesCutoff =;
constexpr const float kConfidenceRelevanceCutoff =;
constexpr const int kMaxVoiceMatchesToOffer =;

// Calculate relevance score for voice suggestion from confidence score.
constexpr int ConfidenceScoreToSuggestionScore(float confidence_score) {}
}  // namespace

VoiceSuggestProvider::VoiceSuggestProvider(AutocompleteProviderClient* client)
    :{}

VoiceSuggestProvider::~VoiceSuggestProvider() = default;

void VoiceSuggestProvider::Start(const AutocompleteInput& input,
                                 bool minimal_changes) {}

bool VoiceSuggestProvider::ShouldAppendExtraParams(
    const SearchSuggestionParser::SuggestResult& result) const {}

void VoiceSuggestProvider::RecordDeletionResult(bool success) {}

void VoiceSuggestProvider::Stop(bool clear_cached_results,
                                bool due_to_user_inactivity) {}

void VoiceSuggestProvider::ClearCache() {}

void VoiceSuggestProvider::AddVoiceSuggestion(std::u16string voice_match,
                                              float confidence_score) {}