Bug 1607866 - Add Get/SetTRRMode() (see Bug 1552176) to c-c nsIRequest implementations. r=mkmelin
authorBen Campbell <benc@thunderbird.net>
Thu, 09 Jan 2020 09:08:47 +1300
changeset 37920 3daf6e6b3f9e60b609a965afc5ffb30e204f5bad
parent 37919 c21622941d4bc9a922cf046ced1e1c4d86b31590
child 37921 8144aa335452df7ed2e86a68114d6dee632609d8
push id398
push userclokep@gmail.com
push dateMon, 09 Mar 2020 19:10:28 +0000
reviewersmkmelin
bugs1607866, 1552176
Bug 1607866 - Add Get/SetTRRMode() (see Bug 1552176) to c-c nsIRequest implementations. r=mkmelin
mailnews/base/util/nsMsgProtocol.cpp
mailnews/imap/src/nsImapProtocol.cpp
mailnews/mime/cthandlers/pgpmime/nsPgpMimeProxy.cpp
mailnews/news/src/nsNntpMockChannel.cpp
--- a/mailnews/base/util/nsMsgProtocol.cpp
+++ b/mailnews/base/util/nsMsgProtocol.cpp
@@ -497,16 +497,24 @@ nsresult nsMsgProtocol::SetUrl(nsIURI *a
   return NS_OK;
 }
 
 NS_IMETHODIMP nsMsgProtocol::SetLoadGroup(nsILoadGroup *aLoadGroup) {
   m_loadGroup = aLoadGroup;
   return NS_OK;
 }
 
+NS_IMETHODIMP nsMsgProtocol::GetTRRMode(nsIRequest::TRRMode* aTRRMode) {
+  return GetTRRModeImpl(aTRRMode);
+}
+
+NS_IMETHODIMP nsMsgProtocol::SetTRRMode(nsIRequest::TRRMode aTRRMode) {
+  return SetTRRModeImpl(aTRRMode);
+}
+
 NS_IMETHODIMP nsMsgProtocol::GetOriginalURI(nsIURI **aURI) {
   NS_IF_ADDREF(*aURI = m_originalUrl ? m_originalUrl : m_url);
   return NS_OK;
 }
 
 NS_IMETHODIMP nsMsgProtocol::SetOriginalURI(nsIURI *aURI) {
   m_originalUrl = aURI;
   return NS_OK;
--- a/mailnews/imap/src/nsImapProtocol.cpp
+++ b/mailnews/imap/src/nsImapProtocol.cpp
@@ -8557,16 +8557,24 @@ NS_IMETHODIMP nsImapMockChannel::SetLoad
   return NS_OK;
 }
 
 NS_IMETHODIMP nsImapMockChannel::GetLoadGroup(nsILoadGroup **aLoadGroup) {
   NS_IF_ADDREF(*aLoadGroup = m_loadGroup);
   return NS_OK;
 }
 
+NS_IMETHODIMP nsImapMockChannel::GetTRRMode(nsIRequest::TRRMode* aTRRMode) {
+  return GetTRRModeImpl(aTRRMode);
+}
+
+NS_IMETHODIMP nsImapMockChannel::SetTRRMode(nsIRequest::TRRMode aTRRMode) {
+  return SetTRRModeImpl(aTRRMode);
+}
+
 NS_IMETHODIMP nsImapMockChannel::GetLoadInfo(nsILoadInfo **aLoadInfo) {
   NS_IF_ADDREF(*aLoadInfo = m_loadInfo);
   return NS_OK;
 }
 
 NS_IMETHODIMP nsImapMockChannel::SetLoadInfo(nsILoadInfo *aLoadInfo) {
   m_loadInfo = aLoadInfo;
   return NS_OK;
--- a/mailnews/mime/cthandlers/pgpmime/nsPgpMimeProxy.cpp
+++ b/mailnews/mime/cthandlers/pgpmime/nsPgpMimeProxy.cpp
@@ -461,16 +461,26 @@ nsPgpMimeProxy::GetLoadGroup(nsILoadGrou
 
 NS_IMETHODIMP
 nsPgpMimeProxy::SetLoadGroup(nsILoadGroup *aLoadGroup) {
   mLoadGroup = aLoadGroup;
   return NS_OK;
 }
 
 NS_IMETHODIMP
+nsPgpMimeProxy::GetTRRMode(nsIRequest::TRRMode* aTRRMode) {
+  return GetTRRModeImpl(aTRRMode);
+}
+
+NS_IMETHODIMP
+nsPgpMimeProxy::SetTRRMode(nsIRequest::TRRMode aTRRMode) {
+  return SetTRRModeImpl(aTRRMode);
+}
+
+NS_IMETHODIMP
 nsPgpMimeProxy::GetLoadFlags(nsLoadFlags *aLoadFlags) {
   *aLoadFlags = mLoadFlags;
   return NS_OK;
 }
 
 NS_IMETHODIMP
 nsPgpMimeProxy::SetLoadFlags(nsLoadFlags aLoadFlags) {
   mLoadFlags = aLoadFlags;
--- a/mailnews/news/src/nsNntpMockChannel.cpp
+++ b/mailnews/news/src/nsNntpMockChannel.cpp
@@ -91,16 +91,24 @@ NS_IMETHODIMP nsNntpMockChannel::SetLoad
 }
 
 NS_IMETHODIMP nsNntpMockChannel::GetLoadGroup(nsILoadGroup **aLoadGroup) {
   FORWARD_CALL(GetLoadGroup, aLoadGroup)
   NS_IF_ADDREF(*aLoadGroup = m_loadGroup);
   return NS_OK;
 }
 
+NS_IMETHODIMP nsNntpMockChannel::GetTRRMode(nsIRequest::TRRMode* aTRRMode) {
+  return GetTRRModeImpl(aTRRMode);
+}
+
+NS_IMETHODIMP nsNntpMockChannel::SetTRRMode(nsIRequest::TRRMode aTRRMode) {
+  return SetTRRModeImpl(aTRRMode);
+}
+
 NS_IMETHODIMP nsNntpMockChannel::GetLoadFlags(nsLoadFlags *aLoadFlags) {
   FORWARD_CALL(GetLoadFlags, aLoadFlags)
   *aLoadFlags = m_loadFlags;
   return NS_OK;
 }
 
 NS_IMETHODIMP nsNntpMockChannel::SetLoadFlags(nsLoadFlags aLoadFlags) {
   FORWARD_CALL(SetLoadFlags, aLoadFlags)