Chromium Code Reviews| Index: content/renderer/bluetooth/bluetooth_type_converters.h |
| diff --git a/content/renderer/bluetooth/bluetooth_type_converters.h b/content/renderer/bluetooth/bluetooth_type_converters.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4accc6089bcc70bf84017f3acb2169389c720d9a |
| --- /dev/null |
| +++ b/content/renderer/bluetooth/bluetooth_type_converters.h |
| @@ -0,0 +1,17 @@ |
| +// Copyright 2016 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. |
| + |
| +#include "mojo/public/cpp/bindings/type_converter.h" |
| + |
| +#include "content/common/bluetooth/bluetooth_service.mojom.h" |
| +#include "third_party/WebKit/public/platform/WebString.h" |
| + |
| +namespace mojo { |
| + |
| +template <> |
| +struct TypeConverter<String, blink::WebString> { |
|
Ken Rockot(use gerrit already)
2016/03/09 19:31:26
This should move somewhere more generic (somewhere
ortuno
2016/03/16 16:29:45
Done.
|
| + static String Convert(const blink::WebString& web_string); |
| +}; |
| + |
| +} // namespace mojo |