blob: 71f2a998bff2fe2c60e5c9b1bb2adf6e1ac4b454 [file] [log] [blame]
Yavor Goulishev9c08e842020-04-29 14:03:33 -07001// 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
12namespace update_client {
13
14class 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_