michael@0: /* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */ michael@0: /* vim: set ts=2 et sw=2 tw=80: */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef mozilla_dom_workers_file_h__ michael@0: #define mozilla_dom_workers_file_h__ michael@0: michael@0: #include "Workers.h" michael@0: michael@0: class nsIDOMFile; michael@0: class nsIDOMBlob; michael@0: michael@0: BEGIN_WORKERS_NAMESPACE michael@0: michael@0: namespace file { michael@0: michael@0: bool michael@0: InitClasses(JSContext* aCx, JS::Handle aGlobal); michael@0: michael@0: JSObject* michael@0: CreateBlob(JSContext* aCx, nsIDOMBlob* aBlob); michael@0: michael@0: nsIDOMBlob* michael@0: GetDOMBlobFromJSObject(JSObject* aObj); michael@0: michael@0: JSObject* michael@0: CreateFile(JSContext* aCx, nsIDOMFile* aFile); michael@0: michael@0: nsIDOMFile* michael@0: GetDOMFileFromJSObject(JSObject* aObj); michael@0: michael@0: } // namespace file michael@0: michael@0: END_WORKERS_NAMESPACE michael@0: michael@0: #endif /* mozilla_dom_workers_file_h__ */