Bug 1542778 - Part 1: Fix clang-format fallout for FakeChannel, r=Ehsan
authorNika Layzell <nika@thelayzells.com>
Mon, 08 Apr 2019 20:30:19 +0000
changeset 468424 9dab59843ef1bfd9a1adf551aeabbd2682fc1ada
parent 468423 7aa54b22f3aa2382596021a8e9c2dae3643202d1
child 468425 018c5e179c2eda0096d0fc621591ca2737e2c5aa
push id35837
push userrmaries@mozilla.com
push dateTue, 09 Apr 2019 03:43:40 +0000
treeherdermozilla-central@9eb55c9bf557 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersEhsan
bugs1542778
milestone68.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 1542778 - Part 1: Fix clang-format fallout for FakeChannel, r=Ehsan Differential Revision: https://phabricator.services.mozilla.com/D26545
dom/ipc/TabParent.cpp
--- a/dom/ipc/TabParent.cpp
+++ b/dom/ipc/TabParent.cpp
@@ -3286,96 +3286,99 @@ class FakeChannel final : public nsIChan
                           public nsILoadContext {
  public:
   FakeChannel(const nsCString& aUri, uint64_t aCallbackId, Element* aElement)
       : mCallbackId(aCallbackId), mElement(aElement) {
     NS_NewURI(getter_AddRefs(mUri), aUri);
   }
 
   NS_DECL_ISUPPORTS
+
 #define NO_IMPL \
   override { return NS_ERROR_NOT_IMPLEMENTED; }
-  NS_IMETHOD GetName(nsACString&) NO_IMPL NS_IMETHOD
-      IsPending(bool*) NO_IMPL NS_IMETHOD
-      GetStatus(nsresult*) NO_IMPL NS_IMETHOD
-      Cancel(nsresult) NO_IMPL NS_IMETHOD Suspend() NO_IMPL NS_IMETHOD
-      Resume() NO_IMPL NS_IMETHOD
-      GetLoadGroup(nsILoadGroup**) NO_IMPL NS_IMETHOD
-      SetLoadGroup(nsILoadGroup*) NO_IMPL NS_IMETHOD
-      SetLoadFlags(nsLoadFlags) NO_IMPL NS_IMETHOD
-      GetLoadFlags(nsLoadFlags*) NO_IMPL NS_IMETHOD
-      GetIsDocument(bool*) NO_IMPL NS_IMETHOD
-      GetOriginalURI(nsIURI**) NO_IMPL NS_IMETHOD
-      SetOriginalURI(nsIURI*) NO_IMPL NS_IMETHOD
-      GetURI(nsIURI** aUri) override {
+  NS_IMETHOD GetName(nsACString&) NO_IMPL;
+  NS_IMETHOD IsPending(bool*) NO_IMPL;
+  NS_IMETHOD GetStatus(nsresult*) NO_IMPL;
+  NS_IMETHOD Cancel(nsresult) NO_IMPL;
+  NS_IMETHOD Suspend() NO_IMPL;
+  NS_IMETHOD Resume() NO_IMPL;
+  NS_IMETHOD GetLoadGroup(nsILoadGroup**) NO_IMPL;
+  NS_IMETHOD SetLoadGroup(nsILoadGroup*) NO_IMPL;
+  NS_IMETHOD SetLoadFlags(nsLoadFlags) NO_IMPL;
+  NS_IMETHOD GetLoadFlags(nsLoadFlags*) NO_IMPL;
+  NS_IMETHOD GetIsDocument(bool*) NO_IMPL;
+  NS_IMETHOD GetOriginalURI(nsIURI**) NO_IMPL;
+  NS_IMETHOD SetOriginalURI(nsIURI*) NO_IMPL;
+  NS_IMETHOD GetURI(nsIURI** aUri) override {
     nsCOMPtr<nsIURI> copy = mUri;
     copy.forget(aUri);
     return NS_OK;
   }
-  NS_IMETHOD GetOwner(nsISupports**) NO_IMPL NS_IMETHOD
-      SetOwner(nsISupports*) NO_IMPL NS_IMETHOD
-      GetLoadInfo(nsILoadInfo** aLoadInfo) override {
+  NS_IMETHOD GetOwner(nsISupports**) NO_IMPL;
+  NS_IMETHOD SetOwner(nsISupports*) NO_IMPL;
+  NS_IMETHOD GetLoadInfo(nsILoadInfo** aLoadInfo) override {
     nsCOMPtr<nsILoadInfo> copy = mLoadInfo;
     copy.forget(aLoadInfo);
     return NS_OK;
   }
   NS_IMETHOD SetLoadInfo(nsILoadInfo* aLoadInfo) override {
     mLoadInfo = aLoadInfo;
     return NS_OK;
   }
   NS_IMETHOD GetNotificationCallbacks(
       nsIInterfaceRequestor** aRequestor) override {
     NS_ADDREF(*aRequestor = this);
     return NS_OK;
   }
-  NS_IMETHOD SetNotificationCallbacks(nsIInterfaceRequestor*) NO_IMPL NS_IMETHOD
-      GetSecurityInfo(nsISupports**) NO_IMPL NS_IMETHOD
-      GetContentType(nsACString&) NO_IMPL NS_IMETHOD
-      SetContentType(const nsACString&) NO_IMPL NS_IMETHOD
-      GetContentCharset(nsACString&) NO_IMPL NS_IMETHOD
-      SetContentCharset(const nsACString&) NO_IMPL NS_IMETHOD
-      GetContentLength(int64_t*) NO_IMPL NS_IMETHOD
-      SetContentLength(int64_t) NO_IMPL NS_IMETHOD
-      Open(nsIInputStream**) NO_IMPL NS_IMETHOD
-      AsyncOpen(nsIStreamListener*) NO_IMPL NS_IMETHOD
-      GetContentDisposition(uint32_t*) NO_IMPL NS_IMETHOD
-      SetContentDisposition(uint32_t) NO_IMPL NS_IMETHOD
-      GetContentDispositionFilename(nsAString&) NO_IMPL NS_IMETHOD
-      SetContentDispositionFilename(const nsAString&) NO_IMPL NS_IMETHOD
-      GetContentDispositionHeader(nsACString&) NO_IMPL NS_IMETHOD
-      OnAuthAvailable(nsISupports* aContext,
-                      nsIAuthInformation* aAuthInfo) override;
+  NS_IMETHOD SetNotificationCallbacks(nsIInterfaceRequestor*) NO_IMPL;
+  NS_IMETHOD GetSecurityInfo(nsISupports**) NO_IMPL;
+  NS_IMETHOD GetContentType(nsACString&) NO_IMPL;
+  NS_IMETHOD SetContentType(const nsACString&) NO_IMPL;
+  NS_IMETHOD GetContentCharset(nsACString&) NO_IMPL;
+  NS_IMETHOD SetContentCharset(const nsACString&) NO_IMPL;
+  NS_IMETHOD GetContentLength(int64_t*) NO_IMPL;
+  NS_IMETHOD SetContentLength(int64_t) NO_IMPL;
+  NS_IMETHOD Open(nsIInputStream**) NO_IMPL;
+  NS_IMETHOD AsyncOpen(nsIStreamListener*) NO_IMPL;
+  NS_IMETHOD GetContentDisposition(uint32_t*) NO_IMPL;
+  NS_IMETHOD SetContentDisposition(uint32_t) NO_IMPL;
+  NS_IMETHOD GetContentDispositionFilename(nsAString&) NO_IMPL;
+  NS_IMETHOD SetContentDispositionFilename(const nsAString&) NO_IMPL;
+  NS_IMETHOD GetContentDispositionHeader(nsACString&) NO_IMPL;
+  NS_IMETHOD OnAuthAvailable(nsISupports* aContext,
+                             nsIAuthInformation* aAuthInfo) override;
   NS_IMETHOD OnAuthCancelled(nsISupports* aContext, bool userCancel) override;
   NS_IMETHOD GetInterface(const nsIID& uuid, void** result) override {
     return QueryInterface(uuid, result);
   }
-  NS_IMETHOD GetAssociatedWindow(mozIDOMWindowProxy**) NO_IMPL NS_IMETHOD
-      GetTopWindow(mozIDOMWindowProxy**) NO_IMPL NS_IMETHOD
-      GetTopFrameElement(Element** aElement) override {
+  NS_IMETHOD GetAssociatedWindow(mozIDOMWindowProxy**) NO_IMPL;
+  NS_IMETHOD GetTopWindow(mozIDOMWindowProxy**) NO_IMPL;
+  NS_IMETHOD GetTopFrameElement(Element** aElement) override {
     nsCOMPtr<Element> elem = mElement;
     elem.forget(aElement);
     return NS_OK;
   }
-  NS_IMETHOD GetNestedFrameId(uint64_t*) NO_IMPL NS_IMETHOD
-      GetIsContent(bool*) NO_IMPL NS_IMETHOD
-      GetUsePrivateBrowsing(bool*) NO_IMPL NS_IMETHOD
-      SetUsePrivateBrowsing(bool) NO_IMPL NS_IMETHOD
-      SetPrivateBrowsing(bool) NO_IMPL NS_IMETHOD
-      GetIsInIsolatedMozBrowserElement(bool*) NO_IMPL NS_IMETHOD
-      GetScriptableOriginAttributes(JSContext*, JS::MutableHandleValue) NO_IMPL
-      NS_IMETHOD_(void)
-          GetOriginAttributes(mozilla::OriginAttributes& aAttrs) override {}
-  NS_IMETHOD GetUseRemoteTabs(bool*) NO_IMPL NS_IMETHOD
-      SetRemoteTabs(bool) NO_IMPL NS_IMETHOD
-      GetUseTrackingProtection(bool*) NO_IMPL NS_IMETHOD
-      SetUseTrackingProtection(bool) NO_IMPL
+  NS_IMETHOD GetNestedFrameId(uint64_t*) NO_IMPL;
+  NS_IMETHOD GetIsContent(bool*) NO_IMPL;
+  NS_IMETHOD GetUsePrivateBrowsing(bool*) NO_IMPL;
+  NS_IMETHOD SetUsePrivateBrowsing(bool) NO_IMPL;
+  NS_IMETHOD SetPrivateBrowsing(bool) NO_IMPL;
+  NS_IMETHOD GetIsInIsolatedMozBrowserElement(bool*) NO_IMPL;
+  NS_IMETHOD GetScriptableOriginAttributes(JSContext*,
+                                           JS::MutableHandleValue) NO_IMPL;
+  NS_IMETHOD_(void)
+  GetOriginAttributes(mozilla::OriginAttributes& aAttrs) override {}
+  NS_IMETHOD GetUseRemoteTabs(bool*) NO_IMPL;
+  NS_IMETHOD SetRemoteTabs(bool) NO_IMPL;
+  NS_IMETHOD GetUseTrackingProtection(bool*) NO_IMPL;
+  NS_IMETHOD SetUseTrackingProtection(bool) NO_IMPL;
 #undef NO_IMPL
 
-      protected : ~FakeChannel() {
-  }
+ protected:
+  ~FakeChannel() {}
 
   nsCOMPtr<nsIURI> mUri;
   uint64_t mCallbackId;
   nsCOMPtr<Element> mElement;
   nsCOMPtr<nsILoadInfo> mLoadInfo;
 };
 
 NS_IMPL_ISUPPORTS(FakeChannel, nsIChannel, nsIAuthPromptCallback, nsIRequest,