Bug 1736371 - Default new actors to be refcounted, r=alwu,media-playback-reviewers,mccr8

The changes to ipdl actors were mechanical, and largely automated using
a script.

Differential Revision: https://phabricator.services.mozilla.com/D137237
This commit is contained in:
Nika Layzell 2022-02-09 17:29:47 +00:00
parent fca4b089dd
commit dabb46c84d
259 changed files with 267 additions and 236 deletions

View file

@ -9,6 +9,7 @@ include protocol PDocAccessible;
namespace mozilla { namespace mozilla {
namespace a11y { namespace a11y {
[ManualDealloc]
protocol PDocAccessiblePlatformExt { protocol PDocAccessiblePlatformExt {
manager PDocAccessible; manager PDocAccessible;

View file

@ -23,7 +23,7 @@ struct TextAttributesRun {
}; };
[NestedUpTo=inside_sync] sync protocol PDocAccessiblePlatformExt { [ManualDealloc, NestedUpTo=inside_sync] sync protocol PDocAccessiblePlatformExt {
manager PDocAccessible; manager PDocAccessible;
child: child:

View file

@ -9,6 +9,7 @@ include protocol PDocAccessible;
namespace mozilla { namespace mozilla {
namespace a11y { namespace a11y {
[ManualDealloc]
protocol PDocAccessiblePlatformExt { protocol PDocAccessiblePlatformExt {
manager PDocAccessible; manager PDocAccessible;

View file

@ -79,7 +79,7 @@ struct TextRangeData
int32_t EndOffset; int32_t EndOffset;
}; };
[NestedUpTo=inside_sync, ChildImpl=virtual, ParentImpl=virtual] [ManualDealloc, NestedUpTo=inside_sync, ChildImpl=virtual, ParentImpl=virtual]
sync protocol PDocAccessible sync protocol PDocAccessible
{ {
manager PBrowser; manager PBrowser;

View file

@ -43,7 +43,7 @@ struct ShowEventData
bool EventSuppressed; bool EventSuppressed;
}; };
[ChildImpl=virtual, ParentImpl=virtual] [ManualDealloc, ChildImpl=virtual, ParentImpl=virtual]
sync protocol PDocAccessible sync protocol PDocAccessible
{ {
manager PBrowser; manager PBrowser;

View file

@ -22,6 +22,7 @@ union OpenHeapSnapshotTempFileResponse
OpenedFile; OpenedFile;
}; };
[ManualDealloc]
sync protocol PHeapSnapshotTempFileHelper sync protocol PHeapSnapshotTempFileHelper
{ {
manager PContent; manager PContent;

View file

@ -16,7 +16,7 @@ namespace mozilla {
namespace dom { namespace dom {
// This protocol is used for the BroadcastChannel API // This protocol is used for the BroadcastChannel API
[ChildImpl=virtual, ParentImpl=virtual] [ManualDealloc, ChildImpl=virtual, ParentImpl=virtual]
protocol PBroadcastChannel protocol PBroadcastChannel
{ {
manager PBackground; manager PBackground;

View file

@ -15,6 +15,7 @@ namespace mozilla {
namespace dom { namespace dom {
namespace cache { namespace cache {
[ManualDealloc]
protocol PCache protocol PCache
{ {
manager PBackground; manager PBackground;

View file

@ -19,6 +19,7 @@ namespace mozilla {
namespace dom { namespace dom {
namespace cache { namespace cache {
[ManualDealloc]
protocol PCacheOp protocol PCacheOp
{ {
manager PCache or PCacheStorage; manager PCache or PCacheStorage;

View file

@ -16,6 +16,7 @@ namespace mozilla {
namespace dom { namespace dom {
namespace cache { namespace cache {
[ManualDealloc]
protocol PCacheStorage protocol PCacheStorage
{ {
manager PBackground; manager PBackground;

View file

@ -14,7 +14,7 @@ namespace mozilla {
namespace dom { namespace dom {
namespace cache { namespace cache {
[RefCounted] protocol PCacheStreamControl protocol PCacheStreamControl
{ {
manager PBackground; manager PBackground;

View file

@ -35,7 +35,7 @@ namespace dom {
* command from the content process, and a WebGLParent in the compositor * command from the content process, and a WebGLParent in the compositor
* process that runs the commands. * process that runs the commands.
*/ */
[RefCounted] sync protocol PWebGL sync protocol PWebGL
{ {
manager PCanvasManager; manager PCanvasManager;

View file

@ -15,7 +15,7 @@ include "mozilla/ipc/ProtocolMessageUtils.h";
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {
[ChildImpl=virtual, ParentImpl=virtual] [ManualDealloc, ChildImpl=virtual, ParentImpl=virtual]
protocol PClientHandle protocol PClientHandle
{ {
manager PClientManager; manager PClientManager;

View file

@ -8,7 +8,7 @@ include ClientIPCTypes;
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {
[ChildImpl=virtual, ParentImpl=virtual] [ManualDealloc, ChildImpl=virtual, ParentImpl=virtual]
protocol PClientHandleOp protocol PClientHandleOp
{ {
manager PClientHandle; manager PClientHandle;

View file

@ -16,7 +16,7 @@ include ClientIPCTypes;
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {
[ChildImpl=virtual, ParentImpl=virtual] [ManualDealloc, ChildImpl=virtual, ParentImpl=virtual]
sync protocol PClientManager sync protocol PClientManager
{ {
manager PBackground; manager PBackground;

View file

@ -8,7 +8,7 @@ include ClientIPCTypes;
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {
[ChildImpl=virtual, ParentImpl=virtual] [ManualDealloc, ChildImpl=virtual, ParentImpl=virtual]
protocol PClientManagerOp protocol PClientManagerOp
{ {
manager PClientManager; manager PClientManager;

View file

@ -8,7 +8,7 @@ include ClientIPCTypes;
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {
[ChildImpl=virtual, ParentImpl=virtual] [ManualDealloc, ChildImpl=virtual, ParentImpl=virtual]
protocol PClientNavigateOp protocol PClientNavigateOp
{ {
manager PClientManager; manager PClientManager;

View file

@ -13,7 +13,7 @@ include ClientIPCTypes;
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {
[ChildImpl=virtual, ParentImpl=virtual] [ManualDealloc, ChildImpl=virtual, ParentImpl=virtual]
sync protocol PClientSource sync protocol PClientSource
{ {
manager PClientManager; manager PClientManager;

View file

@ -8,7 +8,7 @@ include ClientIPCTypes;
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {
[ChildImpl=virtual, ParentImpl=virtual] [ManualDealloc, ChildImpl=virtual, ParentImpl=virtual]
protocol PClientSourceOp protocol PClientSourceOp
{ {
manager PClientSource; manager PClientSource;

View file

@ -29,6 +29,7 @@ union FileCreationResult
FileCreationErrorResult; FileCreationErrorResult;
}; };
[ManualDealloc]
protocol PFileCreator protocol PFileCreator
{ {
manager PBackground; manager PBackground;

View file

@ -13,7 +13,7 @@ include IPCStream;
namespace mozilla { namespace mozilla {
[RefCounted] protocol PRemoteLazyInputStream protocol PRemoteLazyInputStream
{ {
manager PBackground or PContent or PSocketProcess; manager PBackground or PContent or PSocketProcess;

View file

@ -19,6 +19,7 @@ union IPCBlobOrError
nsresult; nsresult;
}; };
[ManualDealloc]
protocol PTemporaryIPCBlob protocol PTemporaryIPCBlob
{ {
manager PBackground; manager PBackground;

View file

@ -69,7 +69,7 @@ union FileRequestParams
FileRequestFlushParams; FileRequestFlushParams;
}; };
[ChildImpl="indexedDB::BackgroundFileHandleChild", ParentImpl=virtual] [ManualDealloc, ChildImpl="indexedDB::BackgroundFileHandleChild", ParentImpl=virtual]
protocol PBackgroundFileHandle protocol PBackgroundFileHandle
{ {
manager PBackgroundMutableFile; manager PBackgroundMutableFile;

View file

@ -49,7 +49,7 @@ union FileRequestResponse
FileRequestFlushResponse; FileRequestFlushResponse;
}; };
[ChildImpl="indexedDB::BackgroundFileRequestChild", ParentImpl=virtual] [ManualDealloc, ChildImpl="indexedDB::BackgroundFileRequestChild", ParentImpl=virtual]
protocol PBackgroundFileRequest protocol PBackgroundFileRequest
{ {
manager PBackgroundFileHandle; manager PBackgroundFileHandle;

View file

@ -15,7 +15,7 @@ using mozilla::dom::FileMode
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {
[ChildImpl="indexedDB::BackgroundMutableFileChild", ParentImpl="BackgroundMutableFileParentBase"] [ManualDealloc, ChildImpl="indexedDB::BackgroundMutableFileChild", ParentImpl="BackgroundMutableFileParentBase"]
sync protocol PBackgroundMutableFile sync protocol PBackgroundMutableFile
{ {
manager PBackgroundIDBDatabase; manager PBackgroundIDBDatabase;

View file

@ -68,7 +68,7 @@ union FileSystemResponseValue
FileSystemErrorResponse; FileSystemErrorResponse;
}; };
[RefCounted, ChildImpl="FileSystemTaskChildBase"] [ChildImpl="FileSystemTaskChildBase"]
protocol PFileSystemRequest protocol PFileSystemRequest
{ {
manager PBackground; manager PBackground;

View file

@ -10,7 +10,7 @@ using mozilla::dom::GamepadHandle from "mozilla/dom/GamepadHandle.h";
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {
[RefCounted] protocol PGamepadEventChannel { protocol PGamepadEventChannel {
manager PBackground; manager PBackground;
parent: parent:
async __delete__(); async __delete__();

View file

@ -10,7 +10,7 @@ using mozilla::dom::GamepadHandle from "mozilla/dom/GamepadHandle.h";
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {
[RefCounted] protocol PGamepadTestChannel { protocol PGamepadTestChannel {
manager PBackground; manager PBackground;
parent: parent:
async GamepadTestEvent(uint32_t aID, GamepadChangeEvent aGamepadEvent); async GamepadTestEvent(uint32_t aID, GamepadChangeEvent aGamepadEvent);

View file

@ -84,7 +84,7 @@ union CursorResponse
IndexKeyCursorResponse[]; IndexKeyCursorResponse[];
}; };
[RefCounted, ChildImpl="indexedDB::BackgroundCursorChildBase", ParentImpl=virtual] [ChildImpl="indexedDB::BackgroundCursorChildBase", ParentImpl=virtual]
protocol PBackgroundIDBCursor protocol PBackgroundIDBCursor
{ {
manager PBackgroundIDBTransaction or PBackgroundIDBVersionChangeTransaction; manager PBackgroundIDBTransaction or PBackgroundIDBVersionChangeTransaction;

View file

@ -40,7 +40,7 @@ union DatabaseRequestParams
CreateFileParams; CreateFileParams;
}; };
[ChildImpl="indexedDB::BackgroundDatabaseChild", ParentImpl=virtual] [ManualDealloc, ChildImpl="indexedDB::BackgroundDatabaseChild", ParentImpl=virtual]
sync protocol PBackgroundIDBDatabase sync protocol PBackgroundIDBDatabase
{ {
manager PBackgroundIDBFactory; manager PBackgroundIDBFactory;

View file

@ -8,7 +8,7 @@ namespace mozilla {
namespace dom { namespace dom {
namespace indexedDB { namespace indexedDB {
[ChildImpl=virtual, ParentImpl=virtual] [ManualDealloc, ChildImpl=virtual, ParentImpl=virtual]
protocol PBackgroundIDBDatabaseFile protocol PBackgroundIDBDatabaseFile
{ {
manager PBackgroundIDBDatabase; manager PBackgroundIDBDatabase;

View file

@ -22,7 +22,7 @@ union DatabaseRequestResponse
CreateFileRequestResponse; CreateFileRequestResponse;
}; };
[ChildImpl="indexedDB::BackgroundDatabaseRequestChild", ParentImpl=virtual] [ManualDealloc, ChildImpl="indexedDB::BackgroundDatabaseRequestChild", ParentImpl=virtual]
protocol PBackgroundIDBDatabaseRequest protocol PBackgroundIDBDatabaseRequest
{ {
manager PBackgroundIDBDatabase; manager PBackgroundIDBDatabase;

View file

@ -40,7 +40,7 @@ union FactoryRequestParams
DeleteDatabaseRequestParams; DeleteDatabaseRequestParams;
}; };
[RefCounted, ChildImpl="indexedDB::BackgroundFactoryChild", ParentImpl=virtual] [ChildImpl="indexedDB::BackgroundFactoryChild", ParentImpl=virtual]
sync protocol PBackgroundIDBFactory sync protocol PBackgroundIDBFactory
{ {
manager PBackground; manager PBackground;

View file

@ -30,7 +30,7 @@ union FactoryRequestResponse
DeleteDatabaseRequestResponse; DeleteDatabaseRequestResponse;
}; };
[ChildImpl="indexedDB::BackgroundFactoryRequestChild", ParentImpl=virtual] [ManualDealloc, ChildImpl="indexedDB::BackgroundFactoryRequestChild", ParentImpl=virtual]
protocol PBackgroundIDBFactoryRequest protocol PBackgroundIDBFactoryRequest
{ {
manager PBackgroundIDBFactory; manager PBackgroundIDBFactory;

View file

@ -147,7 +147,7 @@ union PreprocessResponse
ObjectStoreGetAllPreprocessResponse; ObjectStoreGetAllPreprocessResponse;
}; };
[ChildImpl="indexedDB::BackgroundRequestChild", ParentImpl=virtual] [ManualDealloc, ChildImpl="indexedDB::BackgroundRequestChild", ParentImpl=virtual]
protocol PBackgroundIDBRequest protocol PBackgroundIDBRequest
{ {
manager PBackgroundIDBTransaction or PBackgroundIDBVersionChangeTransaction; manager PBackgroundIDBTransaction or PBackgroundIDBVersionChangeTransaction;

View file

@ -16,7 +16,7 @@ namespace mozilla {
namespace dom { namespace dom {
namespace indexedDB { namespace indexedDB {
[RefCounted, ChildImpl="indexedDB::BackgroundTransactionChild", ParentImpl=virtual] [ChildImpl="indexedDB::BackgroundTransactionChild", ParentImpl=virtual]
protocol PBackgroundIDBTransaction { protocol PBackgroundIDBTransaction {
manager PBackgroundIDBDatabase; manager PBackgroundIDBDatabase;

View file

@ -20,7 +20,7 @@ namespace mozilla {
namespace dom { namespace dom {
namespace indexedDB { namespace indexedDB {
[RefCounted, ChildImpl="indexedDB::BackgroundVersionChangeTransactionChild", ParentImpl=virtual] [ChildImpl="indexedDB::BackgroundVersionChangeTransactionChild", ParentImpl=virtual]
protocol PBackgroundIDBVersionChangeTransaction { protocol PBackgroundIDBVersionChangeTransaction {
manager PBackgroundIDBDatabase; manager PBackgroundIDBDatabase;

View file

@ -14,7 +14,7 @@ namespace mozilla {
namespace dom { namespace dom {
namespace indexedDB { namespace indexedDB {
[ChildImpl="indexedDB::BackgroundUtilsChild", ParentImpl=virtual] [ManualDealloc, ChildImpl="indexedDB::BackgroundUtilsChild", ParentImpl=virtual]
sync protocol PBackgroundIndexedDBUtils sync protocol PBackgroundIndexedDBUtils
{ {
manager PBackground; manager PBackground;

View file

@ -178,7 +178,7 @@ struct PrintPreviewResultInfo
* See `dom/docs/Fission-IPC-Diagram.svg` for an overview of the DOM IPC * See `dom/docs/Fission-IPC-Diagram.svg` for an overview of the DOM IPC
* actors. * actors.
*/ */
[NestedUpTo=inside_cpow, RefCounted] sync protocol PBrowser [NestedUpTo=inside_cpow] sync protocol PBrowser
{ {
manager PContent; manager PContent;

View file

@ -41,7 +41,7 @@ namespace dom {
* See `dom/docs/Fission-IPC-Diagram.svg` for an overview of the DOM IPC * See `dom/docs/Fission-IPC-Diagram.svg` for an overview of the DOM IPC
* actors. * actors.
*/ */
[RefCounted] async protocol PBrowserBridge { async protocol PBrowserBridge {
manager PBrowser; manager PBrowser;
child: child:

View file

@ -10,7 +10,7 @@ include protocol PBrowser;
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {
[ChildImpl=virtual, ParentImpl=virtual] [ManualDealloc, ChildImpl=virtual, ParentImpl=virtual]
protocol PColorPicker protocol PColorPicker
{ {
manager PBrowser; manager PBrowser;

View file

@ -430,7 +430,7 @@ union BlobURLDataRequestResult
* and a content process. There is exactly one PContentParent/PContentChild pair * and a content process. There is exactly one PContentParent/PContentChild pair
* for each content process. * for each content process.
*/ */
[NestedUpTo=inside_cpow, NeedsOtherPid] [ManualDealloc, NestedUpTo=inside_cpow, NeedsOtherPid]
sync protocol PContent sync protocol PContent
{ {
manages PBrowser; manages PBrowser;

View file

@ -10,7 +10,7 @@ include "nsContentPermissionHelper.h";
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {
[ChildImpl="RemotePermissionRequest", ParentImpl=virtual] [ManualDealloc, ChildImpl="RemotePermissionRequest", ParentImpl=virtual]
protocol PContentPermissionRequest protocol PContentPermissionRequest
{ {
manager PContent; manager PContent;

View file

@ -8,7 +8,7 @@ include protocol PContent;
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {
[ChildImpl=virtual, ParentImpl=virtual] [ManualDealloc, ChildImpl=virtual, ParentImpl=virtual]
protocol PCycleCollectWithLogs { protocol PCycleCollectWithLogs {
manager PContent; manager PContent;

View file

@ -34,7 +34,7 @@ union MaybeInputData
void_t; void_t;
}; };
[ChildImpl=virtual] [ManualDealloc, ChildImpl=virtual]
protocol PFilePicker protocol PFilePicker
{ {
manager PBrowser; manager PBrowser;

View file

@ -20,7 +20,7 @@ namespace dom {
* `mozilla::dom::InProcess{Parent, Child}::Singleton()` should be used to get * `mozilla::dom::InProcess{Parent, Child}::Singleton()` should be used to get
* an instance of this actor. * an instance of this actor.
*/ */
[RefCounted] async protocol PInProcess async protocol PInProcess
{ {
manages PExtensions; manages PExtensions;
manages PWindowGlobal; manages PWindowGlobal;

View file

@ -16,7 +16,7 @@ namespace dom {
// on a password field. Right now this is an one way IPC call (No callback // on a password field. Right now this is an one way IPC call (No callback
// will return after parent receives the IPC message) since we just process // will return after parent receives the IPC message) since we just process
// the URL in parent (LoginReputationService) and stores the result to telemetry. // the URL in parent (LoginReputationService) and stores the result to telemetry.
[ChildImpl=virtual, ParentImpl="LoginReputationParent"] [ManualDealloc, ChildImpl=virtual, ParentImpl="LoginReputationParent"]
protocol PLoginReputation protocol PLoginReputation
{ {
manager PContent; manager PContent;

View file

@ -23,7 +23,7 @@ struct SlowScriptData
double duration; double duration;
}; };
[ChildImpl=virtual, ParentImpl=virtual] [ManualDealloc, ChildImpl=virtual, ParentImpl=virtual]
protocol PProcessHangMonitor protocol PProcessHangMonitor
{ {
parent: parent:

View file

@ -11,6 +11,7 @@ include PURLClassifierInfo;
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {
[ManualDealloc]
protocol PURLClassifier protocol PURLClassifier
{ {
manager PContent; manager PContent;

View file

@ -25,7 +25,7 @@ struct URLClassifierLocalResult
nsCString matchingList; nsCString matchingList;
}; };
[ChildImpl="URLClassifierLocalChild", ParentImpl="URLClassifierLocalParent"] [ManualDealloc, ChildImpl="URLClassifierLocalChild", ParentImpl="URLClassifierLocalParent"]
protocol PURLClassifierLocal protocol PURLClassifierLocal
{ {
manager PContent; manager PContent;

View file

@ -18,7 +18,7 @@ namespace dom {
* notify the vsync event from chrome to content process. It also provides the * notify the vsync event from chrome to content process. It also provides the
* interfaces for content to observe/unobserve vsync event notifications. * interfaces for content to observe/unobserve vsync event notifications.
*/ */
[RefCounted] async protocol PVsync async protocol PVsync
{ {
manager PBackground or PBrowser; manager PBackground or PBrowser;

View file

@ -59,7 +59,7 @@ struct IPCWebShareData
* link either between the chrome/content process, or will be in-process, for * link either between the chrome/content process, or will be in-process, for
* documents which are loaded in the chrome process. * documents which are loaded in the chrome process.
*/ */
[RefCounted] async protocol PWindowGlobal async protocol PWindowGlobal
{ {
manager PBrowser or PInProcess; manager PBrowser or PInProcess;

View file

@ -80,7 +80,7 @@ struct LSSnapshotInitInfo
* ContentParent::AboutToLoadHttpFtpDocumentForChild, the central place * ContentParent::AboutToLoadHttpFtpDocumentForChild, the central place
* for pre-loading.) * for pre-loading.)
*/ */
[ChildImpl=virtual, ParentImpl=virtual] [ManualDealloc, ChildImpl=virtual, ParentImpl=virtual]
sync protocol PBackgroundLSDatabase sync protocol PBackgroundLSDatabase
{ {
manager PBackground; manager PBackground;

View file

@ -24,7 +24,7 @@ namespace dom {
* key "foo" to have value "bar" when it already has value "bar" will never * key "foo" to have value "bar" when it already has value "bar" will never
* result in a "storage" event. * result in a "storage" event.
*/ */
[ChildImpl=virtual, ParentImpl=virtual] [ManualDealloc, ChildImpl=virtual, ParentImpl=virtual]
async protocol PBackgroundLSObserver async protocol PBackgroundLSObserver
{ {
manager PBackground; manager PBackground;

View file

@ -44,7 +44,7 @@ union LSRequestResponse
* response types above for their corresponding responses, and `RequestHelper` * response types above for their corresponding responses, and `RequestHelper`
* for more on the usage and lifecycle of this mechanism. * for more on the usage and lifecycle of this mechanism.
*/ */
[ChildImpl=virtual, ParentImpl=virtual] [ManualDealloc, ChildImpl=virtual, ParentImpl=virtual]
protocol PBackgroundLSRequest protocol PBackgroundLSRequest
{ {
manager PBackground; manager PBackground;

View file

@ -38,7 +38,7 @@ union LSSimpleRequestResponse
* Request types are indicated by the Params variant used and those live in * Request types are indicated by the Params variant used and those live in
* `PBackgroundLSSharedTypes.ipdlh`. * `PBackgroundLSSharedTypes.ipdlh`.
*/ */
[ChildImpl=virtual, ParentImpl=virtual] [ManualDealloc, ChildImpl=virtual, ParentImpl=virtual]
protocol PBackgroundLSSimpleRequest protocol PBackgroundLSSimpleRequest
{ {
manager PBackground; manager PBackground;

View file

@ -63,7 +63,7 @@ union LSWriteAndNotifyInfo
LSClearInfo; LSClearInfo;
}; };
[ChildImpl=virtual, ParentImpl=virtual] [ManualDealloc, ChildImpl=virtual, ParentImpl=virtual]
sync protocol PBackgroundLSSnapshot sync protocol PBackgroundLSSnapshot
{ {
manager PBackgroundLSDatabase; manager PBackgroundLSDatabase;

View file

@ -21,7 +21,6 @@ struct IPCLockRequest {
bool steal; bool steal;
}; };
[RefCounted]
protocol PLockManager { protocol PLockManager {
manager PBackground; manager PBackground;
manages PLockRequest; manages PLockRequest;

View file

@ -12,7 +12,6 @@ namespace mozilla {
namespace dom { namespace dom {
namespace locks { namespace locks {
[RefCounted]
protocol PLockRequest { protocol PLockRequest {
manager PLockManager; manager PLockManager;

View file

@ -14,7 +14,7 @@ using cdm::HdcpVersion from "GMPSanitizedExports.h";
namespace mozilla { namespace mozilla {
namespace gmp { namespace gmp {
[RefCounted, ChildImpl=virtual, ParentImpl="ChromiumCDMParent"] [ChildImpl=virtual, ParentImpl="ChromiumCDMParent"]
async protocol PChromiumCDM async protocol PChromiumCDM
{ {
manager PGMPContent; manager PGMPContent;

View file

@ -17,7 +17,7 @@ using mozilla::dom::NativeThreadId from "mozilla/dom/NativeThreadId.h";
namespace mozilla { namespace mozilla {
namespace gmp { namespace gmp {
[NeedsOtherPid, NestedUpTo=inside_sync, ChildImpl="GMPChild", ParentImpl="GMPParent"] [ManualDealloc, NeedsOtherPid, NestedUpTo=inside_sync, ChildImpl="GMPChild", ParentImpl="GMPParent"]
sync protocol PGMP sync protocol PGMP
{ {
manages PGMPTimer; manages PGMPTimer;

View file

@ -16,7 +16,7 @@ include "GMPContentChild.h";
namespace mozilla { namespace mozilla {
namespace gmp { namespace gmp {
[RefCounted, NeedsOtherPid, ChildImpl="GMPContentChild", ParentImpl=virtual] [NeedsOtherPid, ChildImpl="GMPContentChild", ParentImpl=virtual]
sync protocol PGMPContent sync protocol PGMPContent
{ {
manages PGMPVideoDecoder; manages PGMPVideoDecoder;

View file

@ -11,7 +11,7 @@ using base::ProcessId from "base/process.h";
namespace mozilla { namespace mozilla {
namespace gmp { namespace gmp {
[RefCounted, NeedsOtherPid, ChildImpl=virtual, ParentImpl=virtual] [NeedsOtherPid, ChildImpl=virtual, ParentImpl=virtual]
sync protocol PGMPService sync protocol PGMPService
{ {
parent: parent:

View file

@ -13,7 +13,7 @@ using GMPErr from "gmp-errors.h";
namespace mozilla { namespace mozilla {
namespace gmp { namespace gmp {
[ChildImpl="GMPStorageChild", ParentImpl=virtual] [ManualDealloc, ChildImpl="GMPStorageChild", ParentImpl=virtual]
async protocol PGMPStorage async protocol PGMPStorage
{ {
manager PGMP; manager PGMP;

View file

@ -11,7 +11,7 @@ include "GMPTimerChild.h";
namespace mozilla { namespace mozilla {
namespace gmp { namespace gmp {
[ChildImpl="GMPTimerChild", ParentImpl="GMPTimerParent"] [ManualDealloc, ChildImpl="GMPTimerChild", ParentImpl="GMPTimerParent"]
async protocol PGMPTimer async protocol PGMPTimer
{ {
manager PGMP; manager PGMP;

View file

@ -15,7 +15,7 @@ include "GMPVideoDecoderChild.h";
namespace mozilla { namespace mozilla {
namespace gmp { namespace gmp {
[RefCounted, ChildImpl="GMPVideoDecoderChild", ParentImpl=virtual] [ChildImpl="GMPVideoDecoderChild", ParentImpl=virtual]
sync protocol PGMPVideoDecoder sync protocol PGMPVideoDecoder
{ {
manager PGMPContent; manager PGMPContent;

View file

@ -16,7 +16,7 @@ include "GMPVideoEncoderChild.h";
namespace mozilla { namespace mozilla {
namespace gmp { namespace gmp {
[RefCounted, ChildImpl="GMPVideoEncoderChild", ParentImpl=virtual] [ChildImpl="GMPVideoEncoderChild", ParentImpl=virtual]
sync protocol PGMPVideoEncoder sync protocol PGMPVideoEncoder
{ {
manager PGMPContent; manager PGMPContent;

View file

@ -32,7 +32,7 @@ namespace mozilla {
// (RemoteDataDecoder) process. There is one instance of this protocol, // (RemoteDataDecoder) process. There is one instance of this protocol,
// with the RDDParent living on the main thread of the RDD process and // with the RDDParent living on the main thread of the RDD process and
// the RDDChild living on the main thread of the UI process. // the RDDChild living on the main thread of the UI process.
[NeedsOtherPid] [ManualDealloc, NeedsOtherPid]
protocol PRDD protocol PRDD
{ {
parent: parent:

View file

@ -52,6 +52,7 @@ union DecodeResultIPDL
// The child side runs in the content process, and the parent side runs // The child side runs in the content process, and the parent side runs
// in the RDD process or the GPU process. We run a separate IPDL thread // in the RDD process or the GPU process. We run a separate IPDL thread
// for both sides. // for both sides.
[ManualDealloc]
async protocol PRemoteDecoder async protocol PRemoteDecoder
{ {
manager PRemoteDecoderManager; manager PRemoteDecoderManager;

View file

@ -29,7 +29,7 @@ union RemoteDecoderInfoIPDL
VideoDecoderInfoIPDL; VideoDecoderInfoIPDL;
}; };
[NeedsOtherPid] [ManualDealloc, NeedsOtherPid]
sync protocol PRemoteDecoderManager sync protocol PRemoteDecoderManager
{ {
manages PRemoteDecoder; manages PRemoteDecoder;

View file

@ -7,6 +7,7 @@ include protocol PContent;
namespace mozilla { namespace mozilla {
[ManualDealloc]
async protocol PBenchmarkStorage async protocol PBenchmarkStorage
{ {
manager PContent; manager PContent;

View file

@ -48,7 +48,7 @@ struct VideoFrameProperties
int vStride; int vStride;
}; };
[ChildImpl=virtual, ParentImpl=virtual] [ManualDealloc, ChildImpl=virtual, ParentImpl=virtual]
async protocol PCameras async protocol PCameras
{ {
manager PBackground; manager PBackground;

View file

@ -11,7 +11,7 @@ include "mozilla/media/MediaChild.h";
namespace mozilla { namespace mozilla {
namespace media { namespace media {
[ChildImpl="Child", ParentImpl=virtual] [ManualDealloc, ChildImpl="Child", ParentImpl=virtual]
protocol PMedia protocol PMedia
{ {
manager PContent; manager PContent;

View file

@ -14,6 +14,7 @@ namespace media {
/* /*
* The PMediaSystemResourceManager is a sub-protocol in PImageBridge * The PMediaSystemResourceManager is a sub-protocol in PImageBridge
*/ */
[ManualDealloc]
sync protocol PMediaSystemResourceManager sync protocol PMediaSystemResourceManager
{ {
manager PImageBridge; manager PImageBridge;

View file

@ -28,6 +28,7 @@ using net::NrIceStunAddrArray from "mozilla/net/PStunAddrsParams.h";
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {
[ManualDealloc]
async protocol PMediaTransport { async protocol PMediaTransport {
manager PBackground; manager PBackground;

View file

@ -14,7 +14,7 @@ using WebrtcGlobalLog from "mozilla/media/webrtc/WebrtcGlobal.h";
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {
[ChildImpl=virtual, ParentImpl=virtual] [ManualDealloc, ChildImpl=virtual, ParentImpl=virtual]
async protocol PWebrtcGlobal { async protocol PWebrtcGlobal {
manager PContent; manager PContent;

View file

@ -12,7 +12,7 @@ include "mozilla/net/NrIceStunAddrMessageUtils.h";
namespace mozilla { namespace mozilla {
namespace net { namespace net {
[ChildImpl=virtual, ParentImpl=virtual] [ManualDealloc, ChildImpl=virtual, ParentImpl=virtual]
async protocol PStunAddrsRequest async protocol PStunAddrsRequest
{ {
manager PNecko; manager PNecko;

View file

@ -15,7 +15,7 @@ using mozilla::dom::TabId from "mozilla/dom/ipc/IdType.h";
namespace mozilla { namespace mozilla {
namespace net { namespace net {
[ChildImpl=virtual, ParentImpl=virtual] [ManualDealloc, ChildImpl=virtual, ParentImpl=virtual]
async protocol PWebrtcTCPSocket async protocol PWebrtcTCPSocket
{ {
manager PNecko or PSocketProcess; manager PNecko or PSocketProcess;

View file

@ -18,6 +18,7 @@ struct RemoteVoice {
bool queued; bool queued;
}; };
[ManualDealloc]
sync protocol PSpeechSynthesis sync protocol PSpeechSynthesis
{ {
manager PContent; manager PContent;

View file

@ -9,7 +9,7 @@ include protocol PSpeechSynthesis;
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {
[ChildImpl=virtual, ParentImpl=virtual] [ManualDealloc, ChildImpl=virtual, ParentImpl=virtual]
async protocol PSpeechSynthesisRequest async protocol PSpeechSynthesisRequest
{ {
manager PSpeechSynthesis; manager PSpeechSynthesis;

View file

@ -15,6 +15,7 @@ namespace mozilla {
namespace dom { namespace dom {
// This protocol is used for the MessageChannel/MessagePort API // This protocol is used for the MessageChannel/MessagePort API
[ManualDealloc]
protocol PMessagePort protocol PMessagePort
{ {
manager PBackground; manager PBackground;

View file

@ -8,6 +8,7 @@ include MIDITypes;
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {
[ManualDealloc]
async protocol PMIDIManager async protocol PMIDIManager
{ {
manager PBackground; manager PBackground;

View file

@ -10,6 +10,7 @@ include MIDITypes;
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {
[ManualDealloc]
async protocol PMIDIPort async protocol PMIDIPort
{ {
manager PBackground; manager PBackground;

View file

@ -16,7 +16,7 @@ namespace mozilla {
namespace net { namespace net {
//------------------------------------------------------------------- //-------------------------------------------------------------------
[ChildImpl="mozilla::dom::TCPServerSocketChild", ParentImpl="mozilla::dom::TCPServerSocketParent"] [ManualDealloc, ChildImpl="mozilla::dom::TCPServerSocketChild", ParentImpl="mozilla::dom::TCPServerSocketParent"]
protocol PTCPServerSocket protocol PTCPServerSocket
{ {
manager PNecko; manager PNecko;

View file

@ -34,7 +34,7 @@ namespace mozilla {
namespace net { namespace net {
//------------------------------------------------------------------- //-------------------------------------------------------------------
[ChildImpl="mozilla::dom::TCPSocketChild", ParentImpl="mozilla::dom::TCPSocketParent"] [ManualDealloc, ChildImpl="mozilla::dom::TCPSocketChild", ParentImpl="mozilla::dom::TCPSocketParent"]
protocol PTCPSocket protocol PTCPSocket
{ {
manager PNecko; manager PNecko;

View file

@ -41,7 +41,7 @@ namespace mozilla {
namespace net { namespace net {
//------------------------------------------------------------------- //-------------------------------------------------------------------
[ChildImpl="mozilla::dom::UDPSocketChild", ParentImpl="mozilla::dom::UDPSocketParent"] [ManualDealloc, ChildImpl="mozilla::dom::UDPSocketChild", ParentImpl="mozilla::dom::UDPSocketParent"]
protocol PUDPSocket protocol PUDPSocket
{ {
manager PNecko or PBackground; manager PNecko or PBackground;

View file

@ -227,6 +227,7 @@ union IPCMethodChangeDetails
IPCBasicCardChangeDetails; IPCBasicCardChangeDetails;
}; };
[ManualDealloc]
sync protocol PPaymentRequest sync protocol PPaymentRequest
{ {
manager PBrowser; manager PBrowser;

View file

@ -153,7 +153,7 @@ union RequestParams
ListOriginsParams; ListOriginsParams;
}; };
[ChildImpl=virtual, ParentImpl=virtual] [ManualDealloc, ChildImpl=virtual, ParentImpl=virtual]
protocol PQuota protocol PQuota
{ {
manager PBackground; manager PBackground;

View file

@ -113,7 +113,7 @@ union RequestResponse
ListOriginsResponse; ListOriginsResponse;
}; };
[ChildImpl=virtual, ParentImpl=virtual] [ManualDealloc, ChildImpl=virtual, ParentImpl=virtual]
protocol PQuotaRequest protocol PQuotaRequest
{ {
manager PQuota; manager PQuota;

View file

@ -34,7 +34,7 @@ union UsageRequestResponse
OriginUsageResponse; OriginUsageResponse;
}; };
[ChildImpl=virtual, ParentImpl=virtual] [ManualDealloc, ChildImpl=virtual, ParentImpl=virtual]
protocol PQuotaUsageRequest protocol PQuotaUsageRequest
{ {
manager PQuota; manager PQuota;

View file

@ -7,6 +7,7 @@ include protocol PBackground;
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {
[ManualDealloc]
protocol PEndpointForReport protocol PEndpointForReport
{ {
manager PBackground; manager PBackground;

View file

@ -10,6 +10,7 @@ include FetchTypes;
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {
[ManualDealloc]
protocol PFetchEventOp { protocol PFetchEventOp {
manager PRemoteWorkerController; manager PRemoteWorkerController;

View file

@ -10,7 +10,7 @@ include FetchTypes;
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {
[RefCounted] protocol PFetchEventOpProxy { protocol PFetchEventOpProxy {
manager PRemoteWorker; manager PRemoteWorker;
parent: parent:

View file

@ -10,7 +10,7 @@ include DOMTypes;
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {
[RefCounted, ChildImpl=virtual, ParentImpl=virtual] [ChildImpl=virtual, ParentImpl=virtual]
protocol PServiceWorker protocol PServiceWorker
{ {
manager PBackground; manager PBackground;

View file

@ -12,7 +12,7 @@ include "mozilla/dom/ServiceWorkerIPCUtils.h";
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {
[RefCounted, ChildImpl=virtual, ParentImpl=virtual] [ChildImpl=virtual, ParentImpl=virtual]
protocol PServiceWorkerContainer protocol PServiceWorkerContainer
{ {
manager PBackground; manager PBackground;

View file

@ -12,6 +12,7 @@ using mozilla::OriginAttributes from "mozilla/ipc/BackgroundUtils.h";
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {
[ManualDealloc]
protocol PServiceWorkerManager protocol PServiceWorkerManager
{ {
manager PBackground; manager PBackground;

View file

@ -12,7 +12,7 @@ include "ipc/ErrorIPCUtils.h";
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {
[RefCounted, ChildImpl=virtual, ParentImpl=virtual] [ChildImpl=virtual, ParentImpl=virtual]
protocol PServiceWorkerRegistration protocol PServiceWorkerRegistration
{ {
manager PBackground; manager PBackground;

View file

@ -41,7 +41,7 @@ union SDBRequestParams
SDBRequestCloseParams; SDBRequestCloseParams;
}; };
[ChildImpl=virtual, ParentImpl=virtual] [ManualDealloc, ChildImpl=virtual, ParentImpl=virtual]
protocol PBackgroundSDBConnection protocol PBackgroundSDBConnection
{ {
manager PBackground; manager PBackground;

View file

@ -38,7 +38,7 @@ union SDBRequestResponse
SDBRequestCloseResponse; SDBRequestCloseResponse;
}; };
[ChildImpl=virtual, ParentImpl=virtual] [ManualDealloc, ChildImpl=virtual, ParentImpl=virtual]
protocol PBackgroundSDBRequest protocol PBackgroundSDBRequest
{ {
manager PBackgroundSDBConnection; manager PBackgroundSDBConnection;

View file

@ -9,7 +9,7 @@ include PBackgroundSharedTypes;
namespace mozilla { namespace mozilla {
namespace dom { namespace dom {
[ChildImpl=virtual, ParentImpl=virtual] [ManualDealloc, ChildImpl=virtual, ParentImpl=virtual]
async protocol PBackgroundLocalStorageCache async protocol PBackgroundLocalStorageCache
{ {
manager PBackground; manager PBackground;

Some files were not shown because too many files have changed in this diff Show more