json_parser_impl.h 854 B

1234567891011121314151617181920212223242526272829303132
  1. // Copyright 2013 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. #ifndef SERVICES_DATA_DECODER_JSON_PARSER_IMPL_H_
  5. #define SERVICES_DATA_DECODER_JSON_PARSER_IMPL_H_
  6. #include <string>
  7. #include "services/data_decoder/public/mojom/json_parser.mojom.h"
  8. namespace data_decoder {
  9. class JsonParserImpl : public mojom::JsonParser {
  10. public:
  11. JsonParserImpl();
  12. JsonParserImpl(const JsonParserImpl&) = delete;
  13. JsonParserImpl& operator=(const JsonParserImpl&) = delete;
  14. ~JsonParserImpl() override;
  15. private:
  16. // mojom::JsonParser implementation.
  17. void Parse(const std::string& json,
  18. uint32_t options,
  19. ParseCallback callback) override;
  20. };
  21. } // namespace data_decoder
  22. #endif // SERVICES_DATA_DECODER_JSON_PARSER_IMPL_H_