blob: 2be7dd8c1c7de5968acf2517e1ab1640b6351061 [file] [log] [blame]
// Copyright (c) 2013 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 "third_party/blink/renderer/modules/indexeddb/indexed_db_key_builder.h"
#include "third_party/blink/renderer/modules/indexeddb/web_idb_key_range.h"
namespace blink {
// static
WebIDBKeyRange WebIDBKeyRangeBuilder::Build(const IDBKey* key) {
std::unique_ptr<IDBKey> lower_key = IDBKey::Clone(key);
std::unique_ptr<IDBKey> upper_key = IDBKey::Clone(key);
return WebIDBKeyRange(std::move(lower_key), std::move(upper_key),
false /* lower_open */, false /* upper_open */);
}
} // namespace blink