2009-04-08 20:24:25 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
2009-04-13 20:29:41 +04:00
|
|
|
* vim: sw=2 ts=2 et lcs=trail\:.,tab\:>~ :
|
2012-05-21 15:12:37 +04:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2008-09-13 01:30:37 +04:00
|
|
|
|
2010-06-01 16:38:00 +04:00
|
|
|
#ifndef MOZSTORAGESTATEMENTROW_H
|
|
|
|
#define MOZSTORAGESTATEMENTROW_H
|
2008-09-13 01:30:37 +04:00
|
|
|
|
2012-06-13 07:35:10 +04:00
|
|
|
#include "mozilla/Attributes.h"
|
2017-08-22 10:25:37 +03:00
|
|
|
#include "nsPIDOMWindow.h"
|
|
|
|
#include "nsWrapperCache.h"
|
2008-09-13 01:30:37 +04:00
|
|
|
|
2009-04-08 20:24:25 +04:00
|
|
|
namespace mozilla {
|
2020-11-23 19:12:02 +03:00
|
|
|
class ErrorResult;
|
|
|
|
|
2009-04-08 20:24:25 +04:00
|
|
|
namespace storage {
|
2008-09-13 01:30:37 +04:00
|
|
|
|
2015-03-24 03:09:13 +03:00
|
|
|
class Statement;
|
|
|
|
|
2017-08-22 10:25:37 +03:00
|
|
|
class StatementRow final : public nsISupports, public nsWrapperCache {
|
2009-04-08 20:24:25 +04:00
|
|
|
public:
|
2017-08-22 10:25:37 +03:00
|
|
|
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
|
|
|
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(StatementRow)
|
2008-09-13 01:30:37 +04:00
|
|
|
|
2017-08-22 10:25:37 +03:00
|
|
|
explicit StatementRow(nsPIDOMWindowInner* aWindow, Statement* aStatement);
|
2008-09-13 01:30:37 +04:00
|
|
|
|
2017-08-22 10:25:37 +03:00
|
|
|
void NamedGetter(JSContext* aCx, const nsAString& aName, bool& aFound,
|
|
|
|
JS::MutableHandle<JS::Value> aResult,
|
|
|
|
mozilla::ErrorResult& aRv);
|
|
|
|
void GetSupportedNames(nsTArray<nsString>& aNames);
|
|
|
|
|
|
|
|
JSObject* WrapObject(JSContext* aCx,
|
|
|
|
JS::Handle<JSObject*> aGivenProto) override;
|
|
|
|
|
|
|
|
nsPIDOMWindowInner* GetParentObject() const { return mWindow; }
|
|
|
|
|
|
|
|
private:
|
2014-06-24 02:40:03 +04:00
|
|
|
~StatementRow() {}
|
|
|
|
|
2017-08-22 10:25:37 +03:00
|
|
|
nsCOMPtr<nsPIDOMWindowInner> mWindow;
|
2009-05-09 04:29:56 +04:00
|
|
|
Statement* mStatement;
|
2008-11-19 22:33:00 +03:00
|
|
|
|
2015-03-12 19:55:56 +03:00
|
|
|
friend class StatementRowHolder;
|
2008-09-13 01:30:37 +04:00
|
|
|
};
|
|
|
|
|
2009-04-08 20:24:25 +04:00
|
|
|
} // namespace storage
|
|
|
|
} // namespace mozilla
|
|
|
|
|
2010-06-01 16:38:00 +04:00
|
|
|
#endif /* MOZSTORAGESTATEMENTROW_H */
|