FileSystemManagerParentFactory.h (1145B)
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* vim: set ts=8 sts=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/. */ 6 7 #ifndef DOM_FS_PARENT_FILESYSTEMMANAGER_H_ 8 #define DOM_FS_PARENT_FILESYSTEMMANAGER_H_ 9 10 #include <cstdint> 11 #include <functional> 12 13 enum class nsresult : uint32_t; 14 15 template <class T> 16 class RefPtr; 17 18 namespace mozilla { 19 20 namespace ipc { 21 22 template <class T> 23 class Endpoint; 24 25 class IPCResult; 26 class PBackgroundParent; 27 class PrincipalInfo; 28 29 } // namespace ipc 30 31 namespace dom { 32 33 class PFileSystemManagerParent; 34 35 mozilla::ipc::IPCResult CreateFileSystemManagerParent( 36 RefPtr<mozilla::ipc::PBackgroundParent> aBackgroundActor, 37 const mozilla::ipc::PrincipalInfo& aPrincipalInfo, 38 mozilla::ipc::Endpoint<mozilla::dom::PFileSystemManagerParent>&& 39 aParentEndpoint, 40 std::function<void(const nsresult&)>&& aResolver); 41 42 } // namespace dom 43 } // namespace mozilla 44 45 #endif // DOM_FS_PARENT_FILESYSTEMMANAGER_H_