blob: 72ca731621499a7ca2a4bd39191bde0111767436 [file] [log] [blame]
// Copyright 2021 The Chromium OS 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 ML_TEXT_SUGGESTER_PROTO_MOJOM_CONVERSION_H_
#define ML_TEXT_SUGGESTER_PROTO_MOJOM_CONVERSION_H_
#include "chrome/knowledge/suggest/text_suggester_interface.pb.h"
#include "ml/mojom/text_suggester.mojom.h"
namespace ml {
// Converts mojom::TextSuggesterQueryPtr into
// chrome_knowledge::TextSuggesterRequest proto.
chrome_knowledge::TextSuggesterRequest TextSuggesterQueryToProto(
chromeos::machine_learning::mojom::TextSuggesterQueryPtr query);
// Converts chrome_knowledge::TextSuggesterResult proto into
// mojom::TextSuggesterResultPtr.
chromeos::machine_learning::mojom::TextSuggesterResultPtr
TextSuggesterResultFromProto(
const chrome_knowledge::TextSuggesterResult& result_proto);
} // namespace ml
#endif // ML_TEXT_SUGGESTER_PROTO_MOJOM_CONVERSION_H_