Yavor Goulishev | 9c08e84 | 2020-04-29 14:03:33 -0700 | [diff] [blame] | 1 | // Copyright 2018 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef COMPONENTS_UPDATE_CLIENT_PROTOCOL_SERIALIZER_JSON_H_ |
| 6 | #define COMPONENTS_UPDATE_CLIENT_PROTOCOL_SERIALIZER_JSON_H_ |
| 7 | |
| 8 | #include <string> |
| 9 | |
| 10 | #include "components/update_client/protocol_serializer.h" |
| 11 | |
| 12 | namespace update_client { |
| 13 | |
| 14 | class ProtocolSerializerJSON final : public ProtocolSerializer { |
| 15 | public: |
| 16 | ProtocolSerializerJSON() = default; |
| 17 | |
| 18 | // Overrides for ProtocolSerializer. |
| 19 | std::string Serialize( |
| 20 | const protocol_request::Request& request) const override; |
| 21 | |
| 22 | private: |
| 23 | DISALLOW_COPY_AND_ASSIGN(ProtocolSerializerJSON); |
| 24 | }; |
| 25 | |
| 26 | } // namespace update_client |
| 27 | |
| 28 | #endif // COMPONENTS_UPDATE_CLIENT_PROTOCOL_SERIALIZER_JSON_H_ |