protocol_serializer_json.h 878 B

12345678910111213141516171819202122232425262728
  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. #ifndef COMPONENTS_UPDATE_CLIENT_PROTOCOL_SERIALIZER_JSON_H_
  5. #define COMPONENTS_UPDATE_CLIENT_PROTOCOL_SERIALIZER_JSON_H_
  6. #include <string>
  7. #include "components/update_client/protocol_serializer.h"
  8. namespace update_client {
  9. class ProtocolSerializerJSON final : public ProtocolSerializer {
  10. public:
  11. ProtocolSerializerJSON() = default;
  12. ProtocolSerializerJSON(const ProtocolSerializerJSON&) = delete;
  13. ProtocolSerializerJSON& operator=(const ProtocolSerializerJSON&) = delete;
  14. // Overrides for ProtocolSerializer.
  15. std::string Serialize(
  16. const protocol_request::Request& request) const override;
  17. };
  18. } // namespace update_client
  19. #endif // COMPONENTS_UPDATE_CLIENT_PROTOCOL_SERIALIZER_JSON_H_