#include "components/optimization_guide/core/model_execution/simple_response_parser.h"
#include <memory>
#include "base/functional/callback.h"
#include "base/types/expected.h"
#include "components/optimization_guide/core/model_execution/on_device_model_execution_proto_descriptors.h"
#include "components/optimization_guide/core/model_execution/response_parser.h"
namespace optimization_guide {
SimpleResponseParser::SimpleResponseParser(
const proto::OnDeviceModelExecutionOutputConfig& config)
: … { … }
SimpleResponseParser::~SimpleResponseParser() = default;
void SimpleResponseParser::ParseAsync(const std::string& redacted_output,
ResultCallback result_callback) const { … }
SimpleResponseParserFactory::SimpleResponseParserFactory() = default;
SimpleResponseParserFactory::~SimpleResponseParserFactory() = default;
std::unique_ptr<ResponseParser> SimpleResponseParserFactory::CreateParser(
const proto::OnDeviceModelExecutionOutputConfig& config) { … }
}