summaryrefslogtreecommitdiff
path: root/chromium/components/update_client/protocol_handler.cc
blob: aa547b40b7c518727baad6f87aa53663a647221b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// 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_serializer_json.h"

namespace update_client {

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