Bug 1167380 - Mark (Read/Write)SegmentsState::m(Source/Sink) as MOZ_NON_OWNING_REF and mark as MOZ_STACK_CLASS. r=froydnj

This commit is contained in:
Michael Layzell 2015-05-28 08:32:00 -04:00
Родитель a7801d38be
Коммит 8b31d0676c
1 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

@ -495,9 +495,10 @@ public:
{
}
struct ReadSegmentsState
struct MOZ_STACK_CLASS ReadSegmentsState
{
nsIOutputStream* mSink;
// the nsIOutputStream will outlive the ReadSegmentsState on the stack
nsIOutputStream* MOZ_NON_OWNING_REF mSink;
nsresult mSinkCondition;
};
@ -544,9 +545,10 @@ public:
{
}
struct WriteSegmentsState
struct MOZ_STACK_CLASS WriteSegmentsState
{
nsIInputStream* mSource;
// the nsIInputStream will outlive the WriteSegmentsState on the stack
nsIInputStream* MOZ_NON_OWNING_REF mSource;
nsresult mSourceCondition;
};