Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(204)

Side by Side Diff: components/safe_json/utility/safe_json_parser_mojo_impl.h

Issue 2483013002: Mojo C++ bindings: Remove more use_new_wrapper_types=false. (Closed)
Patch Set: . Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_SAFE_JSON_SAFE_JSON_PARSER_MOJO_IMPL_H_ 5 #ifndef COMPONENTS_SAFE_JSON_SAFE_JSON_PARSER_MOJO_IMPL_H_
6 #define COMPONENTS_SAFE_JSON_SAFE_JSON_PARSER_MOJO_IMPL_H_ 6 #define COMPONENTS_SAFE_JSON_SAFE_JSON_PARSER_MOJO_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "components/safe_json/public/interfaces/safe_json.mojom.h" 11 #include "components/safe_json/public/interfaces/safe_json.mojom.h"
12 12
13 namespace safe_json { 13 namespace safe_json {
14 14
15 class SafeJsonParserMojoImpl : public mojom::SafeJsonParser { 15 class SafeJsonParserMojoImpl : public mojom::SafeJsonParser {
16 public: 16 public:
17 SafeJsonParserMojoImpl(); 17 SafeJsonParserMojoImpl();
18 ~SafeJsonParserMojoImpl() override; 18 ~SafeJsonParserMojoImpl() override;
19 19
20 static void Create(mojo::InterfaceRequest<mojom::SafeJsonParser> request); 20 static void Create(mojo::InterfaceRequest<mojom::SafeJsonParser> request);
21 21
22 private: 22 private:
23 // mojom::SafeJsonParser implementation. 23 // mojom::SafeJsonParser implementation.
24 void Parse(const mojo::String& json, const ParseCallback& callback) override; 24 void Parse(const std::string& json, const ParseCallback& callback) override;
25 25
26 DISALLOW_COPY_AND_ASSIGN(SafeJsonParserMojoImpl); 26 DISALLOW_COPY_AND_ASSIGN(SafeJsonParserMojoImpl);
27 }; 27 };
28 28
29 } // namespace safe_json 29 } // namespace safe_json
30 30
31 #endif // COMPONENTS_SAFE_JSON_SAFE_JSON_PARSER_MOJO_IMPL_H_ 31 #endif // COMPONENTS_SAFE_JSON_SAFE_JSON_PARSER_MOJO_IMPL_H_
OLDNEW
« no previous file with comments | « components/safe_json/safe_json_parser_impl.cc ('k') | components/safe_json/utility/safe_json_parser_mojo_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698