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

Side by Side Diff: mojo/common/common_type_converters.h

Issue 1543603002: Switch to standard integer types in mojo/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years 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 MOJO_COMMON_COMMON_TYPE_CONVERTERS_H_ 5 #ifndef MOJO_COMMON_COMMON_TYPE_CONVERTERS_H_
6 #define MOJO_COMMON_COMMON_TYPE_CONVERTERS_H_ 6 #define MOJO_COMMON_COMMON_TYPE_CONVERTERS_H_
7 7
8 #include <stdint.h>
9
8 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
9 #include "base/strings/string_piece.h" 11 #include "base/strings/string_piece.h"
10 #include "mojo/common/mojo_common_export.h" 12 #include "mojo/common/mojo_common_export.h"
11 #include "mojo/public/cpp/bindings/array.h" 13 #include "mojo/public/cpp/bindings/array.h"
12 #include "mojo/public/cpp/bindings/string.h" 14 #include "mojo/public/cpp/bindings/string.h"
13 #include "mojo/public/cpp/bindings/type_converter.h" 15 #include "mojo/public/cpp/bindings/type_converter.h"
14 16
15 namespace mojo { 17 namespace mojo {
16 18
17 template <> 19 template <>
(...skipping 26 matching lines...) Expand all
44 }; 46 };
45 47
46 template <> 48 template <>
47 struct MOJO_COMMON_EXPORT TypeConverter<Array<uint8_t>, std::string> { 49 struct MOJO_COMMON_EXPORT TypeConverter<Array<uint8_t>, std::string> {
48 static Array<uint8_t> Convert(const std::string& input); 50 static Array<uint8_t> Convert(const std::string& input);
49 }; 51 };
50 52
51 } // namespace mojo 53 } // namespace mojo
52 54
53 #endif // MOJO_COMMON_COMMON_TYPE_CONVERTERS_H_ 55 #endif // MOJO_COMMON_COMMON_TYPE_CONVERTERS_H_
OLDNEW
« no previous file with comments | « mojo/application/public/cpp/lib/service_registry.cc ('k') | mojo/common/common_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698