Sorin Jianu | 47a4dd8c | 2018-10-19 16:34:54 | [diff] [blame] | 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 | |
| 5 | #include "components/update_client/protocol_handler.h" |
Sorin Jianu | 55587d3 | 2018-11-14 21:43:27 | [diff] [blame] | 6 | #include "components/update_client/protocol_parser_json.h" |
Sorin Jianu | 55587d3 | 2018-11-14 21:43:27 | [diff] [blame] | 7 | #include "components/update_client/protocol_serializer_json.h" |
Sorin Jianu | 47a4dd8c | 2018-10-19 16:34:54 | [diff] [blame] | 8 | |
| 9 | namespace update_client { |
| 10 | |
Sorin Jianu | 55587d3 | 2018-11-14 21:43:27 | [diff] [blame] | 11 | std::unique_ptr<ProtocolParser> ProtocolHandlerFactoryJSON::CreateParser() |
| 12 | const { |
| 13 | return std::make_unique<ProtocolParserJSON>(); |
| 14 | } |
| 15 | |
| 16 | std::unique_ptr<ProtocolSerializer> |
| 17 | ProtocolHandlerFactoryJSON::CreateSerializer() const { |
| 18 | return std::make_unique<ProtocolSerializerJSON>(); |
| 19 | } |
| 20 | |
Sorin Jianu | 47a4dd8c | 2018-10-19 16:34:54 | [diff] [blame] | 21 | } // namespace update_client |