blob: 239101c1b77f387e860b4c60a693ea5b7f81a677 [file] [log] [blame]
// Copyright 2025 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_LEGION_SESSION_DESERIALIZER_H_
#define COMPONENTS_LEGION_SESSION_DESERIALIZER_H_
#include "base/values.h"
namespace oak::session::v1 {
class SessionResponse;
}
namespace legion {
// Deserializes a base::Value into a SessionResponse proto.
// Returns true on success, false on failure.
// Ideally this logic would be generated by proto_extras like the Serialize()
// function.
bool DeserializeSessionResponse(const base::Value& value,
oak::session::v1::SessionResponse* out_proto);
} // namespace legion
#endif // COMPONENTS_LEGION_SESSION_DESERIALIZER_H_