blob: aa547b40b7c518727baad6f87aa53663a647221b [file] [log] [blame]
Sorin Jianu47a4dd8c2018-10-19 16:34:541// 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#include "components/update_client/protocol_handler.h"
Sorin Jianu55587d32018-11-14 21:43:276#include "components/update_client/protocol_parser_json.h"
Sorin Jianu55587d32018-11-14 21:43:277#include "components/update_client/protocol_serializer_json.h"
Sorin Jianu47a4dd8c2018-10-19 16:34:548
9namespace update_client {
10
Sorin Jianu55587d32018-11-14 21:43:2711std::unique_ptr<ProtocolParser> ProtocolHandlerFactoryJSON::CreateParser()
12 const {
13 return std::make_unique<ProtocolParserJSON>();
14}
15
16std::unique_ptr<ProtocolSerializer>
17ProtocolHandlerFactoryJSON::CreateSerializer() const {
18 return std::make_unique<ProtocolSerializerJSON>();
19}
20
Sorin Jianu47a4dd8c2018-10-19 16:34:5421} // namespace update_client