summaryrefslogtreecommitdiff
path: root/chromium/services/data_decoder/xml_parser.h
blob: 53ee659c5abc11ac944010078d7c0da22370960a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright 2017 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 SERVICES_DATA_DECODER_XML_PARSER_H_
#define SERVICES_DATA_DECODER_XML_PARSER_H_

#include <memory>
#include <string>

#include "base/macros.h"
#include "services/data_decoder/public/mojom/xml_parser.mojom.h"

namespace data_decoder {

class XmlParser : public mojom::XmlParser {
 public:
  XmlParser();
  ~XmlParser() override;

 private:
  // mojom::XmlParser implementation.
  void Parse(const std::string& xml, ParseCallback callback) override;

  DISALLOW_COPY_AND_ASSIGN(XmlParser);
};

}  // namespace data_decoder

#endif  // SERVICES_DATA_DECODER_XML_PARSER_H_