/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * 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/. */
class WinFileDialogParent final : private PWinFileDialogParent { public: using UtilityActorName = ::mozilla::UtilityActorName;
NS_INLINE_DECL_THREADSAFE_REFCOUNTING(WinFileDialogParent, override);
using ShowFileDialogPromise = Promise<Maybe<Results>>; using ShowFolderDialogPromise = Promise<Maybe<nsString>>;
// Proxy for the WinFileDialog process and actor. // // The IPC subsystem holds a strong reference to all IPC actors, so releasing // the last RefPtr for such an actor does not actually cause the actor to be // destroyed. Similarly, the UtilityProcessManager owns the host process for an // actor, and merely destroying all actors within that host process will not // cause it to be reaped. // // This object, then, acts as a proxy for those objects' lifetimes: when the // last reference to `Contents` is released, the necessary explicit cleanup of // the actor (and, if possible, the host process) will be performed. class ProcessProxy { public: using WFDP = WinFileDialogParent;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.