Skip to content
Snippets Groups Projects
Commit 91ec85c5 authored by Nika Layzell's avatar Nika Layzell
Browse files

Bug 1752444 - Part 2: Rewrite direct_call.py protocols to use...

Bug 1752444 - Part 2: Rewrite direct_call.py protocols to use {Parent,Child}Impl attributes, r=ipc-reviewers,media-playback-reviewers,alwu,mccr8

This is a mechanical change which was performed by a script based on the
contents of direct_call.py, and then manually checked over to fix
various rewriting bugs caused by my glorified sed script. See the
previous part for more context on the change.

Differential Revision: https://phabricator.services.mozilla.com/D137227
parent 261ef74e
No related branches found
No related tags found
No related merge requests found
Showing
with 39 additions and 4 deletions
......@@ -79,7 +79,8 @@ struct TextRangeData
int32_t EndOffset;
};
[NestedUpTo=inside_sync] sync protocol PDocAccessible
[NestedUpTo=inside_sync, ChildImpl=virtual, ParentImpl=virtual]
sync protocol PDocAccessible
{
manager PBrowser;
manages PDocAccessiblePlatformExt;
......
......@@ -43,6 +43,7 @@ struct ShowEventData
bool EventSuppressed;
};
[ChildImpl=virtual, ParentImpl=virtual]
sync protocol PDocAccessible
{
manager PBrowser;
......
......@@ -16,6 +16,7 @@ namespace mozilla {
namespace dom {
// This protocol is used for the BroadcastChannel API
[ChildImpl=virtual, ParentImpl=virtual]
protocol PBroadcastChannel
{
manager PBackground;
......
......@@ -15,6 +15,7 @@ include "mozilla/ipc/ProtocolMessageUtils.h";
namespace mozilla {
namespace dom {
[ChildImpl=virtual, ParentImpl=virtual]
protocol PClientHandle
{
manager PClientManager;
......
......@@ -8,6 +8,7 @@ include ClientIPCTypes;
namespace mozilla {
namespace dom {
[ChildImpl=virtual, ParentImpl=virtual]
protocol PClientHandleOp
{
manager PClientHandle;
......
......@@ -16,6 +16,7 @@ include ClientIPCTypes;
namespace mozilla {
namespace dom {
[ChildImpl=virtual, ParentImpl=virtual]
sync protocol PClientManager
{
manager PBackground;
......
......@@ -8,6 +8,7 @@ include ClientIPCTypes;
namespace mozilla {
namespace dom {
[ChildImpl=virtual, ParentImpl=virtual]
protocol PClientManagerOp
{
manager PClientManager;
......
......@@ -8,6 +8,7 @@ include ClientIPCTypes;
namespace mozilla {
namespace dom {
[ChildImpl=virtual, ParentImpl=virtual]
protocol PClientNavigateOp
{
manager PClientManager;
......
......@@ -13,6 +13,7 @@ include ClientIPCTypes;
namespace mozilla {
namespace dom {
[ChildImpl=virtual, ParentImpl=virtual]
sync protocol PClientSource
{
manager PClientManager;
......
......@@ -8,6 +8,7 @@ include ClientIPCTypes;
namespace mozilla {
namespace dom {
[ChildImpl=virtual, ParentImpl=virtual]
protocol PClientSourceOp
{
manager PClientSource;
......
......@@ -11,6 +11,8 @@ include protocol PRemoteLazyInputStream; // FIXME: bug 792908
include IPCBlob;
include "mozilla/dom/indexedDB/ActorsChild.h";
namespace mozilla {
namespace dom {
......@@ -67,6 +69,7 @@ union FileRequestParams
FileRequestFlushParams;
};
[ChildImpl="indexedDB::BackgroundFileHandleChild", ParentImpl=virtual]
protocol PBackgroundFileHandle
{
manager PBackgroundMutableFile;
......
......@@ -4,6 +4,8 @@
include protocol PBackgroundFileHandle;
include "mozilla/dom/indexedDB/ActorsChild.h";
using struct mozilla::void_t from "mozilla/ipc/IPCCore.h";
namespace mozilla {
......@@ -47,6 +49,7 @@ union FileRequestResponse
FileRequestFlushResponse;
};
[ChildImpl="indexedDB::BackgroundFileRequestChild", ParentImpl=virtual]
protocol PBackgroundFileRequest
{
manager PBackgroundFileHandle;
......
......@@ -6,6 +6,8 @@ include protocol PBackgroundFileHandle;
include protocol PBackgroundIDBDatabase;
include "mozilla/dom/filehandle/SerializationHelpers.h";
include "mozilla/dom/indexedDB/ActorsChild.h";
include "mozilla/dom/filehandle/ActorsParent.h";
using mozilla::dom::FileMode
from "mozilla/dom/FileModeBinding.h";
......@@ -13,6 +15,7 @@ using mozilla::dom::FileMode
namespace mozilla {
namespace dom {
[ChildImpl="indexedDB::BackgroundMutableFileChild", ParentImpl="BackgroundMutableFileParentBase"]
sync protocol PBackgroundMutableFile
{
manager PBackgroundIDBDatabase;
......
......@@ -12,6 +12,8 @@ include protocol PRemoteLazyInputStream;
include IPCBlob;
include "mozilla/dom/FileSystemTaskBase.h";
namespace mozilla {
namespace dom {
......@@ -66,7 +68,8 @@ union FileSystemResponseValue
FileSystemErrorResponse;
};
[RefCounted] protocol PFileSystemRequest
[RefCounted, ChildImpl="FileSystemTaskChildBase"]
protocol PFileSystemRequest
{
manager PBackground;
......
......@@ -13,6 +13,7 @@ include protocol PRemoteLazyInputStream; // FIXME: bug 792908
include PBackgroundIDBSharedTypes;
include "mozilla/dom/indexedDB/SerializationHelpers.h";
include "mozilla/dom/indexedDB/ActorsChild.h";
using struct mozilla::void_t from "mozilla/ipc/IPCCore.h";
......@@ -83,7 +84,8 @@ union CursorResponse
IndexKeyCursorResponse[];
};
[RefCounted] protocol PBackgroundIDBCursor
[RefCounted, ChildImpl="indexedDB::BackgroundCursorChildBase", ParentImpl=virtual]
protocol PBackgroundIDBCursor
{
manager PBackgroundIDBTransaction or PBackgroundIDBVersionChangeTransaction;
......
......@@ -18,6 +18,7 @@ include InputStreamParams;
include PBackgroundIDBSharedTypes;
include "mozilla/dom/indexedDB/SerializationHelpers.h";
include "mozilla/dom/indexedDB/ActorsChild.h";
using struct mozilla::null_t from "mozilla/ipc/IPCCore.h";
......@@ -39,6 +40,7 @@ union DatabaseRequestParams
CreateFileParams;
};
[ChildImpl="indexedDB::BackgroundDatabaseChild", ParentImpl=virtual]
sync protocol PBackgroundIDBDatabase
{
manager PBackgroundIDBFactory;
......
......@@ -8,6 +8,7 @@ namespace mozilla {
namespace dom {
namespace indexedDB {
[ChildImpl=virtual, ParentImpl=virtual]
protocol PBackgroundIDBDatabaseFile
{
manager PBackgroundIDBDatabase;
......
......@@ -5,6 +5,8 @@
include protocol PBackgroundIDBDatabase;
include protocol PBackgroundMutableFile;
include "mozilla/dom/indexedDB/ActorsChild.h";
namespace mozilla {
namespace dom {
namespace indexedDB {
......@@ -20,6 +22,7 @@ union DatabaseRequestResponse
CreateFileRequestResponse;
};
[ChildImpl="indexedDB::BackgroundDatabaseRequestChild", ParentImpl=virtual]
protocol PBackgroundIDBDatabaseRequest
{
manager PBackgroundIDBDatabase;
......
......@@ -10,6 +10,7 @@ include PBackgroundIDBSharedTypes;
include PBackgroundSharedTypes;
include "mozilla/dom/quota/SerializationHelpers.h";
include "mozilla/dom/indexedDB/ActorsChild.h";
using struct mozilla::void_t from "mozilla/ipc/IPCCore.h";
......@@ -39,7 +40,8 @@ union FactoryRequestParams
DeleteDatabaseRequestParams;
};
[RefCounted] sync protocol PBackgroundIDBFactory
[RefCounted, ChildImpl="indexedDB::BackgroundFactoryChild", ParentImpl=virtual]
sync protocol PBackgroundIDBFactory
{
manager PBackground;
......
......@@ -7,6 +7,8 @@ include protocol PBackgroundIDBDatabase;
include PBackgroundSharedTypes;
include "mozilla/dom/indexedDB/ActorsChild.h";
namespace mozilla {
namespace dom {
namespace indexedDB {
......@@ -28,6 +30,7 @@ union FactoryRequestResponse
DeleteDatabaseRequestResponse;
};
[ChildImpl="indexedDB::BackgroundFactoryRequestChild", ParentImpl=virtual]
protocol PBackgroundIDBFactoryRequest
{
manager PBackgroundIDBFactory;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment