blob: 1e1891a33b8616a0569b04ddb800e27b45e894d1 [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.
#ifndef CHROME_CHROME_CLEANER_PARSERS_TARGET_PARSER_IMPL_H_
#define CHROME_CHROME_CLEANER_PARSERS_TARGET_PARSER_IMPL_H_
#include "chrome/chrome_cleaner/interfaces/parser_interface.mojom.h"
#include "mojo/public/cpp/bindings/binding.h"
namespace chrome_cleaner {
class ParserImpl : public mojom::Parser {
public:
explicit ParserImpl(mojom::ParserRequest request,
base::OnceClosure connection_error_handler);
~ParserImpl() override;
// mojom::Parser
void ParseJson(const std::string& json,
ParserImpl::ParseJsonCallback callback) override;
private:
mojo::Binding<mojom::Parser> binding_;
};
} // namespace chrome_cleaner
#endif // CHROME_CHROME_CLEANER_PARSERS_TARGET_PARSER_IMPL_H_