Bug 1240871 - Don't allow implicit "async" in IPDL (r=mccr8,billm)

This commit is contained in:
Bill McCloskey 2016-01-26 13:51:53 -08:00
parent 977198427c
commit 8916b1d998
216 changed files with 1217 additions and 1219 deletions

View File

@ -48,28 +48,28 @@ prio(normal upto high) sync protocol PDocAccessible
manager PBrowser;
parent:
Shutdown();
async Shutdown();
/*
* Notify the parent process the document in the child process is firing an
* event.
*/
Event(uint64_t aID, uint32_t type);
ShowEvent(ShowEventData data);
HideEvent(uint64_t aRootID);
StateChangeEvent(uint64_t aID, uint64_t aState, bool aEnabled);
CaretMoveEvent(uint64_t aID, int32_t aOffset);
TextChangeEvent(uint64_t aID, nsString aStr, int32_t aStart, uint32_t aLen,
bool aIsInsert, bool aFromUser);
async Event(uint64_t aID, uint32_t type);
async ShowEvent(ShowEventData data);
async HideEvent(uint64_t aRootID);
async StateChangeEvent(uint64_t aID, uint64_t aState, bool aEnabled);
async CaretMoveEvent(uint64_t aID, int32_t aOffset);
async TextChangeEvent(uint64_t aID, nsString aStr, int32_t aStart, uint32_t aLen,
bool aIsInsert, bool aFromUser);
/*
* Tell the parent document to bind the existing document as a new child
* document.
*/
BindChildDoc(PDocAccessible aChildDoc, uint64_t aID);
async BindChildDoc(PDocAccessible aChildDoc, uint64_t aID);
child:
__delete__();
async __delete__();
// Accessible
prio(high) sync State(uint64_t aID) returns(uint64_t states);
@ -132,13 +132,13 @@ child:
prio(high) sync RemoveFromSelection(uint64_t aID, int32_t aSelectionNum)
returns(bool aSucceeded);
ScrollSubstringTo(uint64_t aID, int32_t aStartOffset, int32_t aEndOffset,
uint32_t aScrollType);
ScrollSubstringToPoint(uint64_t aID,
int32_t aStartOffset,
int32_t aEndOffset,
uint32_t aCoordinateType,
int32_t aX, int32_t aY);
async ScrollSubstringTo(uint64_t aID, int32_t aStartOffset, int32_t aEndOffset,
uint32_t aScrollType);
async ScrollSubstringToPoint(uint64_t aID,
int32_t aStartOffset,
int32_t aEndOffset,
uint32_t aCoordinateType,
int32_t aX, int32_t aY);
prio(high) sync Text(uint64_t aID) returns(nsString aText);
prio(high) sync ReplaceText(uint64_t aID, nsString aText);

View File

@ -28,7 +28,7 @@ sync protocol PHeapSnapshotTempFileHelper
parent:
sync OpenHeapSnapshotTempFile() returns (OpenHeapSnapshotTempFileResponse response);
__delete__();
async __delete__();
};
} // namespace devtools

View File

@ -19,18 +19,18 @@ protocol PAsmJSCacheEntry
// origin's Metadata so the child process can select the cache entry to open
// (based on hash) and notify the parent (via SelectCacheFileToRead).
child:
OnOpenMetadataForRead(Metadata metadata);
async OnOpenMetadataForRead(Metadata metadata);
parent:
SelectCacheFileToRead(uint32_t moduleIndex);
CacheMiss();
async SelectCacheFileToRead(uint32_t moduleIndex);
async CacheMiss();
child:
// Once the cache file has been opened, the child is notified and sent an
// open file descriptor.
OnOpenCacheFile(int64_t fileSize, FileDescriptor fileDesc);
async OnOpenCacheFile(int64_t fileSize, FileDescriptor fileDesc);
both:
__delete__(AsmJSCacheResult result);
async __delete__(AsmJSCacheResult result);
};
} // namespace asmjscache

View File

@ -545,53 +545,53 @@ child:
/**
* Sent when a settings change has enabled or disabled the bluetooth firmware.
*/
Enabled(bool enabled);
async Enabled(bool enabled);
/**
* Sent when a bluetooth signal is broadcasted to child processes.
*/
Notify(BluetoothSignal signal);
async Notify(BluetoothSignal signal);
/**
* Sent when the parent process is about to be shut down. See shutdown note
* above.
*/
BeginShutdown();
async BeginShutdown();
/**
* Sent to inform the child process that it will no longer receive any
* messages from the parent. See shutdown note above.
*/
NotificationsStopped();
async NotificationsStopped();
parent:
/**
* Sent when the child no longer needs to use bluetooth. See shutdown note
* above.
*/
__delete__();
async __delete__();
/**
* Sent when the child needs to receive signals related to the given node.
*/
RegisterSignalHandler(nsString node);
async RegisterSignalHandler(nsString node);
/**
* Sent when the child no longer needs to receive signals related to the given
* node.
*/
UnregisterSignalHandler(nsString node);
async UnregisterSignalHandler(nsString node);
/**
* Sent when the child no longer needs to receive any messages from the
* parent. See shutdown note above.
*/
StopNotifying();
async StopNotifying();
/**
* Sent when the child makes an asynchronous request to the parent.
*/
PBluetoothRequest(Request request);
async PBluetoothRequest(Request request);
/**
* FIXME: Bug 547703.

View File

@ -20,7 +20,7 @@ child:
/**
* Sent when the asynchronous request has completed.
*/
__delete__(BluetoothReply response);
async __delete__(BluetoothReply response);
};
} // namespace bluetooth

View File

@ -17,12 +17,12 @@ protocol PBroadcastChannel
manager PBackground;
parent:
PostMessage(ClonedMessageData message);
Close();
async PostMessage(ClonedMessageData message);
async Close();
child:
Notify(ClonedMessageData message);
__delete__();
async Notify(ClonedMessageData message);
async __delete__();
};
} // namespace dom

View File

@ -22,12 +22,12 @@ protocol PCache
manages PCachePushStream;
parent:
PCacheOp(CacheOpArgs aOpArgs);
PCachePushStream();
Teardown();
async PCacheOp(CacheOpArgs aOpArgs);
async PCachePushStream();
async Teardown();
child:
__delete__();
async __delete__();
};
} // namespace cache

View File

@ -21,7 +21,7 @@ protocol PCacheOp
manager PCache or PCacheStorage;
child:
__delete__(ErrorResult aRv, CacheOpResult aResult);
async __delete__(ErrorResult aRv, CacheOpResult aResult);
};
} // namespace cache

View File

@ -13,14 +13,14 @@ protocol PCachePushStream
manager PCache;
parent:
Buffer(nsCString aBuffer);
Close(nsresult aRv);
async Buffer(nsCString aBuffer);
async Close(nsresult aRv);
child:
// Stream is always destroyed from the parent side. This occurs if the
// parent encounters an error while writing to its pipe or if the child
// signals the stream should close by SendClose().
__delete__();
async __delete__();
};
} // namespace cache

View File

@ -22,11 +22,11 @@ protocol PCacheStorage
manages PCacheOp;
parent:
PCacheOp(CacheOpArgs aOpArgs);
Teardown();
async PCacheOp(CacheOpArgs aOpArgs);
async Teardown();
child:
__delete__();
async __delete__();
};
} // namespace cache

View File

@ -15,12 +15,12 @@ protocol PCacheStreamControl
manager PBackground;
parent:
NoteClosed(nsID aStreamId);
async NoteClosed(nsID aStreamId);
child:
Close(nsID aStreamId);
CloseAll();
__delete__();
async Close(nsID aStreamId);
async CloseAll();
async __delete__();
};
} // namespace cache

View File

@ -14,28 +14,28 @@ sync protocol PCellBroadcast {
manager PContent;
child:
NotifyReceivedMessage(uint32_t aServiceId,
uint32_t aGsmGeographicalScope,
uint16_t aMessageCode,
uint16_t aMessageId,
nsString aLanguage,
nsString aBody,
uint32_t aMessageClass,
uint64_t aTimestamp,
uint32_t aCdmaServiceCategory,
bool aHasEtwsInfo,
uint32_t aEtwsWarningType,
bool aEtwsEmergencyUserAlert,
bool aEtwsPopup);
async NotifyReceivedMessage(uint32_t aServiceId,
uint32_t aGsmGeographicalScope,
uint16_t aMessageCode,
uint16_t aMessageId,
nsString aLanguage,
nsString aBody,
uint32_t aMessageClass,
uint64_t aTimestamp,
uint32_t aCdmaServiceCategory,
bool aHasEtwsInfo,
uint32_t aEtwsWarningType,
bool aEtwsEmergencyUserAlert,
bool aEtwsPopup);
parent:
/**
* Sent when the child no longer needs to use cellbroadcast.
*/
__delete__();
async __delete__();
};
} // namespace mobilemessage
} // namespace dom
} // namespace cellbroadcast
} // namespace cellbroadcast

View File

@ -85,7 +85,7 @@ union DeviceStorageResponseValue
sync protocol PDeviceStorageRequest {
manager PContent;
child:
__delete__(DeviceStorageResponseValue response);
async __delete__(DeviceStorageResponseValue response);
};
} // namespace devicestorage

View File

@ -74,17 +74,17 @@ protocol PBackgroundFileHandle
manages PBackgroundFileRequest;
parent:
DeleteMe();
async DeleteMe();
Finish();
Abort();
async Finish();
async Abort();
PBackgroundFileRequest(FileRequestParams params);
async PBackgroundFileRequest(FileRequestParams params);
child:
__delete__();
async __delete__();
Complete(bool aborted);
async Complete(bool aborted);
};
} // namespace dom

View File

@ -73,10 +73,10 @@ protocol PBackgroundFileRequest
manager PBackgroundFileHandle;
child:
__delete__(FileRequestResponse response);
async __delete__(FileRequestResponse response);
Progress(uint64_t progress,
uint64_t progressMax);
async Progress(uint64_t progress,
uint64_t progressMax);
};
} // namespace dom

View File

@ -20,16 +20,16 @@ sync protocol PBackgroundMutableFile
manages PBackgroundFileHandle;
parent:
DeleteMe();
async DeleteMe();
PBackgroundFileHandle(FileMode mode);
async PBackgroundFileHandle(FileMode mode);
// Use only for testing!
sync GetFileId()
returns (int64_t fileId);
child:
__delete__();
async __delete__();
};
} // namespace dom

View File

@ -49,7 +49,7 @@ sync protocol PFileSystemRequest
manager PContent;
child:
__delete__(FileSystemResponseValue response);
async __delete__(FileSystemResponseValue response);
};
} // namespace dom

View File

@ -71,37 +71,37 @@ child:
/**
* Sent when the frequency is changed.
*/
NotifyFrequencyChanged(double frequency);
async NotifyFrequencyChanged(double frequency);
/**
* Sent when the power state of FM radio HW is changed.
*/
NotifyEnabledChanged(bool enabled, double frequency);
async NotifyEnabledChanged(bool enabled, double frequency);
/**
* Sent when RDS is enabled or disabled.
*/
NotifyRDSEnabledChanged(bool enabled);
async NotifyRDSEnabledChanged(bool enabled);
/**
* Sent when we have a new PI code.
*/
NotifyPIChanged(bool valid, uint16_t code);
async NotifyPIChanged(bool valid, uint16_t code);
/**
* Sent when we have a new PTY
*/
NotifyPTYChanged(bool valid, uint8_t pty);
async NotifyPTYChanged(bool valid, uint8_t pty);
/**
* Sent when we have a new PS name.
*/
NotifyPSChanged(nsString psname);
async NotifyPSChanged(nsString psname);
/**
* Sent when we have new radiotext.
*/
NotifyRadiotextChanged(nsString radiotext);
async NotifyRadiotextChanged(nsString radiotext);
/**
* Sent when a full RDS group is received.
*/
NotifyNewRDSGroup(uint64_t data);
async NotifyNewRDSGroup(uint64_t data);
__delete__();
async __delete__();
parent:
/**
@ -119,17 +119,17 @@ parent:
* on web content, otherwise, we have to do the mapping stuff manually which
* is more error prone.
*/
PFMRadioRequest(FMRadioRequestArgs requestType);
async PFMRadioRequest(FMRadioRequestArgs requestType);
/**
* Enable/Disable audio
*/
EnableAudio(bool audioEnabled);
async EnableAudio(bool audioEnabled);
/**
* Set RDS group mask
*/
SetRDSGroupMask(uint32_t groupMask);
async SetRDSGroupMask(uint32_t groupMask);
};
} // namespace dom

View File

@ -35,7 +35,7 @@ async protocol PFMRadioRequest
manager PFMRadio;
child:
__delete__(FMRadioResponseType response);
async __delete__(FMRadioResponseType response);
};
} // namespace dom

View File

@ -94,12 +94,12 @@ child:
/**
* Notify CardStateChanged with updated CardState.
*/
NotifyCardStateChanged(uint32_t aCardState);
async NotifyCardStateChanged(uint32_t aCardState);
/**
* Notify IccInfoChanged with updated IccInfo.
*/
NotifyIccInfoChanged(OptionalIccInfoData aInfoData);
async NotifyIccInfoChanged(OptionalIccInfoData aInfoData);
/**
* Notify STK proactive command issue by selected UICC.
@ -107,23 +107,23 @@ child:
* @param aStkProactiveCmd
* a MozStkCommand instance serialized in JSON.
*/
NotifyStkCommand(nsString aStkProactiveCmd);
async NotifyStkCommand(nsString aStkProactiveCmd);
/**
* Notify that STK session is ended by selected UICC.
*/
NotifyStkSessionEnd();
async NotifyStkSessionEnd();
parent:
/**
* Sent when the child no longer needs to use PIcc.
*/
__delete__();
async __delete__();
/**
* Sent when the child makes an asynchronous request to the parent.
*/
PIccRequest(IccRequest aRequest);
async PIccRequest(IccRequest aRequest);
/**
* Send STK response to the selected UICC.
@ -133,17 +133,17 @@ parent:
* @param aResponse
* a MozStkResponse instance serialized in JSON.
*/
StkResponse(nsString aCommand, nsString aResponse);
async StkResponse(nsString aCommand, nsString aResponse);
/**
* Send STK Menu Selection to the selected UICC.
*/
StkMenuSelection(uint16_t aItemIdentifier, bool aHelpRequested);
async StkMenuSelection(uint16_t aItemIdentifier, bool aHelpRequested);
/**
* Send STK Timer Expiration to the selected UICC.
*/
StkTimerExpiration(uint16_t aTimerId, uint32_t aTimerValue);
async StkTimerExpiration(uint16_t aTimerId, uint32_t aTimerValue);
/**
* Send STK Event Download to the selected UICC.
@ -151,7 +151,7 @@ parent:
* @param aEvent
* a MozStkXxxEvent instance serialized in JSON.
*/
StkEventDownload(nsString aEvent);
async StkEventDownload(nsString aEvent);
/**
* Sync call to initialize the updated IccInfo/CardState.

View File

@ -65,7 +65,7 @@ child:
/**
* Sent when the asynchronous request has completed.
*/
__delete__(IccReply response);
async __delete__(IccReply response);
};
} // namespace icc

View File

@ -78,14 +78,14 @@ protocol PBackgroundIDBCursor
manager PBackgroundIDBTransaction or PBackgroundIDBVersionChangeTransaction;
parent:
DeleteMe();
async DeleteMe();
Continue(CursorRequestParams params, Key key);
async Continue(CursorRequestParams params, Key key);
child:
__delete__();
async __delete__();
Response(CursorResponse response);
async Response(CursorResponse response);
};
} // namespace indexedDB

View File

@ -53,31 +53,31 @@ sync protocol PBackgroundIDBDatabase
manages PBackgroundMutableFile;
parent:
DeleteMe();
async DeleteMe();
Blocked();
async Blocked();
Close();
async Close();
PBackgroundIDBDatabaseFile(PBlob blob);
async PBackgroundIDBDatabaseFile(PBlob blob);
PBackgroundIDBDatabaseRequest(DatabaseRequestParams params);
async PBackgroundIDBDatabaseRequest(DatabaseRequestParams params);
PBackgroundIDBTransaction(nsString[] objectStoreNames, Mode mode);
async PBackgroundIDBTransaction(nsString[] objectStoreNames, Mode mode);
child:
__delete__();
async __delete__();
VersionChange(uint64_t oldVersion, NullableVersion newVersion);
async VersionChange(uint64_t oldVersion, NullableVersion newVersion);
Invalidate();
async Invalidate();
PBackgroundIDBVersionChangeTransaction(uint64_t currentVersion,
uint64_t requestedVersion,
int64_t nextObjectStoreId,
int64_t nextIndexId);
async PBackgroundIDBVersionChangeTransaction(uint64_t currentVersion,
uint64_t requestedVersion,
int64_t nextObjectStoreId,
int64_t nextIndexId);
PBackgroundMutableFile(nsString name, nsString type);
async PBackgroundMutableFile(nsString name, nsString type);
};
} // namespace indexedDB

View File

@ -13,7 +13,7 @@ protocol PBackgroundIDBDatabaseFile
manager PBackgroundIDBDatabase;
parent:
__delete__();
async __delete__();
};
} // namespace indexedDB

View File

@ -25,7 +25,7 @@ protocol PBackgroundIDBDatabaseRequest
manager PBackgroundIDBDatabase;
child:
__delete__(DatabaseRequestResponse response);
async __delete__(DatabaseRequestResponse response);
};
} // namespace indexedDB

View File

@ -49,17 +49,17 @@ sync protocol PBackgroundIDBFactory
manages PBackgroundIDBFactoryRequest;
parent:
DeleteMe();
async DeleteMe();
PBackgroundIDBFactoryRequest(FactoryRequestParams params);
async PBackgroundIDBFactoryRequest(FactoryRequestParams params);
IncrementLoggingRequestSerialNumber();
async IncrementLoggingRequestSerialNumber();
child:
__delete__();
async __delete__();
PBackgroundIDBDatabase(DatabaseSpec spec,
PBackgroundIDBFactoryRequest request);
async PBackgroundIDBDatabase(DatabaseSpec spec,
PBackgroundIDBFactoryRequest request);
};
} // namespace indexedDB

View File

@ -33,14 +33,14 @@ protocol PBackgroundIDBFactoryRequest
manager PBackgroundIDBFactory;
child:
__delete__(FactoryRequestResponse response);
async __delete__(FactoryRequestResponse response);
PermissionChallenge(PrincipalInfo principalInfo);
async PermissionChallenge(PrincipalInfo principalInfo);
Blocked(uint64_t currentVersion);
async Blocked(uint64_t currentVersion);
parent:
PermissionRetry();
async PermissionRetry();
};
} // namespace indexedDB

View File

@ -105,7 +105,7 @@ protocol PBackgroundIDBRequest
manager PBackgroundIDBTransaction or PBackgroundIDBVersionChangeTransaction;
child:
__delete__(RequestResponse response);
async __delete__(RequestResponse response);
};
} // namespace indexedDB

View File

@ -22,19 +22,19 @@ protocol PBackgroundIDBTransaction
manages PBackgroundIDBRequest;
parent:
DeleteMe();
async DeleteMe();
Commit();
Abort(nsresult resultCode);
async Commit();
async Abort(nsresult resultCode);
PBackgroundIDBCursor(OpenCursorParams params);
async PBackgroundIDBCursor(OpenCursorParams params);
PBackgroundIDBRequest(RequestParams params);
async PBackgroundIDBRequest(RequestParams params);
child:
__delete__();
async __delete__();
Complete(nsresult result);
async Complete(nsresult result);
};
} // namespace indexedDB

View File

@ -23,27 +23,27 @@ protocol PBackgroundIDBVersionChangeTransaction
manages PBackgroundIDBRequest;
parent:
DeleteMe();
async DeleteMe();
Commit();
Abort(nsresult resultCode);
async Commit();
async Abort(nsresult resultCode);
CreateObjectStore(ObjectStoreMetadata metadata);
DeleteObjectStore(int64_t objectStoreId);
async CreateObjectStore(ObjectStoreMetadata metadata);
async DeleteObjectStore(int64_t objectStoreId);
CreateIndex(int64_t objectStoreId,
IndexMetadata metadata);
DeleteIndex(int64_t objectStoreId,
int64_t indexId);
async CreateIndex(int64_t objectStoreId,
IndexMetadata metadata);
async DeleteIndex(int64_t objectStoreId,
int64_t indexId);
PBackgroundIDBCursor(OpenCursorParams params);
async PBackgroundIDBCursor(OpenCursorParams params);
PBackgroundIDBRequest(RequestParams params);
async PBackgroundIDBRequest(RequestParams params);
child:
__delete__();
async __delete__();
Complete(nsresult result);
async Complete(nsresult result);
};
} // namespace indexedDB

View File

@ -18,7 +18,7 @@ sync protocol PBackgroundIndexedDBUtils
manager PBackground;
parent:
DeleteMe();
async DeleteMe();
// Use only for testing!
sync GetFileReferences(PersistenceType persistenceType,
@ -29,7 +29,7 @@ parent:
bool result);
child:
__delete__();
async __delete__();
};
} // namespace indexedDB

View File

@ -19,7 +19,7 @@ child:
* @param permission
* The permission result (see nsIPermissionManager.idl for valid values).
*/
__delete__(uint32_t permission);
async __delete__(uint32_t permission);
};
} // namespace indexedDB

View File

@ -26,12 +26,12 @@ sync protocol PBlob
manages PBlobStream;
both:
__delete__();
async __delete__();
parent:
PBlobStream(uint64_t begin, uint64_t length);
async PBlobStream(uint64_t begin, uint64_t length);
ResolveMystery(ResolveMysteryParams params);
async ResolveMystery(ResolveMysteryParams params);
sync BlobStreamSync(uint64_t begin, uint64_t length)
returns (InputStreamParams params, OptionalFileDescriptorSet fds);
@ -49,7 +49,7 @@ parent:
child:
// This method must be called by the parent when the PBlobParent is fully
// created in order to release the known blob.
CreatedFromKnownBlob();
async CreatedFromKnownBlob();
};
} // namespace dom

View File

@ -14,7 +14,7 @@ protocol PBlobStream
manager PBlob;
child:
__delete__(InputStreamParams params, OptionalFileDescriptorSet fds);
async __delete__(InputStreamParams params, OptionalFileDescriptorSet fds);
};
} // namespace dom

View File

@ -110,14 +110,14 @@ prio(normal upto urgent) sync protocol PBrowser
manages PPluginWidget;
both:
AsyncMessage(nsString aMessage, ClonedMessageData aData, CpowEntry[] aCpows,
Principal aPrincipal);
async AsyncMessage(nsString aMessage, ClonedMessageData aData, CpowEntry[] aCpows,
Principal aPrincipal);
/**
* Create a layout frame (encapsulating a remote layer tree) for
* the page that is currently loaded in the <browser>.
*/
PRenderFrame();
async PRenderFrame();
parent:
/**
@ -126,7 +126,7 @@ parent:
* aParentAcc is the id of the accessible in that document the new document
* is a child of.
*/
PDocAccessible(nullable PDocAccessible aParentDoc, uint64_t aParentAcc);
async PDocAccessible(nullable PDocAccessible aParentDoc, uint64_t aParentAcc);
/*
* Creates a new remoted nsIWidget connection for windowed plugins
@ -158,9 +158,9 @@ parent:
* When child sends this message, parent should move focus to
* the next or previous focusable element or document.
*/
MoveFocus(bool forward, bool forDocumentNavigation);
async MoveFocus(bool forward, bool forDocumentNavigation);
Event(RemoteDOMEvent aEvent);
async Event(RemoteDOMEvent aEvent);
sync SyncMessage(nsString aMessage, ClonedMessageData aData,
CpowEntry[] aCpows, Principal aPrincipal)
@ -295,15 +295,15 @@ parent:
* Request that the parent process move focus to the browser's frame. If
* canRaise is true, the window can be raised if it is inactive.
*/
RequestFocus(bool canRaise);
async RequestFocus(bool canRaise);
/**
* Indicate, based on the current state, that some commands are enabled and
* some are disabled.
*/
EnableDisableCommands(nsString action,
nsCString[] enabledCommands,
nsCString[] disabledCommands);
async EnableDisableCommands(nsString action,
nsCString[] enabledCommands,
nsCString[] disabledCommands);
prio(urgent) sync GetInputContext() returns (int32_t IMEEnabled,
int32_t IMEOpen);
@ -341,7 +341,7 @@ parent:
* Invalidate any locally cached cursor settings and force an
* update.
*/
SetCursor(uint32_t value, bool force);
async SetCursor(uint32_t value, bool force);
/**
* Set the native cursor using a custom image.
@ -363,30 +363,30 @@ parent:
* Invalidate any locally cached cursor settings and force an
* update.
*/
SetCustomCursor(nsCString cursorData, uint32_t width, uint32_t height,
uint32_t stride, uint8_t format,
uint32_t hotspotX, uint32_t hotspotY, bool force);
async SetCustomCursor(nsCString cursorData, uint32_t width, uint32_t height,
uint32_t stride, uint8_t format,
uint32_t hotspotX, uint32_t hotspotY, bool force);
/**
* Used to set the current text of the status tooltip.
* Nowadays this is mainly used for link locations on hover.
*/
SetStatus(uint32_t type, nsString status);
async SetStatus(uint32_t type, nsString status);
/**
* Show/hide a tooltip when the mouse hovers over an element in the content
* document.
*/
ShowTooltip(uint32_t x, uint32_t y, nsString tooltip);
HideTooltip();
async ShowTooltip(uint32_t x, uint32_t y, nsString tooltip);
async HideTooltip();
/**
* Create an asynchronous color picker on the parent side,
* but don't open it yet.
*/
PColorPicker(nsString title, nsString initialColor);
async PColorPicker(nsString title, nsString initialColor);
PFilePicker(nsString aTitle, int16_t aMode);
async PFilePicker(nsString aTitle, int16_t aMode);
/**
* Initiates an asynchronous request for one of the special indexedDB
@ -399,7 +399,7 @@ parent:
* principals that can live in the content process should
* provided.
*/
PIndexedDBPermissionRequest(Principal principal);
async PIndexedDBPermissionRequest(Principal principal);
/**
* window.open from inside <iframe mozbrowser> is special. When the child
@ -420,7 +420,7 @@ parent:
* Instructs the TabParent to forward a request to zoom to a rect given in
* CSS pixels. This rect is relative to the document.
*/
ZoomToRect(uint32_t aPresShellId, ViewID aViewId, CSSRect aRect, uint32_t aFlags);
async ZoomToRect(uint32_t aPresShellId, ViewID aViewId, CSSRect aRect, uint32_t aFlags);
/**
* We know for sure that content has either preventDefaulted or not
@ -429,36 +429,36 @@ parent:
* batched and only processed for panning and zooming if content does not
* preventDefault.
*/
ContentReceivedInputBlock(ScrollableLayerGuid aGuid, uint64_t aInputBlockId, bool aPreventDefault);
async ContentReceivedInputBlock(ScrollableLayerGuid aGuid, uint64_t aInputBlockId, bool aPreventDefault);
/**
* Notifies the APZ code of the results of the gecko hit-test for a
* particular input block. Each target corresponds to one touch point in the
* touch event.
*/
SetTargetAPZC(uint64_t aInputBlockId, ScrollableLayerGuid[] aTargets);
async SetTargetAPZC(uint64_t aInputBlockId, ScrollableLayerGuid[] aTargets);
/**
* Notifies the APZ code of the allowed touch-behaviours for a particular
* input block. Each item in the aFlags array corresponds to one touch point
* in the touch event.
*/
SetAllowedTouchBehavior(uint64_t aInputBlockId, TouchBehaviorFlags[] aFlags);
async SetAllowedTouchBehavior(uint64_t aInputBlockId, TouchBehaviorFlags[] aFlags);
/**
* Updates the zoom constraints for a scrollable frame in this tab.
* The zoom controller code lives on the parent side and so this allows it to
* have up-to-date zoom constraints.
*/
UpdateZoomConstraints(uint32_t aPresShellId, ViewID aViewId,
MaybeZoomConstraints aConstraints);
async UpdateZoomConstraints(uint32_t aPresShellId, ViewID aViewId,
MaybeZoomConstraints aConstraints);
/**
* Tells the containing widget whether the given input block results in a
* swipe. Should be called in response to a WidgetWheelEvent that has
* mFlags.mCanTriggerSwipe set on it.
*/
RespondStartSwipeEvent(uint64_t aInputBlockId, bool aStartSwipe);
async RespondStartSwipeEvent(uint64_t aInputBlockId, bool aStartSwipe);
/**
* Brings up the auth prompt dialog.
@ -467,49 +467,49 @@ parent:
* root process. It will be passed back to the root process with either the
* OnAuthAvailable or OnAuthCancelled message.
*/
AsyncAuthPrompt(nsCString uri, nsString realm, uint64_t aCallbackId);
async AsyncAuthPrompt(nsCString uri, nsString realm, uint64_t aCallbackId);
__delete__();
async __delete__();
ReplyKeyEvent(WidgetKeyboardEvent event);
async ReplyKeyEvent(WidgetKeyboardEvent event);
DispatchAfterKeyboardEvent(WidgetKeyboardEvent event);
async DispatchAfterKeyboardEvent(WidgetKeyboardEvent event);
sync RequestNativeKeyBindings(WidgetKeyboardEvent event)
returns (MaybeNativeKeyBinding bindings);
SynthesizeNativeKeyEvent(int32_t aNativeKeyboardLayout,
int32_t aNativeKeyCode,
uint32_t aModifierFlags,
nsString aCharacters,
nsString aUnmodifiedCharacters,
uint64_t aObserverId);
SynthesizeNativeMouseEvent(LayoutDeviceIntPoint aPoint,
uint32_t aNativeMessage,
uint32_t aModifierFlags,
uint64_t aObserverId);
SynthesizeNativeMouseMove(LayoutDeviceIntPoint aPoint,
uint64_t aObserverId);
SynthesizeNativeMouseScrollEvent(LayoutDeviceIntPoint aPoint,
async SynthesizeNativeKeyEvent(int32_t aNativeKeyboardLayout,
int32_t aNativeKeyCode,
uint32_t aModifierFlags,
nsString aCharacters,
nsString aUnmodifiedCharacters,
uint64_t aObserverId);
async SynthesizeNativeMouseEvent(LayoutDeviceIntPoint aPoint,
uint32_t aNativeMessage,
double aDeltaX,
double aDeltaY,
double aDeltaZ,
uint32_t aModifierFlags,
uint32_t aAdditionalFlags,
uint64_t aObserverId);
SynthesizeNativeTouchPoint(uint32_t aPointerId,
TouchPointerState aPointerState,
ScreenIntPoint aPointerScreenPoint,
double aPointerPressure,
uint32_t aPointerOrientation,
uint64_t aObserverId);
SynthesizeNativeTouchTap(ScreenIntPoint aPointerScreenPoint,
bool aLongTap,
uint64_t aObserverId);
ClearNativeTouchSequence(uint64_t aObserverId);
async SynthesizeNativeMouseMove(LayoutDeviceIntPoint aPoint,
uint64_t aObserverId);
async SynthesizeNativeMouseScrollEvent(LayoutDeviceIntPoint aPoint,
uint32_t aNativeMessage,
double aDeltaX,
double aDeltaY,
double aDeltaZ,
uint32_t aModifierFlags,
uint32_t aAdditionalFlags,
uint64_t aObserverId);
async SynthesizeNativeTouchPoint(uint32_t aPointerId,
TouchPointerState aPointerState,
ScreenIntPoint aPointerScreenPoint,
double aPointerPressure,
uint32_t aPointerOrientation,
uint64_t aObserverId);
async SynthesizeNativeTouchTap(ScreenIntPoint aPointerScreenPoint,
bool aLongTap,
uint64_t aObserverId);
async ClearNativeTouchSequence(uint64_t aObserverId);
child:
NativeSynthesisResponse(uint64_t aObserverId, nsCString aResponse);
async NativeSynthesisResponse(uint64_t aObserverId, nsCString aResponse);
parent:
@ -540,9 +540,10 @@ parent:
// Start an APZ drag on a scrollbar
async StartScrollbarDrag(AsyncDragMetrics aDragMetrics);
InvokeDragSession(IPCDataTransfer[] transfers, uint32_t action,
nsCString visualData, uint32_t width, uint32_t height,
uint32_t stride, uint8_t format, int32_t dragAreaX, int32_t dragAreaY);
async InvokeDragSession(IPCDataTransfer[] transfers, uint32_t action,
nsCString visualData, uint32_t width, uint32_t height,
uint32_t stride, uint8_t format,
int32_t dragAreaX, int32_t dragAreaY);
async AudioChannelActivityNotification(uint32_t aAudioChannel,
bool aActive);
@ -557,74 +558,74 @@ child:
* content processes always render to a virtual <0, 0> top-left
* point.
*/
Show(ScreenIntSize size,
ShowInfo info,
TextureFactoryIdentifier textureFactoryIdentifier,
uint64_t layersId,
nullable PRenderFrame renderFrame,
bool parentIsActive);
async Show(ScreenIntSize size,
ShowInfo info,
TextureFactoryIdentifier textureFactoryIdentifier,
uint64_t layersId,
nullable PRenderFrame renderFrame,
bool parentIsActive);
LoadURL(nsCString uri, BrowserConfiguration config, ShowInfo info);
async LoadURL(nsCString uri, BrowserConfiguration config, ShowInfo info);
OpenURI(URIParams uri, uint32_t flags);
async OpenURI(URIParams uri, uint32_t flags);
CacheFileDescriptor(nsString path, FileDescriptor fd);
async CacheFileDescriptor(nsString path, FileDescriptor fd);
UpdateDimensions(CSSRect rect, CSSSize size, nsSizeMode sizeMode,
ScreenOrientationInternal orientation,
LayoutDeviceIntPoint chromeDisp) compressall;
async UpdateDimensions(CSSRect rect, CSSSize size, nsSizeMode sizeMode,
ScreenOrientationInternal orientation,
LayoutDeviceIntPoint chromeDisp) compressall;
UpdateFrame(FrameMetrics frame);
async UpdateFrame(FrameMetrics frame);
// The following methods correspond to functions on the GeckoContentController
// interface in gfx/layers/apz/public/GeckoContentController.h. Refer to documentation
// in that file for these functions.
RequestFlingSnap(ViewID aScrollID, CSSPoint aDestination);
AcknowledgeScrollUpdate(ViewID aScrollId, uint32_t aScrollGeneration);
HandleDoubleTap(CSSPoint aPoint, Modifiers aModifiers, ScrollableLayerGuid aGuid);
HandleSingleTap(CSSPoint aPoint, Modifiers aModifiers, ScrollableLayerGuid aGuid);
HandleLongTap(CSSPoint point, Modifiers aModifiers, ScrollableLayerGuid aGuid, uint64_t aInputBlockId);
NotifyAPZStateChange(ViewID aViewId, APZStateChange aChange, int aArg);
NotifyFlushComplete();
async RequestFlingSnap(ViewID aScrollID, CSSPoint aDestination);
async AcknowledgeScrollUpdate(ViewID aScrollId, uint32_t aScrollGeneration);
async HandleDoubleTap(CSSPoint aPoint, Modifiers aModifiers, ScrollableLayerGuid aGuid);
async HandleSingleTap(CSSPoint aPoint, Modifiers aModifiers, ScrollableLayerGuid aGuid);
async HandleLongTap(CSSPoint point, Modifiers aModifiers, ScrollableLayerGuid aGuid, uint64_t aInputBlockId);
async NotifyAPZStateChange(ViewID aViewId, APZStateChange aChange, int aArg);
async NotifyFlushComplete();
/**
* Sending an activate message moves focus to the child.
*/
Activate();
async Activate();
Deactivate();
async Deactivate();
ParentActivated(bool aActivated);
async ParentActivated(bool aActivated);
/**
* StopIMEStateManagement() is called when the process loses focus and
* should stop managing IME state.
*/
StopIMEStateManagement();
async StopIMEStateManagement();
/**
* MenuKeyboardListenerInstalled() is called when menu keyboard listener
* is installed in the parent process.
*/
MenuKeyboardListenerInstalled(bool aInstalled);
async MenuKeyboardListenerInstalled(bool aInstalled);
/**
* @see nsIDOMWindowUtils sendMouseEvent.
*/
MouseEvent(nsString aType,
float aX,
float aY,
int32_t aButton,
int32_t aClickCount,
int32_t aModifiers,
bool aIgnoreRootScrollFrame);
async MouseEvent(nsString aType,
float aX,
float aY,
int32_t aButton,
int32_t aClickCount,
int32_t aModifiers,
bool aIgnoreRootScrollFrame);
/**
* When two consecutive mouse move events would be added to the message queue,
* they are 'compressed' by dumping the oldest one.
*/
RealMouseMoveEvent(WidgetMouseEvent event, ScrollableLayerGuid aGuid, uint64_t aInputBlockId) compress;
async RealMouseMoveEvent(WidgetMouseEvent event, ScrollableLayerGuid aGuid, uint64_t aInputBlockId) compress;
/**
* Mouse move events with |reason == eSynthesized| are sent via a separate
* message because they do not generate DOM 'mousemove' events, and the
@ -632,45 +633,45 @@ child:
* |reason == eReal| event being dropped in favour of an |eSynthesized|
* event, and thus a DOM 'mousemove' event to be lost.
*/
SynthMouseMoveEvent(WidgetMouseEvent event, ScrollableLayerGuid aGuid, uint64_t aInputBlockId);
RealMouseButtonEvent(WidgetMouseEvent event, ScrollableLayerGuid aGuid, uint64_t aInputBlockId);
RealKeyEvent(WidgetKeyboardEvent event, MaybeNativeKeyBinding keyBinding);
MouseWheelEvent(WidgetWheelEvent event, ScrollableLayerGuid aGuid, uint64_t aInputBlockId);
RealTouchEvent(WidgetTouchEvent aEvent,
ScrollableLayerGuid aGuid,
uint64_t aInputBlockId,
nsEventStatus aApzResponse);
RealTouchMoveEvent(WidgetTouchEvent aEvent,
ScrollableLayerGuid aGuid,
uint64_t aInputBlockId,
nsEventStatus aApzResponse);
RealDragEvent(WidgetDragEvent aEvent, uint32_t aDragAction, uint32_t aDropEffect);
PluginEvent(WidgetPluginEvent aEvent);
async SynthMouseMoveEvent(WidgetMouseEvent event, ScrollableLayerGuid aGuid, uint64_t aInputBlockId);
async RealMouseButtonEvent(WidgetMouseEvent event, ScrollableLayerGuid aGuid, uint64_t aInputBlockId);
async RealKeyEvent(WidgetKeyboardEvent event, MaybeNativeKeyBinding keyBinding);
async MouseWheelEvent(WidgetWheelEvent event, ScrollableLayerGuid aGuid, uint64_t aInputBlockId);
async RealTouchEvent(WidgetTouchEvent aEvent,
ScrollableLayerGuid aGuid,
uint64_t aInputBlockId,
nsEventStatus aApzResponse);
async RealTouchMoveEvent(WidgetTouchEvent aEvent,
ScrollableLayerGuid aGuid,
uint64_t aInputBlockId,
nsEventStatus aApzResponse);
async RealDragEvent(WidgetDragEvent aEvent, uint32_t aDragAction, uint32_t aDropEffect);
async PluginEvent(WidgetPluginEvent aEvent);
/**
* @see nsIDOMWindowUtils sendKeyEvent.
*/
KeyEvent(nsString aType,
int32_t aKeyCode,
int32_t aCharCode,
int32_t aModifiers,
bool aPreventDefault);
async KeyEvent(nsString aType,
int32_t aKeyCode,
int32_t aCharCode,
int32_t aModifiers,
bool aPreventDefault);
/**
* APZ notification for mouse scroll testing events.
*/
MouseScrollTestEvent(ViewID aScrollId, nsString aEvent);
async MouseScrollTestEvent(ViewID aScrollId, nsString aEvent);
CompositionEvent(WidgetCompositionEvent event);
async CompositionEvent(WidgetCompositionEvent event);
SelectionEvent(WidgetSelectionEvent event);
async SelectionEvent(WidgetSelectionEvent event);
/**
* Activate event forwarding from client to parent.
*/
ActivateFrameEvent(nsString aType, bool capture);
async ActivateFrameEvent(nsString aType, bool capture);
LoadRemoteScript(nsString aURL, bool aRunInGlobalScope);
async LoadRemoteScript(nsString aURL, bool aRunInGlobalScope);
/**
* Create a asynchronous request to render whatever document is
@ -685,10 +686,10 @@ child:
* and if true, |flushLayout| will do just that before rendering
* the document. The rendered image will be of size |renderSize|.
*/
PDocumentRenderer(nsRect documentRect, Matrix transform,
nsString bgcolor,
uint32_t renderFlags, bool flushLayout,
IntSize renderSize);
async PDocumentRenderer(nsRect documentRect, Matrix transform,
nsString bgcolor,
uint32_t renderFlags, bool flushLayout,
IntSize renderSize);
/**
* Sent by the chrome process when it no longer wants this remote
@ -696,19 +697,19 @@ child:
* finalizing its death by sending back __delete__() to the
* parent.
*/
Destroy();
async Destroy();
/**
* Tell the child side if it has to update it's touchable region
* to the parent.
*/
SetUpdateHitRegion(bool aEnabled);
async SetUpdateHitRegion(bool aEnabled);
/**
* Update the child side docShell active (resource use) state.
*/
SetDocShellIsActive(bool aIsActive, bool aIsHidden);
async SetDocShellIsActive(bool aIsActive, bool aIsHidden);
/**
* Notify the child that it shouldn't paint the offscreen displayport.
@ -724,7 +725,7 @@ child:
/**
* Navigate by key (Tab/Shift+Tab/F6/Shift+f6).
*/
NavigateByKey(bool aForward, bool aForDocumentNavigation);
async NavigateByKey(bool aForward, bool aForDocumentNavigation);
/**
* The parent (chrome thread) requests that the child inform it when
@ -743,24 +744,24 @@ child:
* value (-1) but in the majority of the cases this saves us from two
* sync requests from the child to the parent.
*/
UIResolutionChanged(float dpi, double scale);
async UIResolutionChanged(float dpi, double scale);
/**
* Tell the child that the system theme has changed, and that a repaint
* is necessary.
*/
ThemeChanged(LookAndFeelInt[] lookAndFeelIntCache);
async ThemeChanged(LookAndFeelInt[] lookAndFeelIntCache);
/**
* Tell the child of an app's offline status
*/
AppOfflineStatus(uint32_t id, bool offline);
async AppOfflineStatus(uint32_t id, bool offline);
/**
* Tell the browser that its frame loader has been swapped
* with another.
*/
SwappedWithOtherRemoteLoader();
async SwappedWithOtherRemoteLoader();
/**
* A potential accesskey was just pressed. Look for accesskey targets
@ -770,14 +771,14 @@ child:
* @param isTrusted true if triggered by a trusted key event
* @param modifierMask indicates which accesskey modifiers are pressed
*/
HandleAccessKey(uint32_t[] charCodes, bool isTrusted, int32_t modifierMask);
async HandleAccessKey(uint32_t[] charCodes, bool isTrusted, int32_t modifierMask);
/**
* Propagate a refresh to the child process
*/
AudioChannelChangeNotification(uint32_t aAudioChannel,
float aVolume,
bool aMuted);
async AudioChannelChangeNotification(uint32_t aAudioChannel,
float aVolume,
bool aMuted);
/*
* FIXME: write protocol!

View File

@ -15,12 +15,12 @@ protocol PColorPicker
manager PBrowser;
parent:
Open();
async Open();
child:
Update(nsString color);
async Update(nsString color);
__delete__(nsString color);
async __delete__(nsString color);
};
} // namespace dom

View File

@ -532,14 +532,14 @@ both:
async PBlob(BlobConstructorParams params);
PFileDescriptorSet(FileDescriptor fd);
async PFileDescriptorSet(FileDescriptor fd);
// For parent->child, aBrowser must be non-null; aOuterWindowID can
// be 0 to indicate the browser's current root document, or nonzero
// to persist a subdocument. For child->parent, arguments are
// ignored and should be null/zero.
PWebBrowserPersistDocument(nullable PBrowser aBrowser,
uint64_t aOuterWindowID);
async PWebBrowserPersistDocument(nullable PBrowser aBrowser,
uint64_t aOuterWindowID);
child:
/**
@ -549,8 +549,8 @@ child:
*/
async SetProcessSandbox(MaybeFileDesc aBroker);
PMemoryReportRequest(uint32_t generation, bool anonymize,
bool minimizeMemoryUsage, MaybeFileDesc DMDFile);
async PMemoryReportRequest(uint32_t generation, bool anonymize,
bool minimizeMemoryUsage, MaybeFileDesc DMDFile);
async SpeakerManagerNotify();
@ -569,15 +569,15 @@ child:
* For documentation on the other args, see dumpGCAndCCLogsToFile in
* nsIMemoryInfoDumper.idl
*/
PCycleCollectWithLogs(bool dumpAllTraces,
FileDescriptor gcLog,
FileDescriptor ccLog);
async PCycleCollectWithLogs(bool dumpAllTraces,
FileDescriptor gcLog,
FileDescriptor ccLog);
PTestShell();
async PTestShell();
RegisterChrome(ChromePackage[] packages, SubstitutionMapping[] substitutions,
OverrideMapping[] overrides, nsCString locale, bool reset);
RegisterChromeItem(ChromeRegistryItem item);
async RegisterChrome(ChromePackage[] packages, SubstitutionMapping[] substitutions,
OverrideMapping[] overrides, nsCString locale, bool reset);
async RegisterChromeItem(ChromeRegistryItem item);
async SetOffline(bool offline);
async SetConnectivity(bool connectivity);
@ -586,59 +586,59 @@ child:
async SystemMemoryAvailable(uint64_t getterId, uint32_t memoryAvailable);
PreferenceUpdate(PrefSetting pref);
async PreferenceUpdate(PrefSetting pref);
DataStoragePut(nsString aFilename, DataStorageItem aItem);
DataStorageRemove(nsString aFilename, nsCString aKey, DataStorageType aType);
DataStorageClear(nsString aFilename);
async DataStoragePut(nsString aFilename, DataStorageItem aItem);
async DataStorageRemove(nsString aFilename, nsCString aKey, DataStorageType aType);
async DataStorageClear(nsString aFilename);
NotifyAlertsObserver(nsCString topic, nsString data);
async NotifyAlertsObserver(nsCString topic, nsString data);
GeolocationUpdate(GeoPosition somewhere);
async GeolocationUpdate(GeoPosition somewhere);
GeolocationError(uint16_t errorCode);
async GeolocationError(uint16_t errorCode);
UpdateDictionaryList(nsString[] dictionaries);
async UpdateDictionaryList(nsString[] dictionaries);
// nsIPermissionManager messages
AddPermission(Permission permission);
async AddPermission(Permission permission);
ScreenSizeChanged(IntSize size);
async ScreenSizeChanged(IntSize size);
Volumes(VolumeInfo[] volumes);
async Volumes(VolumeInfo[] volumes);
FlushMemory(nsString reason);
async FlushMemory(nsString reason);
GarbageCollect();
CycleCollect();
async GarbageCollect();
async CycleCollect();
/**
* Start accessibility engine in content process.
*/
ActivateA11y();
async ActivateA11y();
AppInfo(nsCString version, nsCString buildID, nsCString name, nsCString UAName,
nsCString ID, nsCString vendor);
AppInit();
async AppInfo(nsCString version, nsCString buildID, nsCString name, nsCString UAName,
nsCString ID, nsCString vendor);
async AppInit();
// Notify child that last-pb-context-exited notification was observed
LastPrivateDocShellDestroyed();
async LastPrivateDocShellDestroyed();
FilePathUpdate(nsString storageType, nsString storageName, nsString filepath,
nsCString reasons);
async FilePathUpdate(nsString storageType, nsString storageName, nsString filepath,
nsCString reasons);
// Note: Any changes to this structure should also be changed in
// VolumeInfo above.
FileSystemUpdate(nsString fsName, nsString mountPoint, int32_t fsState,
int32_t mountGeneration, bool isMediaPresent,
bool isSharing, bool isFormatting, bool isFake,
bool isUnmounting, bool isRemovable, bool isHotSwappable);
async FileSystemUpdate(nsString fsName, nsString mountPoint, int32_t fsState,
int32_t mountGeneration, bool isMediaPresent,
bool isSharing, bool isFormatting, bool isFake,
bool isUnmounting, bool isRemovable, bool isHotSwappable);
// Notify volume is removed.
VolumeRemoved(nsString fsName);
async VolumeRemoved(nsString fsName);
NotifyProcessPriorityChanged(ProcessPriority priority);
MinimizeMemoryUsage();
async NotifyProcessPriorityChanged(ProcessPriority priority);
async MinimizeMemoryUsage();
/**
* Used to manage nsIStyleSheetService across processes.
@ -646,17 +646,17 @@ child:
async LoadAndRegisterSheet(URIParams uri, uint32_t type);
async UnregisterSheet(URIParams uri, uint32_t type);
NotifyPhoneStateChange(nsString newState);
async NotifyPhoneStateChange(nsString newState);
/**
* Notify idle observers in the child
*/
NotifyIdleObserver(uint64_t observerId, nsCString topic, nsString str);
async NotifyIdleObserver(uint64_t observerId, nsCString topic, nsString str);
/**
* Notify windows in the child to apply a new app style.
*/
OnAppThemeChanged();
async OnAppThemeChanged();
/**
* Called during plugin initialization to map a plugin id to a child process
@ -680,9 +680,9 @@ child:
async GatherProfile();
InvokeDragSession(IPCDataTransfer[] transfers, uint32_t action);
async InvokeDragSession(IPCDataTransfer[] transfers, uint32_t action);
EndDragSession(bool aDoneDrag, bool aUserCancelled);
async EndDragSession(bool aDoneDrag, bool aUserCancelled);
async DomainSetChanged(uint32_t aSetType, uint32_t aChangeType, OptionalURIParams aDomain);
@ -703,7 +703,7 @@ child:
/**
* Send gamepad status update to child.
*/
GamepadUpdate(GamepadChangeEvent aGamepadEvent);
async GamepadUpdate(GamepadChangeEvent aGamepadEvent);
/**
* Tell the child that for testing purposes, a graphics device reset has
@ -731,17 +731,17 @@ child:
/**
* Send a `push` event without data to a service worker in the child.
*/
Push(nsCString scope, Principal principal);
async Push(nsCString scope, Principal principal);
/**
* Send a `push` event with data to a service worker in the child.
*/
PushWithData(nsCString scope, Principal principal, uint8_t[] data);
async PushWithData(nsCString scope, Principal principal, uint8_t[] data);
/**
* Send a `pushsubscriptionchange` event to a service worker in the child.
*/
PushSubscriptionChange(nsCString scope, Principal principal);
async PushSubscriptionChange(nsCString scope, Principal principal);
parent:
/**
@ -814,10 +814,10 @@ parent:
async PJavaScript();
PRemoteSpellcheckEngine();
PDeviceStorageRequest(DeviceStorageParams params);
async PRemoteSpellcheckEngine();
async PDeviceStorageRequest(DeviceStorageParams params);
PFileSystemRequest(FileSystemParams params);
async PFileSystemRequest(FileSystemParams params);
sync PCrashReporter(NativeThreadId tid, uint32_t processType);
@ -838,40 +838,40 @@ parent:
async PHeapSnapshotTempFileHelper();
PIcc(uint32_t serviceId);
async PIcc(uint32_t serviceId);
PMobileConnection(uint32_t clientId);
async PMobileConnection(uint32_t clientId);
PNecko();
async PNecko();
PPrinting();
async PPrinting();
prio(high) sync PScreenManager()
returns (uint32_t numberOfScreens,
float systemDefaultScale,
bool success);
PCellBroadcast();
async PCellBroadcast();
PSms();
async PSms();
PSpeechSynthesis();
async PSpeechSynthesis();
prio(urgent) async PStorage();
PTelephony();
async PTelephony();
PVoicemail();
async PVoicemail();
PMedia();
async PMedia();
PBluetooth();
async PBluetooth();
PFMRadio();
async PFMRadio();
PWebrtcGlobal();
async PWebrtcGlobal();
PPresentation();
async PPresentation();
// Services remoting
@ -897,44 +897,44 @@ parent:
CpowEntry[] aCpows, Principal aPrincipal)
returns (StructuredCloneData[] retval);
ShowAlert(AlertNotificationType alert);
async ShowAlert(AlertNotificationType alert);
CloseAlert(nsString name, Principal principal);
async CloseAlert(nsString name, Principal principal);
DisableNotifications(Principal principal);
async DisableNotifications(Principal principal);
OpenNotificationSettings(Principal principal);
async OpenNotificationSettings(Principal principal);
PPSMContentDownloader(uint32_t aCertType);
async PPSMContentDownloader(uint32_t aCertType);
PExternalHelperApp(OptionalURIParams uri,
nsCString aMimeContentType,
nsCString aContentDisposition,
uint32_t aContentDispositionHint,
nsString aContentDispositionFilename,
bool aForceSave,
int64_t aContentLength,
OptionalURIParams aReferrer,
nullable PBrowser aBrowser);
async PExternalHelperApp(OptionalURIParams uri,
nsCString aMimeContentType,
nsCString aContentDisposition,
uint32_t aContentDispositionHint,
nsString aContentDispositionFilename,
bool aForceSave,
int64_t aContentLength,
OptionalURIParams aReferrer,
nullable PBrowser aBrowser);
PHandlerService();
async PHandlerService();
AddGeolocationListener(Principal principal, bool highAccuracy);
RemoveGeolocationListener();
SetGeolocationHigherAccuracy(bool enable);
async AddGeolocationListener(Principal principal, bool highAccuracy);
async RemoveGeolocationListener();
async SetGeolocationHigherAccuracy(bool enable);
ConsoleMessage(nsString message);
ScriptError(nsString message, nsString sourceName, nsString sourceLine,
uint32_t lineNumber, uint32_t colNumber, uint32_t flags,
nsCString category);
async ConsoleMessage(nsString message);
async ScriptError(nsString message, nsString sourceName, nsString sourceLine,
uint32_t lineNumber, uint32_t colNumber, uint32_t flags,
nsCString category);
// nsIPermissionManager messages
sync ReadPermissions() returns (Permission[] permissions);
// Places the items within dataTransfer on the clipboard.
SetClipboard(IPCDataTransfer aDataTransfer,
bool aIsPrivateData,
int32_t aWhichClipboard);
async SetClipboard(IPCDataTransfer aDataTransfer,
bool aIsPrivateData,
int32_t aWhichClipboard);
// Given a list of supported types, returns the clipboard data for the
// first type that matches.
@ -942,7 +942,7 @@ parent:
returns (IPCDataTransfer dataTransfer);
// Clears the clipboard.
EmptyClipboard(int32_t aWhichClipboard);
async EmptyClipboard(int32_t aWhichClipboard);
// Returns true if data of one of the specified types is on the clipboard.
sync ClipboardHasType(nsCString[] aTypes, int32_t aWhichClipboard)
@ -958,7 +958,7 @@ parent:
returns (bool showPassword);
// Notify the parent of the presence or absence of private docshells
PrivateDocShellsExist(bool aExist);
async PrivateDocShellsExist(bool aExist);
// Tell the parent that the child has gone idle for the first time
async FirstIdle();
@ -1020,8 +1020,8 @@ parent:
sync BeginDriverCrashGuard(uint32_t aGuardType) returns (bool crashDetected);
sync EndDriverCrashGuard(uint32_t aGuardType);
AddIdleObserver(uint64_t observerId, uint32_t idleTimeInS);
RemoveIdleObserver(uint64_t observerId, uint32_t idleTimeInS);
async AddIdleObserver(uint64_t observerId, uint32_t idleTimeInS);
async RemoveIdleObserver(uint64_t observerId, uint32_t idleTimeInS);
/**
* This message is only used on X11 platforms.
@ -1034,7 +1034,7 @@ parent:
* crashes *just before* a repaint and the parent process tries to
* use the newly-invalid surface.
*/
BackUpXResources(FileDescriptor aXSocketFd);
async BackUpXResources(FileDescriptor aXSocketFd);
sync OpenAnonymousTemporaryFile() returns (FileDescOrError aFD);
@ -1056,7 +1056,7 @@ parent:
returns (nsString aAttribute, nsString[] aContent);
// Use only for testing!
FlushPendingFileDeletions();
async FlushPendingFileDeletions();
/**
* Tell the chrome process there is an creation of PBrowser.
@ -1099,15 +1099,15 @@ parent:
* @param tabId
* To identify which tab owns the app.
*/
POfflineCacheUpdate(URIParams manifestURI, URIParams documentURI,
PrincipalInfo loadingPrincipal, bool stickDocument);
async POfflineCacheUpdate(URIParams manifestURI, URIParams documentURI,
PrincipalInfo loadingPrincipal, bool stickDocument);
/**
* Sets "offline-app" permission for the principal. Called when we hit
* a web app with the manifest attribute in <html> and
* offline-apps.allow_by_default is set to true.
*/
SetOfflinePermission(Principal principal);
async SetOfflinePermission(Principal principal);
/**
* Notifies the parent to continue shutting down after the child performs
@ -1115,7 +1115,7 @@ parent:
*/
async FinishShutdown();
UpdateDropEffect(uint32_t aDragAction, uint32_t aDropEffect);
async UpdateDropEffect(uint32_t aDragAction, uint32_t aDropEffect);
/**
* Initiates an asynchronous request for permission for the
@ -1132,8 +1132,8 @@ parent:
* principals that can live in the content process should
* provided.
*/
PContentPermissionRequest(PermissionRequest[] aRequests, Principal aPrincipal,
TabId tabId);
async PContentPermissionRequest(PermissionRequest[] aRequests, Principal aPrincipal,
TabId tabId);
/**
* Send ServiceWorkerRegistrationData to child process.
@ -1144,12 +1144,12 @@ parent:
/*
* Tells the parent to start the gamepad listening service if it hasn't already.
*/
GamepadListenerAdded();
async GamepadListenerAdded();
/**
* Tells the parent to stop the gamepad listening service if it hasn't already.
*/
GamepadListenerRemoved();
async GamepadListenerRemoved();
async Profile(nsCString aProfile);
@ -1191,8 +1191,8 @@ parent:
*/
sync UngrabPointer(uint32_t time);
both:
AsyncMessage(nsString aMessage, ClonedMessageData aData,
CpowEntry[] aCpows, Principal aPrincipal);
async AsyncMessage(nsString aMessage, ClonedMessageData aData,
CpowEntry[] aCpows, Principal aPrincipal);
};
}

View File

@ -51,8 +51,8 @@ both:
async PBlob(BlobConstructorParams params);
AsyncMessage(nsString aMessage, ClonedMessageData aData,
CpowEntry[] aCpows, Principal aPrincipal);
async AsyncMessage(nsString aMessage, ClonedMessageData aData,
CpowEntry[] aCpows, Principal aPrincipal);
};
}

View File

@ -15,7 +15,7 @@ protocol PContentDialog
manager PBrowser;
child:
__delete__(int32_t[] aIntParams, nsString[] aStringParams);
async __delete__(int32_t[] aIntParams, nsString[] aStringParams);
};
} // namespace dom

View File

@ -13,14 +13,14 @@ protocol PContentPermissionRequest
manager PContent;
parent:
prompt();
NotifyVisibility(bool visibility);
Destroy();
async prompt();
async NotifyVisibility(bool visibility);
async Destroy();
child:
GetVisibility();
NotifyResult(bool allow, PermissionChoice[] choices);
__delete__();
async GetVisibility();
async NotifyResult(bool allow, PermissionChoice[] choices);
async __delete__();
};

View File

@ -22,9 +22,9 @@ struct Mapping {
async protocol PCrashReporter {
manager PContent or PPluginModule or PGMP;
parent:
AnnotateCrashReport(nsCString key, nsCString data);
AppendAppNotes(nsCString data);
__delete__();
async AnnotateCrashReport(nsCString key, nsCString data);
async AppendAppNotes(nsCString data);
async __delete__();
};
}

View File

@ -12,10 +12,10 @@ protocol PCycleCollectWithLogs {
manager PContent;
parent:
CloseGCLog();
CloseCCLog();
async CloseGCLog();
async CloseCCLog();
__delete__();
async __delete__();
};
}

View File

@ -18,7 +18,7 @@ protocol PDocumentRenderer
parent:
// Returns the width and height, in pixels, of the returned ARGB32 data.
__delete__(nsIntSize renderedSize, nsCString data);
async __delete__(nsIntSize renderedSize, nsCString data);
};
} // namespace ipc

View File

@ -28,12 +28,12 @@ protocol PFilePicker
manager PBrowser;
parent:
Open(int16_t selectedType, bool addToRecentDocs, nsString defaultFile,
nsString defaultExtension, nsString[] filters, nsString[] filterNames,
nsString displayDirectory);
async Open(int16_t selectedType, bool addToRecentDocs, nsString defaultFile,
nsString defaultExtension, nsString[] filters, nsString[] filterNames,
nsString displayDirectory);
child:
__delete__(MaybeInputFiles files, int16_t result);
async __delete__(MaybeInputFiles files, int16_t result);
};
} // namespace dom

View File

@ -21,8 +21,8 @@ protocol PMemoryReportRequest {
manager PContent;
parent:
Report(MemoryReport aReport);
__delete__();
async Report(MemoryReport aReport);
async __delete__();
};
}

View File

@ -55,7 +55,7 @@ parent:
bool success);
child:
__delete__();
async __delete__();
};
} // namespace dom

View File

@ -18,18 +18,18 @@ async protocol PGMPAudioDecoder
{
manager PGMPContent;
child:
InitDecode(GMPAudioCodecData aCodecSettings);
Decode(GMPAudioEncodedSampleData aInput);
Reset();
Drain();
DecodingComplete();
async InitDecode(GMPAudioCodecData aCodecSettings);
async Decode(GMPAudioEncodedSampleData aInput);
async Reset();
async Drain();
async DecodingComplete();
parent:
__delete__();
Decoded(GMPAudioDecodedSampleData aDecoded);
InputDataExhausted();
DrainComplete();
ResetComplete();
Error(GMPErr aErr);
async __delete__();
async Decoded(GMPAudioDecodedSampleData aDecoded);
async InputDataExhausted();
async DrainComplete();
async ResetComplete();
async Error(GMPErr aErr);
async Shutdown();
};

View File

@ -20,70 +20,70 @@ async protocol PGMPDecryptor
manager PGMPContent;
child:
Init();
async Init();
CreateSession(uint32_t aCreateSessionToken,
uint32_t aPromiseId,
nsCString aInitDataType,
uint8_t[] aInitData,
GMPSessionType aSessionType);
async CreateSession(uint32_t aCreateSessionToken,
uint32_t aPromiseId,
nsCString aInitDataType,
uint8_t[] aInitData,
GMPSessionType aSessionType);
LoadSession(uint32_t aPromiseId,
nsCString aSessionId);
async LoadSession(uint32_t aPromiseId,
nsCString aSessionId);
UpdateSession(uint32_t aPromiseId,
nsCString aSessionId,
uint8_t[] aResponse);
async UpdateSession(uint32_t aPromiseId,
nsCString aSessionId,
uint8_t[] aResponse);
CloseSession(uint32_t aPromiseId,
nsCString aSessionId);
async CloseSession(uint32_t aPromiseId,
nsCString aSessionId);
RemoveSession(uint32_t aPromiseId,
nsCString aSessionId);
async RemoveSession(uint32_t aPromiseId,
nsCString aSessionId);
SetServerCertificate(uint32_t aPromiseId,
uint8_t[] aServerCert);
async SetServerCertificate(uint32_t aPromiseId,
uint8_t[] aServerCert);
Decrypt(uint32_t aId,
uint8_t[] aBuffer,
GMPDecryptionData aMetadata);
async Decrypt(uint32_t aId,
uint8_t[] aBuffer,
GMPDecryptionData aMetadata);
DecryptingComplete();
async DecryptingComplete();
parent:
__delete__();
async __delete__();
SetSessionId(uint32_t aCreateSessionToken,
nsCString aSessionId);
async SetSessionId(uint32_t aCreateSessionToken,
nsCString aSessionId);
ResolveLoadSessionPromise(uint32_t aPromiseId,
bool aSuccess);
async ResolveLoadSessionPromise(uint32_t aPromiseId,
bool aSuccess);
ResolvePromise(uint32_t aPromiseId);
async ResolvePromise(uint32_t aPromiseId);
RejectPromise(uint32_t aPromiseId,
GMPDOMException aDOMExceptionCode,
nsCString aMessage);
async RejectPromise(uint32_t aPromiseId,
GMPDOMException aDOMExceptionCode,
nsCString aMessage);
SessionMessage(nsCString aSessionId,
GMPSessionMessageType aMessageType,
uint8_t[] aMessage);
async SessionMessage(nsCString aSessionId,
GMPSessionMessageType aMessageType,
uint8_t[] aMessage);
ExpirationChange(nsCString aSessionId, double aExpiryTime);
async ExpirationChange(nsCString aSessionId, double aExpiryTime);
SessionClosed(nsCString aSessionId);
async SessionClosed(nsCString aSessionId);
SessionError(nsCString aSessionId,
GMPDOMException aDOMExceptionCode,
uint32_t aSystemCode,
nsCString aMessage);
async SessionError(nsCString aSessionId,
GMPDOMException aDOMExceptionCode,
uint32_t aSystemCode,
nsCString aMessage);
KeyStatusChanged(nsCString aSessionId, uint8_t[] aKey,
GMPMediaKeyStatus aStatus);
async KeyStatusChanged(nsCString aSessionId, uint8_t[] aKey,
GMPMediaKeyStatus aStatus);
SetCaps(uint64_t aCaps);
async SetCaps(uint64_t aCaps);
Decrypted(uint32_t aId, GMPErr aResult, uint8_t[] aBuffer);
async Decrypted(uint32_t aId, GMPErr aResult, uint8_t[] aBuffer);
async Shutdown();
};

View File

@ -16,19 +16,19 @@ async protocol PGMPStorage
manager PGMP;
child:
OpenComplete(nsCString aRecordName, GMPErr aStatus);
ReadComplete(nsCString aRecordName, GMPErr aStatus, uint8_t[] aBytes);
WriteComplete(nsCString aRecordName, GMPErr aStatus);
RecordNames(nsCString[] aRecordNames, GMPErr aStatus);
Shutdown();
async OpenComplete(nsCString aRecordName, GMPErr aStatus);
async ReadComplete(nsCString aRecordName, GMPErr aStatus, uint8_t[] aBytes);
async WriteComplete(nsCString aRecordName, GMPErr aStatus);
async RecordNames(nsCString[] aRecordNames, GMPErr aStatus);
async Shutdown();
parent:
Open(nsCString aRecordName);
Read(nsCString aRecordName);
Write(nsCString aRecordName, uint8_t[] aBytes);
Close(nsCString aRecordName);
GetRecordNames();
__delete__();
async Open(nsCString aRecordName);
async Read(nsCString aRecordName);
async Write(nsCString aRecordName, uint8_t[] aBytes);
async Close(nsCString aRecordName);
async GetRecordNames();
async __delete__();
};

View File

@ -12,10 +12,10 @@ async protocol PGMPTimer
{
manager PGMP;
child:
TimerExpired(uint32_t aTimerId);
async TimerExpired(uint32_t aTimerId);
parent:
SetTimer(uint32_t aTimerId, uint32_t aTimeoutMs);
__delete__();
async SetTimer(uint32_t aTimerId, uint32_t aTimeoutMs);
async __delete__();
};
} // namespace gmp

View File

@ -28,8 +28,8 @@ parent:
* from a secondary pool that is never persisted to disk, and aPersist is
* ignored.
*/
GetOriginKey(uint32_t aRequestId, nsCString aOrigin, bool aPrivateBrowsing,
bool aPersist);
async GetOriginKey(uint32_t aRequestId, nsCString aOrigin, bool aPrivateBrowsing,
bool aPersist);
/**
* Clear per-orgin list of persistent deviceIds stored for enumerateDevices
@ -40,11 +40,11 @@ parent:
* aOnlyPrivateBrowsing - if true then only purge the separate in-memory
* per-origin list used in Private Browsing.
*/
SanitizeOriginKeys(uint64_t aSinceWhen, bool aOnlyPrivateBrowsing);
async SanitizeOriginKeys(uint64_t aSinceWhen, bool aOnlyPrivateBrowsing);
child:
GetOriginKeyResponse(uint32_t aRequestId, nsCString key);
__delete__();
async GetOriginKeyResponse(uint32_t aRequestId, nsCString key);
async __delete__();
};
} // namespace media

View File

@ -16,17 +16,17 @@ async protocol PWebrtcGlobal {
manager PContent;
child: // parent -> child messages
GetStatsRequest(int aRequestId, nsString aPcIdFilter);
ClearStatsRequest();
GetLogRequest(int aRequestId, nsCString aPattern);
ClearLogRequest();
SetAecLogging(bool aEnable);
SetDebugMode(int aLevel);
async GetStatsRequest(int aRequestId, nsString aPcIdFilter);
async ClearStatsRequest();
async GetLogRequest(int aRequestId, nsCString aPattern);
async ClearLogRequest();
async SetAecLogging(bool aEnable);
async SetDebugMode(int aLevel);
parent: // child -> parent messages
GetStatsResult(int aRequestId, RTCStatsReportInternal[] aStats);
GetLogResult(int aRequestId, WebrtcGlobalLog aLog);
__delete__();
async GetStatsResult(int aRequestId, RTCStatsReportInternal[] aStats);
async GetLogResult(int aRequestId, WebrtcGlobalLog aLog);
async __delete__();
};
} // end namespace net

View File

@ -25,19 +25,19 @@ sync protocol PSpeechSynthesis
child:
VoiceAdded(RemoteVoice aVoice);
async VoiceAdded(RemoteVoice aVoice);
VoiceRemoved(nsString aUri);
async VoiceRemoved(nsString aUri);
SetDefaultVoice(nsString aUri, bool aIsDefault);
async SetDefaultVoice(nsString aUri, bool aIsDefault);
IsSpeakingChanged(bool aIsSpeaking);
async IsSpeakingChanged(bool aIsSpeaking);
parent:
__delete__();
async __delete__();
PSpeechSynthesisRequest(nsString aText, nsString aUri, nsString aLang,
float aVolume, float aRate, float aPitch);
async PSpeechSynthesisRequest(nsString aText, nsString aUri, nsString aLang,
float aVolume, float aRate, float aPitch);
sync ReadVoicesAndState() returns (RemoteVoice[] aVoices,
nsString[] aDefaults, bool aIsSpeaking);

View File

@ -15,31 +15,31 @@ async protocol PSpeechSynthesisRequest
parent:
__delete__();
async __delete__();
Pause();
async Pause();
Resume();
async Resume();
Cancel();
async Cancel();
ForceEnd();
async ForceEnd();
SetAudioOutputVolume(float aVolume);
async SetAudioOutputVolume(float aVolume);
child:
OnEnd(bool aIsError, float aElapsedTime, uint32_t aCharIndex);
async OnEnd(bool aIsError, float aElapsedTime, uint32_t aCharIndex);
OnStart(nsString aUri);
async OnStart(nsString aUri);
OnPause(float aElapsedTime, uint32_t aCharIndex);
async OnPause(float aElapsedTime, uint32_t aCharIndex);
OnResume(float aElapsedTime, uint32_t aCharIndex);
async OnResume(float aElapsedTime, uint32_t aCharIndex);
OnBoundary(nsString aName, float aElapsedTime, uint32_t aCharIndex);
async OnBoundary(nsString aName, float aElapsedTime, uint32_t aCharIndex);
OnMark(nsString aName, float aElapsedTime, uint32_t aCharIndex);
async OnMark(nsString aName, float aElapsedTime, uint32_t aCharIndex);
};
} // namespace dom

View File

@ -44,17 +44,17 @@ protocol PMessagePort
4. Recv__delete__(); */
parent:
PostMessages(MessagePortMessage[] messages);
Disentangle(MessagePortMessage[] messages);
StopSendingData();
Close();
async PostMessages(MessagePortMessage[] messages);
async Disentangle(MessagePortMessage[] messages);
async StopSendingData();
async Close();
child:
Entangled(MessagePortMessage[] messages);
ReceiveData(MessagePortMessage[] messages);
StopSendingDataConfirmed();
async Entangled(MessagePortMessage[] messages);
async ReceiveData(MessagePortMessage[] messages);
async StopSendingDataConfirmed();
__delete__();
async __delete__();
};
} // namespace dom

View File

@ -18,29 +18,29 @@ sync protocol PMobileConnection
manages PMobileConnectionRequest;
child:
NotifyVoiceInfoChanged(nsMobileConnectionInfo aInfo);
NotifyDataInfoChanged(nsMobileConnectionInfo aInfo);
NotifyDataError(nsString aMessage);
NotifyCFStateChanged(uint16_t aAction, uint16_t aReason, nsString aNumber,
uint16_t aTimeSeconds, uint16_t aServiceClass);
NotifyEmergencyCbModeChanged(bool aActive, uint32_t aTimeoutMs);
NotifyOtaStatusChanged(nsString aStatus);
NotifyRadioStateChanged(int32_t aRadioState);
NotifyClirModeChanged(uint32_t aMode);
NotifyLastNetworkChanged(nsString aNetwork);
NotifyLastHomeNetworkChanged(nsString aNetwork);
NotifyNetworkSelectionModeChanged(int32_t aMode);
async NotifyVoiceInfoChanged(nsMobileConnectionInfo aInfo);
async NotifyDataInfoChanged(nsMobileConnectionInfo aInfo);
async NotifyDataError(nsString aMessage);
async NotifyCFStateChanged(uint16_t aAction, uint16_t aReason, nsString aNumber,
uint16_t aTimeSeconds, uint16_t aServiceClass);
async NotifyEmergencyCbModeChanged(bool aActive, uint32_t aTimeoutMs);
async NotifyOtaStatusChanged(nsString aStatus);
async NotifyRadioStateChanged(int32_t aRadioState);
async NotifyClirModeChanged(uint32_t aMode);
async NotifyLastNetworkChanged(nsString aNetwork);
async NotifyLastHomeNetworkChanged(nsString aNetwork);
async NotifyNetworkSelectionModeChanged(int32_t aMode);
parent:
/**
* Send when child no longer needs to use PMobileConnection.
*/
__delete__();
async __delete__();
/**
* Sent when the child makes an asynchronous request to the parent.
*/
PMobileConnectionRequest(MobileConnectionRequest aRequest);
async PMobileConnectionRequest(MobileConnectionRequest aRequest);
/**
* Sync call only be called once per child actor for initialization.

View File

@ -19,7 +19,7 @@ child:
/**
* Send when asynchronous request has completed.
*/
__delete__(MobileConnectionReply aResponse);
async __delete__(MobileConnectionReply aResponse);
};
/**

View File

@ -17,15 +17,15 @@ protocol PMobileMessageCursor
manager PSms;
child:
NotifyResult(MobileMessageCursorData aData);
async NotifyResult(MobileMessageCursorData aData);
/**
* Sent when the asynchronous cursor request has completed.
*/
__delete__(int32_t aError);
async __delete__(int32_t aError);
parent:
Continue();
async Continue();
};
} // namespace mobilemessage

View File

@ -111,46 +111,46 @@ sync protocol PSms {
manages PMobileMessageCursor;
child:
NotifyReceivedMessage(MobileMessageData aMessageData);
async NotifyReceivedMessage(MobileMessageData aMessageData);
NotifyRetrievingMessage(MobileMessageData aMessageData);
async NotifyRetrievingMessage(MobileMessageData aMessageData);
NotifySendingMessage(MobileMessageData aMessageData);
async NotifySendingMessage(MobileMessageData aMessageData);
NotifySentMessage(MobileMessageData aMessageData);
async NotifySentMessage(MobileMessageData aMessageData);
NotifyFailedMessage(MobileMessageData aMessageData);
async NotifyFailedMessage(MobileMessageData aMessageData);
NotifyDeliverySuccessMessage(MobileMessageData aMessageData);
async NotifyDeliverySuccessMessage(MobileMessageData aMessageData);
NotifyDeliveryErrorMessage(MobileMessageData aMessageData);
async NotifyDeliveryErrorMessage(MobileMessageData aMessageData);
NotifyReceivedSilentMessage(MobileMessageData aMessageData);
async NotifyReceivedSilentMessage(MobileMessageData aMessageData);
NotifyReadSuccessMessage(MobileMessageData aMessageData);
async NotifyReadSuccessMessage(MobileMessageData aMessageData);
NotifyReadErrorMessage(MobileMessageData aMessageData);
async NotifyReadErrorMessage(MobileMessageData aMessageData);
NotifyDeletedMessageInfo(DeletedMessageInfoData aDeletedInfo);
async NotifyDeletedMessageInfo(DeletedMessageInfoData aDeletedInfo);
parent:
/**
* Sent when the child no longer needs to use sms.
*/
__delete__();
async __delete__();
/**
* Sent when the child makes an asynchronous request to the parent.
*/
PSmsRequest(IPCSmsRequest request);
async PSmsRequest(IPCSmsRequest request);
/**
* Sent when the child makes an asynchronous cursor to the parent.
*/
PMobileMessageCursor(IPCMobileMessageCursor request);
async PMobileMessageCursor(IPCMobileMessageCursor request);
AddSilentNumber(nsString aNumber);
RemoveSilentNumber(nsString aNumber);
async AddSilentNumber(nsString aNumber);
async RemoveSilentNumber(nsString aNumber);
};
} // namespace mobilemessage

View File

@ -22,7 +22,7 @@ child:
/**
* Sent when the asynchronous request has completed.
*/
__delete__(MessageReply response);
async __delete__(MessageReply response);
};
struct ReplyMessageSend

View File

@ -19,12 +19,12 @@ protocol PTCPServerSocket
manager PNecko;
parent:
Close();
RequestDelete();
async Close();
async RequestDelete();
child:
CallbackAccept(PTCPSocket socket);
__delete__();
async CallbackAccept(PTCPSocket socket);
async __delete__();
};
} // namespace net

View File

@ -39,42 +39,42 @@ parent:
// Forward calling to child's open() method to parent, expect TCPOptions
// is expanded to |useSSL| (from TCPOptions.useSecureTransport) and
// |binaryType| (from TCPOption.binaryType).
Open(nsString host, uint16_t port, bool useSSL, bool useArrayBuffers);
async Open(nsString host, uint16_t port, bool useSSL, bool useArrayBuffers);
// Ask parent to open a socket and bind the newly-opened socket to a local
// address specified in |localAddr| and |localPort|.
OpenBind(nsCString host, uint16_t port,
nsCString localAddr, uint16_t localPort,
bool useSSL, bool aUseArrayBuffers);
async OpenBind(nsCString host, uint16_t port,
nsCString localAddr, uint16_t localPort,
bool useSSL, bool aUseArrayBuffers);
// When child's send() is called, this message requrests parent to send
// data and update it's trackingNumber.
Data(SendableData data, uint32_t trackingNumber);
async Data(SendableData data, uint32_t trackingNumber);
// Forward calling to child's upgradeToSecure() method to parent.
StartTLS();
async StartTLS();
// Forward calling to child's send() method to parent.
Suspend();
async Suspend();
// Forward calling to child's resume() method to parent.
Resume();
async Resume();
// Forward calling to child's close() method to parent.
Close();
async Close();
child:
// Forward events that are dispatched by parent.
Callback(nsString type, CallbackData data, uint32_t readyState);
async Callback(nsString type, CallbackData data, uint32_t readyState);
// Update child's bufferedAmount when parent's bufferedAmount is updated.
// trackingNumber is also passed back to child to ensure the bufferedAmount
// is corresponding the last call to send().
UpdateBufferedAmount(uint32_t bufferedAmount, uint32_t trackingNumber);
async UpdateBufferedAmount(uint32_t bufferedAmount, uint32_t trackingNumber);
both:
RequestDelete();
__delete__();
async RequestDelete();
async __delete__();
};

View File

@ -41,25 +41,25 @@ protocol PUDPSocket
manager PNecko or PBackground;
parent:
Bind(UDPAddressInfo addressInfo, bool addressReuse, bool loopback);
Connect(UDPAddressInfo addressInfo);
async Bind(UDPAddressInfo addressInfo, bool addressReuse, bool loopback);
async Connect(UDPAddressInfo addressInfo);
OutgoingData(UDPData data, UDPSocketAddr addr);
async OutgoingData(UDPData data, UDPSocketAddr addr);
JoinMulticast(nsCString multicastAddress, nsCString iface);
LeaveMulticast(nsCString multicastAddress, nsCString iface);
async JoinMulticast(nsCString multicastAddress, nsCString iface);
async LeaveMulticast(nsCString multicastAddress, nsCString iface);
Close();
async Close();
RequestDelete();
async RequestDelete();
child:
CallbackOpened(UDPAddressInfo addressInfo);
CallbackConnected(UDPAddressInfo addressInfo);
CallbackClosed();
CallbackReceivedData(UDPAddressInfo addressInfo, uint8_t[] data);
CallbackError(nsCString message, nsCString filename, uint32_t lineNumber);
__delete__();
async CallbackOpened(UDPAddressInfo addressInfo);
async CallbackConnected(UDPAddressInfo addressInfo);
async CallbackClosed();
async CallbackReceivedData(UDPAddressInfo addressInfo, uint8_t[] data);
async CallbackError(nsCString message, nsCString filename, uint32_t lineNumber);
async __delete__();
};

View File

@ -27,7 +27,7 @@ protocol PPluginBackgroundDestroyer {
// notification that that the background is stale.
parent:
__delete__();
async __delete__();
state DESTROYING:
recv __delete__;

View File

@ -50,26 +50,26 @@ sync protocol PPresentation
manages PPresentationRequest;
child:
NotifyAvailableChange(bool aAvailable);
NotifySessionStateChange(nsString aSessionId, uint16_t aState);
NotifyMessage(nsString aSessionId, nsCString aData);
NotifySessionConnect(uint64_t aWindowId, nsString aSessionId);
async NotifyAvailableChange(bool aAvailable);
async NotifySessionStateChange(nsString aSessionId, uint16_t aState);
async NotifyMessage(nsString aSessionId, nsCString aData);
async NotifySessionConnect(uint64_t aWindowId, nsString aSessionId);
parent:
__delete__();
async __delete__();
RegisterAvailabilityHandler();
UnregisterAvailabilityHandler();
async RegisterAvailabilityHandler();
async UnregisterAvailabilityHandler();
RegisterSessionHandler(nsString aSessionId);
UnregisterSessionHandler(nsString aSessionId);
async RegisterSessionHandler(nsString aSessionId);
async UnregisterSessionHandler(nsString aSessionId);
RegisterRespondingHandler(uint64_t aWindowId);
UnregisterRespondingHandler(uint64_t aWindowId);
async RegisterRespondingHandler(uint64_t aWindowId);
async UnregisterRespondingHandler(uint64_t aWindowId);
PPresentationRequest(PresentationIPCRequest aRequest);
async PPresentationRequest(PresentationIPCRequest aRequest);
NotifyReceiverReady(nsString aSessionId);
async NotifyReceiverReady(nsString aSessionId);
};
} // namespace dom

View File

@ -14,7 +14,7 @@ sync protocol PPresentationRequest
manager PPresentation;
child:
__delete__(nsresult result);
async __delete__(nsresult result);
};
} // namespace dom

View File

@ -64,15 +64,15 @@ protocol PQuota
manages PQuotaUsageRequest;
parent:
__delete__();
async __delete__();
PQuotaUsageRequest(UsageRequestParams params);
async PQuotaUsageRequest(UsageRequestParams params);
PQuotaRequest(RequestParams params);
async PQuotaRequest(RequestParams params);
StartIdleMaintenance();
async StartIdleMaintenance();
StopIdleMaintenance();
async StopIdleMaintenance();
};
} // namespace quota

View File

@ -38,7 +38,7 @@ protocol PQuotaRequest
manager PQuota;
child:
__delete__(RequestResponse response);
async __delete__(RequestResponse response);
};
} // namespace quota

View File

@ -25,10 +25,10 @@ protocol PQuotaUsageRequest
manager PQuota;
parent:
Cancel();
async Cancel();
child:
__delete__(UsageRequestResponse response);
async __delete__(UsageRequestResponse response);
};
} // namespace quota

View File

@ -125,43 +125,43 @@ sync protocol PTelephony {
manages PTelephonyRequest;
child:
NotifyCallStateChanged(nsTelephonyCallInfo[] aAllInfo);
async NotifyCallStateChanged(nsTelephonyCallInfo[] aAllInfo);
NotifyCdmaCallWaiting(uint32_t aClientId, IPCCdmaWaitingCallData aData);
async NotifyCdmaCallWaiting(uint32_t aClientId, IPCCdmaWaitingCallData aData);
NotifyConferenceError(nsString aName, nsString aMessage);
async NotifyConferenceError(nsString aName, nsString aMessage);
NotifySupplementaryService(uint32_t aClientId, int32_t aCallIndex,
uint16_t aNotification);
async NotifySupplementaryService(uint32_t aClientId, int32_t aCallIndex,
uint16_t aNotification);
parent:
/**
* Sent when the child no longer needs to use PTelephony.
*/
__delete__();
async __delete__();
/**
* Sent when the child makes an asynchronous request to the parent.
*/
PTelephonyRequest(IPCTelephonyRequest request);
async PTelephonyRequest(IPCTelephonyRequest request);
RegisterListener();
async RegisterListener();
UnregisterListener();
async UnregisterListener();
StartTone(uint32_t aClientId, nsString aTone);
async StartTone(uint32_t aClientId, nsString aTone);
StopTone(uint32_t aClientId);
async StopTone(uint32_t aClientId);
sync GetMicrophoneMuted()
returns (bool aMuted);
SetMicrophoneMuted(bool aMuted);
async SetMicrophoneMuted(bool aMuted);
sync GetSpeakerEnabled()
returns (bool aEnabled);
SetSpeakerEnabled(bool aEnabled);
async SetSpeakerEnabled(bool aEnabled);
};
} /* namespace telephony */

View File

@ -66,14 +66,14 @@ protocol PTelephonyRequest
manager PTelephony;
child:
NotifyEnumerateCallState(nsTelephonyCallInfo aInfo);
async NotifyEnumerateCallState(nsTelephonyCallInfo aInfo);
NotifyDialMMI(nsString aServiceCode);
async NotifyDialMMI(nsString aServiceCode);
/**
* Sent when the asynchronous request has completed.
*/
__delete__(IPCTelephonyResponse aResponse);
async __delete__(IPCTelephonyResponse aResponse);
};
} /* namespace telephony */

View File

@ -15,21 +15,21 @@ sync protocol PVoicemail
manager PContent;
child:
NotifyInfoChanged(uint32_t aServiceId,
nsString aNumber,
nsString aDisplayName);
async NotifyInfoChanged(uint32_t aServiceId,
nsString aNumber,
nsString aDisplayName);
NotifyStatusChanged(uint32_t aServiceId,
bool aHasMessages,
int32_t aMessageCount,
nsString aNumber,
nsString aDisplayName);
async NotifyStatusChanged(uint32_t aServiceId,
bool aHasMessages,
int32_t aMessageCount,
nsString aNumber,
nsString aDisplayName);
parent:
/**
* Send when child no longer needs to use PVoicemail.
*/
__delete__();
async __delete__();
sync GetAttributes(uint32_t aServiceId)
returns (nsString aNumber,

View File

@ -17,28 +17,28 @@ protocol PServiceWorkerManager
manager PBackground;
parent:
Register(ServiceWorkerRegistrationData data);
async Register(ServiceWorkerRegistrationData data);
Unregister(PrincipalInfo principalInfo, nsString scope);
async Unregister(PrincipalInfo principalInfo, nsString scope);
PropagateSoftUpdate(PrincipalOriginAttributes originAttributes,
nsString scope);
PropagateUnregister(PrincipalInfo principalInfo, nsString scope);
async PropagateSoftUpdate(PrincipalOriginAttributes originAttributes,
nsString scope);
async PropagateUnregister(PrincipalInfo principalInfo, nsString scope);
PropagateRemove(nsCString host);
async PropagateRemove(nsCString host);
PropagateRemoveAll();
async PropagateRemoveAll();
Shutdown();
async Shutdown();
child:
NotifyRegister(ServiceWorkerRegistrationData data);
NotifySoftUpdate(PrincipalOriginAttributes originAttributes, nsString scope);
NotifyUnregister(PrincipalInfo principalInfo, nsString scope);
NotifyRemove(nsCString host);
NotifyRemoveAll();
async NotifyRegister(ServiceWorkerRegistrationData data);
async NotifySoftUpdate(PrincipalOriginAttributes originAttributes, nsString scope);
async NotifyUnregister(PrincipalInfo principalInfo, nsString scope);
async NotifyRemove(nsCString host);
async NotifyRemoveAll();
__delete__();
async __delete__();
};
} // namespace dom

View File

@ -13,22 +13,22 @@ protocol PPrintProgressDialog
manager PPrinting;
parent:
StateChange(long stateFlags,
nsresult status);
async StateChange(long stateFlags,
nsresult status);
ProgressChange(long curSelfProgress,
long maxSelfProgress,
long curTotalProgress,
long maxTotalProgress);
async ProgressChange(long curSelfProgress,
long maxSelfProgress,
long curTotalProgress,
long maxTotalProgress);
DocTitleChange(nsString newTitle);
async DocTitleChange(nsString newTitle);
DocURLChange(nsString newURL);
async DocURLChange(nsString newURL);
__delete__();
async __delete__();
child:
DialogOpened();
async DialogOpened();
};
} // namespace embedding

View File

@ -22,7 +22,7 @@ protocol PPrintSettingsDialog
manager PPrinting;
child:
__delete__(PrintDataOrNSResult result);
async __delete__(PrintDataOrNSResult result);
};
} // namespace embedding

View File

@ -31,8 +31,8 @@ parent:
PBrowser browser,
PrintData settings);
PPrintProgressDialog();
PPrintSettingsDialog();
async PPrintProgressDialog();
async PPrintSettingsDialog();
sync SavePrintSettings(PrintData settings, bool usePrinterNamePrefix,
uint32_t flags)
@ -40,7 +40,7 @@ parent:
child:
async PRemotePrintJob();
__delete__();
async __delete__();
};
} // namespace embedding

View File

@ -59,19 +59,19 @@ parent:
// two messages; see also the state transition rules. The message
// is either a response to the constructor (if it was parent->child)
// or sent after it (if it was child->parent).
Attributes(WebBrowserPersistDocumentAttrs aAttrs,
OptionalInputStreamParams postData,
FileDescriptor[] postFiles);
InitFailure(nsresult aStatus);
async Attributes(WebBrowserPersistDocumentAttrs aAttrs,
OptionalInputStreamParams postData,
FileDescriptor[] postFiles);
async InitFailure(nsresult aStatus);
child:
SetPersistFlags(uint32_t aNewFlags);
PWebBrowserPersistResources();
PWebBrowserPersistSerialize(WebBrowserPersistURIMap aMap,
nsCString aRequestedContentType,
uint32_t aEncoderFlags,
uint32_t aWrapColumn);
__delete__();
async SetPersistFlags(uint32_t aNewFlags);
async PWebBrowserPersistResources();
async PWebBrowserPersistSerialize(WebBrowserPersistURIMap aMap,
nsCString aRequestedContentType,
uint32_t aEncoderFlags,
uint32_t aWrapColumn);
async __delete__();
state START:
recv Attributes goto MAIN;

View File

@ -12,15 +12,15 @@ protocol PWebBrowserPersistResources {
manager PWebBrowserPersistDocument;
parent:
VisitResource(nsCString aURI);
async VisitResource(nsCString aURI);
// The actor sent here is in the START state; the parent-side
// receiver will have to wait for it to enter the MAIN state
// before exposing it with a visitDocument call.
VisitDocument(PWebBrowserPersistDocument aSubDocument);
async VisitDocument(PWebBrowserPersistDocument aSubDocument);
// This reflects the endVisit method.
__delete__(nsresult aStatus);
async __delete__(nsresult aStatus);
};
} // namespace mozilla

View File

@ -19,11 +19,11 @@ parent:
// this is at worst just a constant-factor increase in memory usage.
// Also, Chromium does the same thing; see
// content::RenderViewImpl::didSerializeDataForFrame.
WriteData(uint8_t[] aData);
async WriteData(uint8_t[] aData);
// This is the onFinish method.
__delete__(nsCString aContentType,
nsresult aStatus);
async __delete__(nsCString aContentType,
nsresult aStatus);
};
} // namespace mozilla

View File

@ -10,7 +10,7 @@ sync protocol PRemoteSpellcheckEngine {
manager PContent;
parent:
__delete__();
async __delete__();
sync Check(nsString aWord) returns (bool aIsMisspelled);

View File

@ -100,83 +100,83 @@ prio(normal upto urgent) sync protocol PHal {
manager PContent;
child:
NotifyBatteryChange(BatteryInformation aBatteryInfo);
NotifyNetworkChange(NetworkInformation aNetworkInfo);
NotifyWakeLockChange(WakeLockInformation aWakeLockInfo);
NotifyScreenConfigurationChange(ScreenConfiguration aScreenOrientation);
NotifySwitchChange(SwitchEvent aEvent);
NotifySystemClockChange(int64_t aClockDeltaMS);
NotifySystemTimezoneChange(SystemTimezoneChangeInformation aSystemTimezoneChangeInfo);
async NotifyBatteryChange(BatteryInformation aBatteryInfo);
async NotifyNetworkChange(NetworkInformation aNetworkInfo);
async NotifyWakeLockChange(WakeLockInformation aWakeLockInfo);
async NotifyScreenConfigurationChange(ScreenConfiguration aScreenOrientation);
async NotifySwitchChange(SwitchEvent aEvent);
async NotifySystemClockChange(int64_t aClockDeltaMS);
async NotifySystemTimezoneChange(SystemTimezoneChangeInformation aSystemTimezoneChangeInfo);
parent:
Vibrate(uint32_t[] pattern, uint64_t[] id, PBrowser browser);
CancelVibrate(uint64_t[] id, PBrowser browser);
async Vibrate(uint32_t[] pattern, uint64_t[] id, PBrowser browser);
async CancelVibrate(uint64_t[] id, PBrowser browser);
EnableBatteryNotifications();
DisableBatteryNotifications();
async EnableBatteryNotifications();
async DisableBatteryNotifications();
sync GetCurrentBatteryInformation()
returns (BatteryInformation aBatteryInfo);
EnableNetworkNotifications();
DisableNetworkNotifications();
async EnableNetworkNotifications();
async DisableNetworkNotifications();
sync GetCurrentNetworkInformation()
returns (NetworkInformation aNetworkInfo);
sync GetScreenEnabled() returns (bool enabled);
SetScreenEnabled(bool aEnabled);
async SetScreenEnabled(bool aEnabled);
sync GetKeyLightEnabled() returns (bool enabled);
SetKeyLightEnabled(bool aEnabled);
async SetKeyLightEnabled(bool aEnabled);
sync GetCpuSleepAllowed() returns (bool allowed);
SetCpuSleepAllowed(bool aAllowed);
async SetCpuSleepAllowed(bool aAllowed);
sync GetScreenBrightness() returns (double brightness);
SetScreenBrightness(double aBrightness);
async SetScreenBrightness(double aBrightness);
AdjustSystemClock(int64_t aDeltaMilliseconds);
SetTimezone(nsCString aTimezoneSpec);
async AdjustSystemClock(int64_t aDeltaMilliseconds);
async SetTimezone(nsCString aTimezoneSpec);
sync GetTimezone()
returns (nsCString aTimezoneSpec);
sync GetTimezoneOffset()
returns (int32_t aTimezoneOffset);
EnableSystemClockChangeNotifications();
DisableSystemClockChangeNotifications();
EnableSystemTimezoneChangeNotifications();
DisableSystemTimezoneChangeNotifications();
async EnableSystemClockChangeNotifications();
async DisableSystemClockChangeNotifications();
async EnableSystemTimezoneChangeNotifications();
async DisableSystemTimezoneChangeNotifications();
ModifyWakeLock(nsString aTopic,
WakeLockControl aLockAdjust,
WakeLockControl aHiddenAdjust,
uint64_t aProcessID);
EnableWakeLockNotifications();
DisableWakeLockNotifications();
async ModifyWakeLock(nsString aTopic,
WakeLockControl aLockAdjust,
WakeLockControl aHiddenAdjust,
uint64_t aProcessID);
async EnableWakeLockNotifications();
async DisableWakeLockNotifications();
sync GetWakeLockInfo(nsString aTopic)
returns (WakeLockInformation aWakeLockInfo);
EnableScreenConfigurationNotifications();
DisableScreenConfigurationNotifications();
async EnableScreenConfigurationNotifications();
async DisableScreenConfigurationNotifications();
prio(urgent) sync GetCurrentScreenConfiguration()
returns (ScreenConfiguration aScreenConfiguration);
sync LockScreenOrientation(ScreenOrientationInternal aOrientation)
returns (bool allowed);
UnlockScreenOrientation();
async UnlockScreenOrientation();
EnableSwitchNotifications(SwitchDevice aDevice);
DisableSwitchNotifications(SwitchDevice aDevice);
async EnableSwitchNotifications(SwitchDevice aDevice);
async DisableSwitchNotifications(SwitchDevice aDevice);
sync GetCurrentSwitchState(SwitchDevice aDevice)
returns (SwitchState aState);
FactoryReset(nsString aReason);
async FactoryReset(nsString aReason);
child:
NotifySensorChange(SensorData aSensorData);
async NotifySensorChange(SensorData aSensorData);
parent:
EnableSensorNotifications(SensorType aSensor);
DisableSensorNotifications(SensorType aSensor);
async EnableSensorNotifications(SensorType aSensor);
async DisableSensorNotifications(SensorType aSensor);
__delete__();
async __delete__();
};
} // namespace hal

View File

@ -60,46 +60,46 @@ sync protocol PBackground
parent:
// Only called at startup during mochitests to check the basic infrastructure.
PBackgroundTest(nsCString testArg);
async PBackgroundTest(nsCString testArg);
PBackgroundIDBFactory(LoggingInfo loggingInfo);
async PBackgroundIDBFactory(LoggingInfo loggingInfo);
PBackgroundIndexedDBUtils();
async PBackgroundIndexedDBUtils();
PVsync();
async PVsync();
PCameras();
async PCameras();
PUDPSocket(OptionalPrincipalInfo pInfo, nsCString filter);
PBroadcastChannel(PrincipalInfo pInfo, nsCString origin, nsString channel,
bool privateBrowsing);
async PUDPSocket(OptionalPrincipalInfo pInfo, nsCString filter);
async PBroadcastChannel(PrincipalInfo pInfo, nsCString origin, nsString channel,
bool privateBrowsing);
PServiceWorkerManager();
async PServiceWorkerManager();
ShutdownServiceWorkerRegistrar();
async ShutdownServiceWorkerRegistrar();
PCacheStorage(Namespace aNamespace, PrincipalInfo aPrincipalInfo);
async PCacheStorage(Namespace aNamespace, PrincipalInfo aPrincipalInfo);
PMessagePort(nsID uuid, nsID destinationUuid, uint32_t sequenceId);
async PMessagePort(nsID uuid, nsID destinationUuid, uint32_t sequenceId);
PNuwa();
async PNuwa();
MessagePortForceClose(nsID uuid, nsID destinationUuid, uint32_t sequenceId);
async MessagePortForceClose(nsID uuid, nsID destinationUuid, uint32_t sequenceId);
PAsmJSCacheEntry(OpenMode openMode,
WriteParams write,
PrincipalInfo principalInfo);
async PAsmJSCacheEntry(OpenMode openMode,
WriteParams write,
PrincipalInfo principalInfo);
PQuota();
async PQuota();
child:
PCache();
PCacheStreamControl();
async PCache();
async PCacheStreamControl();
both:
PBlob(BlobConstructorParams params);
async PBlob(BlobConstructorParams params);
PFileDescriptorSet(FileDescriptor fd);
async PFileDescriptorSet(FileDescriptor fd);
};
} // namespace ipc

View File

@ -13,7 +13,7 @@ protocol PBackgroundTest
manager PBackground;
child:
__delete__(nsCString testArg);
async __delete__(nsCString testArg);
};
} // namespace ipc

View File

@ -13,9 +13,9 @@ protocol PFileDescriptorSet
manager PBackground or PContent;
both:
AddFileDescriptor(FileDescriptor fd);
async AddFileDescriptor(FileDescriptor fd);
__delete__();
async __delete__();
};
} // namespace ipc

View File

@ -499,7 +499,7 @@ def p_MessageDirectionLabel(p):
assert 0
def p_MessageDecl(p):
"""MessageDecl : OptionalSendSemanticsQual MessageBody"""
"""MessageDecl : SendSemanticsQual MessageBody"""
msg = p[2]
msg.priority = p[1][0]
msg.sendSemantics = p[1][1]
@ -636,12 +636,6 @@ def p_Priority(p):
'urgent': 3}
p[0] = prios[p[1]]
def p_OptionalSendSemanticsQual(p):
"""OptionalSendSemanticsQual : SendSemanticsQual
| """
if 2 == len(p): p[0] = p[1]
else: p[0] = [ NORMAL_PRIORITY, ASYNC ]
def p_SendSemanticsQual(p):
"""SendSemanticsQual : ASYNC
| SYNC

View File

@ -13,13 +13,13 @@ protocol PTestActorPunning {
manages PTestActorPunningSub;
child:
Start();
async Start();
parent:
PTestActorPunningPunned();
PTestActorPunningSub();
Pun(PTestActorPunningSub a, Bad bad);
__delete__();
async PTestActorPunningPunned();
async PTestActorPunningSub();
async Pun(PTestActorPunningSub a, Bad bad);
async __delete__();
state PING:

View File

@ -8,7 +8,7 @@ protocol PTestActorPunningPunned {
manager PTestActorPunning;
child:
__delete__();
async __delete__();
};
} // namespace mozilla

View File

@ -8,8 +8,8 @@ protocol PTestActorPunningSub {
manager PTestActorPunning;
child:
Bad();
__delete__();
async Bad();
async __delete__();
};
} // namespace mozilla

View File

@ -10,8 +10,8 @@ intr protocol PTestBadActor {
manages PTestBadActorSub;
child:
PTestBadActorSub();
__delete__();
async PTestBadActorSub();
async __delete__();
};
} // namespace _ipdltest

View File

@ -10,7 +10,7 @@ child:
intr __delete__();
parent:
Ping();
async Ping();
};
} // namespace _ipdltest

View File

@ -10,10 +10,10 @@ protocol PTestBridgeMain {
child opens PTestBridgeMainSub;
child:
Start();
async Start();
parent:
__delete__();
async __delete__();
state START:
send Start goto DEAD;

View File

@ -10,14 +10,14 @@ intr protocol PTestBridgeMainSub {
bridges PTestBridgeMain, PTestBridgeSub;
child:
Hi();
async Hi();
intr HiRpc();
parent:
Hello();
async Hello();
sync HelloSync();
intr HelloRpc();
__delete__();
async __delete__();
state START: recv Hello goto HI;
state HI: send Hi goto HELLO_SYNC;

View File

@ -6,11 +6,11 @@ namespace _ipdltest {
protocol PTestBridgeSub {
child:
Ping();
async Ping();
parent:
BridgeEm();
__delete__();
async BridgeEm();
async __delete__();
state START:
send Ping goto BRIDGEEM;

View File

@ -10,7 +10,7 @@ namespace _ipdltest {
intr protocol PTestCrashCleanup {
child:
intr DIEDIEDIE();
__delete__();
async __delete__();
state ALIVE:
call DIEDIEDIE goto CRASH;

View File

@ -10,12 +10,12 @@ sync protocol PTestDataStructures {
manages PTestDataStructuresSub;
child:
PTestDataStructuresSub(int i);
async PTestDataStructuresSub(int i);
Start();
async Start();
parent:
__delete__();
async __delete__();
sync Test1(int[] i1)
returns (int[] o1);

View File

@ -9,12 +9,12 @@ intr protocol PTestDesc {
child:
intr PTestDescSub(nullable PTestDescSubsub dummy);
Test(PTestDescSubsub a);
async Test(PTestDescSubsub a);
__delete__();
async __delete__();
parent:
Ok(PTestDescSubsub a);
async Ok(PTestDescSubsub a);
state CONSTRUCT:

View File

@ -9,7 +9,7 @@ intr protocol PTestDescSub {
manages PTestDescSubsub;
child:
__delete__();
async __delete__();
intr PTestDescSubsub();
};

View File

@ -12,10 +12,10 @@ protocol PTestEndpointBridgeMain {
child spawns PTestEndpointBridgeSub;
child:
Start();
async Start();
parent:
Bridged(Endpoint<PTestEndpointBridgeMainSubParent> endpoint);
async Bridged(Endpoint<PTestEndpointBridgeMainSubParent> endpoint);
};

View File

@ -11,11 +11,11 @@ namespace _ipdltest {
// they bridge)
intr protocol PTestEndpointBridgeMainSub {
child:
Hi();
async Hi();
intr HiRpc();
parent:
Hello();
async Hello();
sync HelloSync();
intr HelloRpc();
};

View File

@ -9,12 +9,12 @@ namespace _ipdltest {
protocol PTestEndpointBridgeSub {
child:
Ping();
async Ping();
Bridged(Endpoint<PTestEndpointBridgeMainSubChild> endpoint);
async Bridged(Endpoint<PTestEndpointBridgeMainSubChild> endpoint);
parent:
BridgeEm();
async BridgeEm();
};

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