2014-04-03 15:58:00 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
/* vim: set ts=8 sts=4 et sw=4 tw=99: */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
2012-05-21 15:12:37 +04:00
|
|
|
* 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/. */
|
2011-07-10 07:21:16 +04:00
|
|
|
|
|
|
|
#ifndef mozJSLoaderUtils_h
|
|
|
|
#define mozJSLoaderUtils_h
|
|
|
|
|
|
|
|
#include "nsString.h"
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace scache {
|
|
|
|
class StartupCache;
|
2015-07-13 18:25:42 +03:00
|
|
|
} // namespace scache
|
|
|
|
} // namespace mozilla
|
2011-07-10 07:21:16 +04:00
|
|
|
|
|
|
|
nsresult
|
2015-03-29 01:22:11 +03:00
|
|
|
ReadCachedScript(mozilla::scache::StartupCache* cache, nsACString& uri,
|
|
|
|
JSContext* cx, nsIPrincipal* systemPrincipal,
|
2013-09-20 13:22:59 +04:00
|
|
|
JS::MutableHandleScript scriptp);
|
2011-07-10 07:21:16 +04:00
|
|
|
|
2012-10-31 20:13:28 +04:00
|
|
|
nsresult
|
2015-03-29 01:22:11 +03:00
|
|
|
ReadCachedFunction(mozilla::scache::StartupCache* cache, nsACString& uri,
|
|
|
|
JSContext* cx, nsIPrincipal* systemPrincipal,
|
|
|
|
JSFunction** function);
|
2012-10-31 20:13:28 +04:00
|
|
|
|
2011-07-10 07:21:16 +04:00
|
|
|
nsresult
|
2015-03-29 01:22:11 +03:00
|
|
|
WriteCachedScript(mozilla::scache::StartupCache* cache, nsACString& uri,
|
|
|
|
JSContext* cx, nsIPrincipal* systemPrincipal,
|
2013-09-20 13:22:59 +04:00
|
|
|
JS::HandleScript script);
|
2012-10-31 20:13:28 +04:00
|
|
|
nsresult
|
2015-03-29 01:22:11 +03:00
|
|
|
WriteCachedFunction(mozilla::scache::StartupCache* cache, nsACString& uri,
|
|
|
|
JSContext* cx, nsIPrincipal* systemPrincipal,
|
|
|
|
JSFunction* function);
|
2012-02-13 17:10:04 +04:00
|
|
|
|
2011-07-10 07:21:16 +04:00
|
|
|
#endif /* mozJSLoaderUtils_h */
|