OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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 #ifndef IDBStructTraits_h |
| 6 #define IDBStructTraits_h |
| 7 |
| 8 #include "Source/modules/indexeddb/indexed_db.mojom-blink.h" |
| 9 #include "public/platform/modules/indexeddb/WebIDBTypes.h" |
| 10 |
| 11 namespace mojo { |
| 12 |
| 13 template <> |
| 14 struct EnumTraits<indexed_db::mojom::blink::DataLoss, blink::WebIDBDataLoss> { |
| 15 static indexed_db::mojom::blink::DataLoss ToMojom(blink::WebIDBDataLoss inpu
t); |
| 16 static bool FromMojom(indexed_db::mojom::blink::DataLoss input, |
| 17 blink::WebIDBDataLoss* output); |
| 18 }; |
| 19 |
| 20 // TODO(cmumford): Can't include IDBKey.h - does v8 stuff. |
| 21 |
| 22 // TODO(cmumford): Looks like can't map to metadata because it has a |
| 23 // IDBKeyPath which depends on V8 :-(. |
| 24 |
| 25 } // namespace mojo |
| 26 |
| 27 #endif // IDBStructTraits_h |
OLD | NEW |