Bug 1850713: remove duplicated setting of early hint preloader id in `ScriptLoader...
[gecko.git] / dom / indexedDB / IDBCursorType.cpp
blob34bb1aa8af95a18946f93ddcfe594adffd73f5b8
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #include "IDBCursorType.h"
9 #include "IndexedDatabaseInlines.h"
11 namespace mozilla::dom {
12 CommonCursorDataBase::CommonCursorDataBase(Key aKey) : mKey{std::move(aKey)} {}
14 IndexCursorDataBase::IndexCursorDataBase(Key aKey, Key aLocaleAwareKey,
15 Key aObjectStoreKey)
16 : CommonCursorDataBase{std::move(aKey)},
17 mLocaleAwareKey{std::move(aLocaleAwareKey)},
18 mObjectStoreKey{std::move(aObjectStoreKey)} {}
20 ValueCursorDataBase::ValueCursorDataBase(
21 StructuredCloneReadInfoChild&& aCloneInfo)
22 : mCloneInfo{std::move(aCloneInfo)} {}
24 CursorData<IDBCursorType::ObjectStore>::CursorData(
25 Key aKey, StructuredCloneReadInfoChild&& aCloneInfo)
26 : ObjectStoreCursorDataBase{std::move(aKey)},
27 ValueCursorDataBase{std::move(aCloneInfo)} {}
29 CursorData<IDBCursorType::Index>::CursorData(
30 Key aKey, Key aLocaleAwareKey, Key aObjectStoreKey,
31 StructuredCloneReadInfoChild&& aCloneInfo)
32 : IndexCursorDataBase{std::move(aKey), std::move(aLocaleAwareKey),
33 std::move(aObjectStoreKey)},
34 ValueCursorDataBase{std::move(aCloneInfo)} {}
36 } // namespace mozilla::dom