summaryrefslogtreecommitdiffstats
path: root/netwerk/base/nsIncrementalStreamLoader.h
diff options
context:
space:
mode:
Diffstat (limited to 'netwerk/base/nsIncrementalStreamLoader.h')
-rw-r--r--netwerk/base/nsIncrementalStreamLoader.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/netwerk/base/nsIncrementalStreamLoader.h b/netwerk/base/nsIncrementalStreamLoader.h
index f04d4a958..0e2b532e6 100644
--- a/netwerk/base/nsIncrementalStreamLoader.h
+++ b/netwerk/base/nsIncrementalStreamLoader.h
@@ -47,8 +47,9 @@ protected:
// available.
mozilla::Vector<uint8_t, 0> mData;
- // Number of consumed bytes from the mData.
- size_t mBytesConsumed;
+ // Number of bytes read, which may differ from the number of bytes in mData,
+ // since we incrementally remove from there.
+ mozilla::Atomic<uint32_t, mozilla::Relaxed> mBytesRead;
};
#endif // nsIncrementalStreamLoader_h__