mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
Bug 1167396 - Make ProtocolCloneContext::mContentParent a smart pointer. r=bent
This commit is contained in:
parent
1e1b34f388
commit
4dc87f0a9b
@ -26,6 +26,18 @@ using base::ProcessId;
|
||||
namespace mozilla {
|
||||
namespace ipc {
|
||||
|
||||
ProtocolCloneContext::ProtocolCloneContext()
|
||||
: mNeckoParent(nullptr)
|
||||
{}
|
||||
|
||||
ProtocolCloneContext::~ProtocolCloneContext()
|
||||
{}
|
||||
|
||||
void ProtocolCloneContext::SetContentParent(ContentParent* aContentParent)
|
||||
{
|
||||
mContentParent = aContentParent;
|
||||
}
|
||||
|
||||
static StaticMutex gProtocolMutex;
|
||||
|
||||
IToplevelProtocol::IToplevelProtocol(ProtocolId aProtoId)
|
||||
|
@ -126,19 +126,15 @@ class ProtocolCloneContext
|
||||
typedef mozilla::dom::ContentParent ContentParent;
|
||||
typedef mozilla::net::NeckoParent NeckoParent;
|
||||
|
||||
ContentParent* mContentParent;
|
||||
nsRefPtr<ContentParent> mContentParent;
|
||||
NeckoParent* mNeckoParent;
|
||||
|
||||
public:
|
||||
ProtocolCloneContext()
|
||||
: mContentParent(nullptr)
|
||||
, mNeckoParent(nullptr)
|
||||
{}
|
||||
ProtocolCloneContext();
|
||||
|
||||
void SetContentParent(ContentParent* aContentParent)
|
||||
{
|
||||
mContentParent = aContentParent;
|
||||
}
|
||||
~ProtocolCloneContext();
|
||||
|
||||
void SetContentParent(ContentParent* aContentParent);
|
||||
|
||||
ContentParent* GetContentParent() { return mContentParent; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user