protocol_handler.cc 687 B

123456789101112131415161718192021
  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. #include "components/update_client/protocol_handler.h"
  5. #include "components/update_client/protocol_parser_json.h"
  6. #include "components/update_client/protocol_serializer_json.h"
  7. namespace update_client {
  8. std::unique_ptr<ProtocolParser> ProtocolHandlerFactoryJSON::CreateParser()
  9. const {
  10. return std::make_unique<ProtocolParserJSON>();
  11. }
  12. std::unique_ptr<ProtocolSerializer>
  13. ProtocolHandlerFactoryJSON::CreateSerializer() const {
  14. return std::make_unique<ProtocolSerializerJSON>();
  15. }
  16. } // namespace update_client