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 file,
5 * You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef mozilla_dom_FileSystemPermissionRequest_h
8 #define mozilla_dom_FileSystemPermissionRequest_h
10 #include "nsAutoPtr.h"
11 #include "nsIRunnable.h"
12 #include "nsIContentPermissionPrompt.h"
20 class FileSystemTaskBase
;
22 class FileSystemPermissionRequest MOZ_FINAL
23 : public nsIContentPermissionRequest
27 // Request permission for the given task.
29 RequestForTask(FileSystemTaskBase
* aTask
);
31 NS_DECL_THREADSAFE_ISUPPORTS
32 NS_DECL_NSICONTENTPERMISSIONREQUEST
35 explicit FileSystemPermissionRequest(FileSystemTaskBase
* aTask
);
38 ~FileSystemPermissionRequest();
40 nsCString mPermissionType
;
41 nsCString mPermissionAccess
;
42 nsRefPtr
<FileSystemTaskBase
> mTask
;
43 nsCOMPtr
<nsPIDOMWindow
> mWindow
;
44 nsCOMPtr
<nsIPrincipal
> mPrincipal
;
48 } // namespace mozilla
50 #endif // mozilla_dom_FileSystemPermissionRequest_h