| // 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_ |