Bug 1458821 - Rename nsIAsyncFileMetadata.asyncWait to asyncFileMetadataWait, r=smaug
authorAndrea Marchesini <amarchesini@mozilla.com>
Thu, 03 May 2018 17:03:17 +0200
changeset 472949 c07fc14c5821f15874e781fe57b4908b770a478c
parent 472948 e73e0231a9e3e5abf3da65461cffad8f3cc2d6e9
child 472950 58fb973a0dad830e17a649c853e0cf1db5f23e92
push id1728
push userjlund@mozilla.com
push dateMon, 18 Jun 2018 21:12:27 +0000
treeherdermozilla-release@c296fde26f5f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1458821
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1458821 - Rename nsIAsyncFileMetadata.asyncWait to asyncFileMetadataWait, r=smaug
dom/file/ipc/IPCBlobInputStream.cpp
dom/indexedDB/ActorsChild.cpp
netwerk/base/nsIFileStreams.idl
--- a/dom/file/ipc/IPCBlobInputStream.cpp
+++ b/dom/file/ipc/IPCBlobInputStream.cpp
@@ -549,18 +549,18 @@ mozilla::Maybe<uint64_t>
 IPCBlobInputStream::ExpectedSerializedLength()
 {
   return mozilla::Nothing();
 }
 
 // nsIAsyncFileMetadata
 
 NS_IMETHODIMP
-IPCBlobInputStream::AsyncWait(nsIFileMetadataCallback* aCallback,
-                              nsIEventTarget* aEventTarget)
+IPCBlobInputStream::AsyncFileMetadataWait(nsIFileMetadataCallback* aCallback,
+                                          nsIEventTarget* aEventTarget)
 {
   MOZ_ASSERT(!!aCallback == !!aEventTarget);
 
   // If we have the callback, we must have the event target.
   if (NS_WARN_IF(!!aCallback != !!aEventTarget)) {
     return NS_ERROR_FAILURE;
   }
 
--- a/dom/indexedDB/ActorsChild.cpp
+++ b/dom/indexedDB/ActorsChild.cpp
@@ -3550,17 +3550,18 @@ BackgroundRequestChild::
 PreprocessHelper::WaitForStreamReady(nsIInputStream* aInputStream)
 {
   MOZ_ASSERT(!IsOnOwningThread());
   MOZ_ASSERT(aInputStream);
 
   nsCOMPtr<nsIAsyncFileMetadata> asyncFileMetadata =
     do_QueryInterface(aInputStream);
   if (asyncFileMetadata) {
-    nsresult rv = asyncFileMetadata->AsyncWait(this, mTaskQueueEventTarget);
+    nsresult rv =
+      asyncFileMetadata->AsyncFileMetadataWait(this, mTaskQueueEventTarget);
     if (NS_WARN_IF(NS_FAILED(rv))) {
       return rv;
     }
 
     return NS_OK;
   }
 
   nsCOMPtr<nsIAsyncInputStream> asyncStream = do_QueryInterface(aInputStream);
--- a/netwerk/base/nsIFileStreams.idl
+++ b/netwerk/base/nsIFileStreams.idl
@@ -215,22 +215,23 @@ interface nsIAsyncFileMetadata : nsIFile
      *
      * @param aCallback The callback will be used when the stream is ready to
      *                  return File metadata. Use a nullptr to cancel a
      *                  previous operation.
      *
      * @param aEventTarget The event target where aCallback will be executed.
      *                     If aCallback is passed, aEventTarget cannot be null.
      */
-    void asyncWait(in nsIFileMetadataCallback aCallback,
-                   in nsIEventTarget aEventTarget);
+    void asyncFileMetadataWait(in nsIFileMetadataCallback aCallback,
+                               in nsIEventTarget aEventTarget);
 };
 
 /**
- * This is a companion interface for nsIAsyncFileMetadata::asyncWait.
+ * This is a companion interface for
+ * nsIAsyncFileMetadata::asyncFileMetadataWait.
  */
 [function, scriptable, uuid(d01c7ead-7ba3-4726-b399-618ec8ec7057)]
 interface nsIFileMetadataCallback : nsISupports
 {
     /**
      * Called to indicate that the nsIFileMetadata object is ready.
      */
     void onFileMetadataReady(in nsIAsyncFileMetadata aObject);