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

Side by Side Diff: components/framelet/common/value_type_converters.h

Issue 1602663003: Framelet Prototype 2016 using Mojo IPC Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Disabled oilpan Created 4 years, 10 months 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
(Empty)
1 // Copyright 2015 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
5 #include "mojo/public/cpp/bindings/type_converter.h"
6
7 #include "base/values.h"
8 #include "components/framelet/common/framelet.mojom.h"
9
10 namespace mojo {
11
12 template <>
13 struct TypeConverter<int, framelet::mojom::ValuePtr> {
14 static int Convert(const framelet::mojom::ValuePtr& input);
15 };
16
17 template <>
18 struct TypeConverter<framelet::mojom::ValuePtr, int> {
19 static framelet::mojom::ValuePtr Convert(int input);
20 };
21
22 template <>
23 struct TypeConverter<bool, framelet::mojom::ValuePtr> {
24 static bool Convert(const framelet::mojom::ValuePtr& input);
25 };
26
27 template <>
28 struct TypeConverter<framelet::mojom::ValuePtr, bool> {
29 static framelet::mojom::ValuePtr Convert(bool input);
30 };
31
32 template <>
33 struct TypeConverter<framelet::mojom::ValuePtr, std::string> {
34 static framelet::mojom::ValuePtr Convert(const std::string& input);
35 };
36
37 template <>
38 struct TypeConverter<base::Value*, framelet::mojom::ValuePtr> {
39 static base::Value* Convert(const framelet::mojom::ValuePtr& value);
40 };
41
42 } // namesapce mojo
OLDNEW
« no previous file with comments | « components/framelet/common/framelet_param_traits.h ('k') | components/framelet/common/value_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698