| // Copyright 2018 The Chromium Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| #ifndef COMPONENTS_UPDATE_CLIENT_PROTOCOL_SERIALIZER_JSON_H_ | |
| #define COMPONENTS_UPDATE_CLIENT_PROTOCOL_SERIALIZER_JSON_H_ | |
| #include <string> | |
| #include "components/update_client/protocol_serializer.h" | |
| namespace update_client { | |
| class ProtocolSerializerJSON final : public ProtocolSerializer { | |
| public: | |
| ProtocolSerializerJSON() = default; | |
| // Overrides for ProtocolSerializer. | |
| std::string Serialize( | |
| const protocol_request::Request& request) const override; | |
| private: | |
| DISALLOW_COPY_AND_ASSIGN(ProtocolSerializerJSON); | |
| }; | |
| } // namespace update_client | |
| #endif // COMPONENTS_UPDATE_CLIENT_PROTOCOL_SERIALIZER_JSON_H_ |