Bug 1478742 - IPDLize nsDocShellLoadState; r=nika

Differential Revision: https://phabricator.services.mozilla.com/D13958
This commit is contained in:
Kyle Machulis
2018-12-19 22:22:09 +00:00
parent ae27c4df35
commit 2e98bae337
8 changed files with 168 additions and 4 deletions

View File

@@ -18,6 +18,12 @@ class nsISHEntry;
class nsIURI;
class nsIDocShell;
class OriginAttibutes;
namespace mozilla {
namespace dom {
class DocShellLoadStateInit;
}
}
/**
* nsDocShellLoadState contains setup information used in a nsIDocShell::loadURI
@@ -28,6 +34,7 @@ class nsDocShellLoadState final {
NS_INLINE_DECL_REFCOUNTING(nsDocShellLoadState);
explicit nsDocShellLoadState(nsIURI* aURI);
explicit nsDocShellLoadState(mozilla::dom::DocShellLoadStateInit& aLoadState);
// Getters and Setters
@@ -172,7 +179,7 @@ class nsDocShellLoadState final {
void SetIsFromProcessingFrameAttributes() {
mIsFromProcessingFrameAttributes = true;
}
bool GetIsFromProcessingFrameAttributes() {
bool GetIsFromProcessingFrameAttributes() const {
return mIsFromProcessingFrameAttributes;
}
@@ -182,6 +189,7 @@ class nsDocShellLoadState final {
// nsDocShell::InternalLoad.
void CalculateLoadURIFlags();
mozilla::dom::DocShellLoadStateInit Serialize();
protected:
// Destructor can't be defaulted or inlined, as header doesn't have all type
// includes it needs to do so.