| Index: third_party/WebKit/Source/modules/indexeddb/IDBStructTraits.h
|
| diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBStructTraits.h b/third_party/WebKit/Source/modules/indexeddb/IDBStructTraits.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d3414066cc396d0fc7a6247c42a431ed951eb4cb
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/modules/indexeddb/IDBStructTraits.h
|
| @@ -0,0 +1,27 @@
|
| +// 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.
|
| +
|
| +#ifndef IDBStructTraits_h
|
| +#define IDBStructTraits_h
|
| +
|
| +#include "Source/modules/indexeddb/indexed_db.mojom-blink.h"
|
| +#include "public/platform/modules/indexeddb/WebIDBTypes.h"
|
| +
|
| +namespace mojo {
|
| +
|
| +template <>
|
| +struct EnumTraits<indexed_db::mojom::blink::DataLoss, blink::WebIDBDataLoss> {
|
| + static indexed_db::mojom::blink::DataLoss ToMojom(blink::WebIDBDataLoss input);
|
| + static bool FromMojom(indexed_db::mojom::blink::DataLoss input,
|
| + blink::WebIDBDataLoss* output);
|
| +};
|
| +
|
| +// TODO(cmumford): Can't include IDBKey.h - does v8 stuff.
|
| +
|
| +// TODO(cmumford): Looks like can't map to metadata because it has a
|
| +// IDBKeyPath which depends on V8 :-(.
|
| +
|
| +} // namespace mojo
|
| +
|
| +#endif // IDBStructTraits_h
|
|
|