bug 700693 - OCSP stapling PSM changes r=bsmith
[gecko.git] / dom / workers / File.h
blob772bad168cd1fd78325c69d761868991cb3aca15
1 /* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */
2 /* vim: set ts=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 #ifndef mozilla_dom_workers_file_h__
8 #define mozilla_dom_workers_file_h__
10 #include "Workers.h"
12 #include "jspubtd.h"
14 class nsIDOMFile;
15 class nsIDOMBlob;
17 BEGIN_WORKERS_NAMESPACE
19 namespace file {
21 bool
22 InitClasses(JSContext* aCx, JS::Handle<JSObject*> aGlobal);
24 JSObject*
25 CreateBlob(JSContext* aCx, nsIDOMBlob* aBlob);
27 nsIDOMBlob*
28 GetDOMBlobFromJSObject(JSObject* aObj);
30 JSObject*
31 CreateFile(JSContext* aCx, nsIDOMFile* aFile);
33 nsIDOMFile*
34 GetDOMFileFromJSObject(JSObject* aObj);
36 } // namespace file
38 END_WORKERS_NAMESPACE
40 #endif /* mozilla_dom_workers_file_h__ */