зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1641270 - Part 7: Add setter/getter of nsICookieJarSettings to nsITransferable. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D95617
This commit is contained in:
Родитель
7ec26df273
Коммит
29562a4eed
|
@ -9,6 +9,7 @@
|
|||
#include "nsIFormatConverter.idl"
|
||||
#include "nsIContentPolicy.idl"
|
||||
|
||||
interface nsICookieJarSettings;
|
||||
interface nsIPrincipal;
|
||||
|
||||
%{ C++
|
||||
|
@ -195,4 +196,9 @@ interface nsITransferable : nsISupports
|
|||
[notxpcom, nostdcall] attribute nsIPrincipal requestingPrincipal;
|
||||
[notxpcom, nostdcall] attribute nsContentPolicyType contentPolicyType;
|
||||
|
||||
/**
|
||||
* The cookieJarSettings of the source dom node this transferable was created
|
||||
* from.
|
||||
*/
|
||||
[notxpcom, nostdcall] attribute nsICookieJarSettings cookieJarSettings;
|
||||
};
|
||||
|
|
|
@ -516,3 +516,16 @@ void nsTransferable::SetContentPolicyType(
|
|||
|
||||
mContentPolicyType = aContentPolicyType;
|
||||
}
|
||||
|
||||
nsICookieJarSettings* nsTransferable::GetCookieJarSettings() {
|
||||
MOZ_ASSERT(mInitialized);
|
||||
|
||||
return mCookieJarSettings;
|
||||
}
|
||||
|
||||
void nsTransferable::SetCookieJarSettings(
|
||||
nsICookieJarSettings* aCookieJarSettings) {
|
||||
MOZ_ASSERT(mInitialized);
|
||||
|
||||
mCookieJarSettings = aCookieJarSettings;
|
||||
}
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
#ifndef nsTransferable_h__
|
||||
#define nsTransferable_h__
|
||||
|
||||
#include "nsICookieJarSettings.h"
|
||||
#include "nsIFormatConverter.h"
|
||||
#include "nsITransferable.h"
|
||||
#include "nsCOMPtr.h"
|
||||
|
@ -79,6 +80,7 @@ class nsTransferable : public nsITransferable {
|
|||
bool mPrivateData;
|
||||
nsCOMPtr<nsIPrincipal> mRequestingPrincipal;
|
||||
nsContentPolicyType mContentPolicyType;
|
||||
nsCOMPtr<nsICookieJarSettings> mCookieJarSettings;
|
||||
#if DEBUG
|
||||
bool mInitialized;
|
||||
#endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче