chromium/components/optimization_guide/core/optimization_guide_proto_util.h

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

#ifndef COMPONENTS_OPTIMIZATION_GUIDE_CORE_OPTIMIZATION_GUIDE_PROTO_UTIL_H_
#define COMPONENTS_OPTIMIZATION_GUIDE_CORE_OPTIMIZATION_GUIDE_PROTO_UTIL_H_

namespace autofill {
class FormData;
}  // namespace autofill

namespace optimization_guide::proto {
class FormData;
}  // namespace optimization_guide::proto

namespace optimization_guide {

// Converts `form_data` to its corresponding form data proto.
optimization_guide::proto::FormData ToFormDataProto(
    const autofill::FormData& form_data);

}  // namespace optimization_guide

#endif  // COMPONENTS_OPTIMIZATION_GUIDE_CORE_OPTIMIZATION_GUIDE_PROTO_UTIL_H_