blob: a6b4999a93d5046b689ab298797f40039dd7bb64 [file] [log] [blame]
// 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.
#include "components/update_client/protocol_handler.h"
#include "components/update_client/protocol_parser_json.h"
#include "components/update_client/protocol_parser_xml.h"
#include "components/update_client/protocol_serializer_json.h"
#include "components/update_client/protocol_serializer_xml.h"
namespace update_client {
std::unique_ptr<ProtocolParser> ProtocolHandlerFactoryXml::CreateParser()
const {
return std::make_unique<ProtocolParserXml>();
}
std::unique_ptr<ProtocolSerializer>
ProtocolHandlerFactoryXml::CreateSerializer() const {
return std::make_unique<ProtocolSerializerXml>();
}
std::unique_ptr<ProtocolParser> ProtocolHandlerFactoryJSON::CreateParser()
const {
return std::make_unique<ProtocolParserJSON>();
}
std::unique_ptr<ProtocolSerializer>
ProtocolHandlerFactoryJSON::CreateSerializer() const {
return std::make_unique<ProtocolSerializerJSON>();
}
} // namespace update_client