@@ -66,12 +66,12 @@ class RemoteLazyInputStream final : public nsIAsyncInputStream,
6666
6767 ~RemoteLazyInputStream ();
6868
69- void StreamNeeded () REQUIRES (mMutex );
69+ void StreamNeeded () MOZ_REQUIRES (mMutex );
7070
7171 // Upon receiving the stream from our actor, we will not wrap it into an async
7272 // stream until needed. This allows callers to get access to the underlying
7373 // potentially-sync stream using `TakeInternalStream` before reading.
74- nsresult EnsureAsyncRemoteStream () REQUIRES (mMutex );
74+ nsresult EnsureAsyncRemoteStream () MOZ_REQUIRES (mMutex );
7575
7676 // Note that data has been read from our input stream, and disconnect from our
7777 // remote actor.
@@ -82,7 +82,7 @@ class RemoteLazyInputStream final : public nsIAsyncInputStream,
8282 IPC::MessageReader* aReader);
8383
8484 // Helper method to generate a description of a stream for use in loggging.
85- nsCString Describe () REQUIRES (mMutex );
85+ nsCString Describe () MOZ_REQUIRES (mMutex );
8686
8787 // Start and length of the slice to apply on this RemoteLazyInputStream when
8888 // fetching the underlying stream with `SendStreamNeeded`.
@@ -112,7 +112,7 @@ class RemoteLazyInputStream final : public nsIAsyncInputStream,
112112 // mInnerStream is released and any method will return
113113 // NS_BASE_STREAM_CLOSED.
114114 eClosed,
115- } mState GUARDED_BY (mMutex ) = eClosed;
115+ } mState MOZ_GUARDED_BY (mMutex ) = eClosed;
116116
117117 // The actor which will be used to provide the underlying stream or length
118118 // information when needed, as well as to efficiently allow transferring the
@@ -121,22 +121,25 @@ class RemoteLazyInputStream final : public nsIAsyncInputStream,
121121 // The connection to our actor will be cleared once the stream has been closed
122122 // or has started reading, at which point this stream will be serialized and
123123 // cloned as-if it was the underlying stream.
124- RefPtr<RemoteLazyInputStreamChild> mActor GUARDED_BY (mMutex );
124+ RefPtr<RemoteLazyInputStreamChild> mActor MOZ_GUARDED_BY (mMutex );
125125
126- nsCOMPtr<nsIInputStream> mInnerStream GUARDED_BY (mMutex );
127- nsCOMPtr<nsIAsyncInputStream> mAsyncInnerStream GUARDED_BY (mMutex );
126+ nsCOMPtr<nsIInputStream> mInnerStream MOZ_GUARDED_BY (mMutex );
127+ nsCOMPtr<nsIAsyncInputStream> mAsyncInnerStream MOZ_GUARDED_BY (mMutex );
128128
129129 // These 2 values are set only if mState is ePending or eRunning.
130130 // RefPtr is used instead of nsCOMPtr to avoid invoking QueryInterface when
131131 // assigning in debug builds, as `mInputStreamCallback` may not be threadsafe.
132- RefPtr<nsIInputStreamCallback> mInputStreamCallback GUARDED_BY (mMutex );
133- nsCOMPtr<nsIEventTarget> mInputStreamCallbackEventTarget GUARDED_BY (mMutex );
134- uint32_t mInputStreamCallbackFlags GUARDED_BY (mMutex ) = 0;
135- uint32_t mInputStreamCallbackRequestedCount GUARDED_BY (mMutex ) = 0;
132+ RefPtr<nsIInputStreamCallback> mInputStreamCallback MOZ_GUARDED_BY (mMutex );
133+ nsCOMPtr<nsIEventTarget> mInputStreamCallbackEventTarget
134+ MOZ_GUARDED_BY (mMutex );
135+ uint32_t mInputStreamCallbackFlags MOZ_GUARDED_BY (mMutex ) = 0;
136+ uint32_t mInputStreamCallbackRequestedCount MOZ_GUARDED_BY (mMutex ) = 0;
136137
137138 // These 2 values are set only if mState is ePending.
138- nsCOMPtr<nsIFileMetadataCallback> mFileMetadataCallback GUARDED_BY (mMutex );
139- nsCOMPtr<nsIEventTarget> mFileMetadataCallbackEventTarget GUARDED_BY (mMutex );
139+ nsCOMPtr<nsIFileMetadataCallback> mFileMetadataCallback
140+ MOZ_GUARDED_BY (mMutex );
141+ nsCOMPtr<nsIEventTarget> mFileMetadataCallbackEventTarget
142+ MOZ_GUARDED_BY (mMutex );
140143};
141144
142145} // namespace mozilla
0 commit comments