forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxml_parser.h
34 lines (24 loc) · 966 Bytes
/
xml_parser.h
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
31
32
33
34
// 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"
#include "services/service_manager/public/cpp/service_context_ref.h"
namespace data_decoder {
class XmlParser : public mojom::XmlParser {
public:
explicit XmlParser(
std::unique_ptr<service_manager::ServiceContextRef> service_ref);
~XmlParser() override;
private:
const std::unique_ptr<service_manager::ServiceContextRef> service_ref_;
// 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_