2017-10-27 01:08:41 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2017-05-25 20:50:32 +03: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/. */
|
|
|
|
|
|
|
|
#ifndef mozilla_dom_PaymentRequestUtils_h
|
|
|
|
#define mozilla_dom_PaymentRequestUtils_h
|
|
|
|
|
|
|
|
#include "nsIArray.h"
|
|
|
|
#include "nsTArray.h"
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
|
2017-06-23 12:15:51 +03:00
|
|
|
nsresult SerializeFromJSObject(JSContext* aCx, JS::HandleObject aObject,
|
|
|
|
nsAString& aSerializedObject);
|
2018-11-30 13:46:48 +03:00
|
|
|
|
2017-07-26 11:07:07 +03:00
|
|
|
nsresult SerializeFromJSVal(JSContext* aCx, JS::HandleValue aValue,
|
|
|
|
nsAString& aSerializedValue);
|
2018-11-30 13:46:48 +03:00
|
|
|
|
2017-06-23 12:15:51 +03:00
|
|
|
nsresult DeserializeToJSObject(const nsAString& aSerializedObject,
|
|
|
|
JSContext* aCx, JS::MutableHandleObject aObject);
|
2018-11-30 13:46:48 +03:00
|
|
|
|
2017-07-26 11:07:07 +03:00
|
|
|
nsresult DeserializeToJSValue(const nsAString& aSerializedObject,
|
|
|
|
JSContext* aCx, JS::MutableHandleValue aValue);
|
2018-11-30 13:46:48 +03:00
|
|
|
|
2017-05-25 20:50:32 +03:00
|
|
|
} // end of namespace dom
|
|
|
|
} // end of namespace mozilla
|
|
|
|
|
|
|
|
#endif
|