summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/SharedBuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform/SharedBuffer.h')
-rw-r--r--Source/WebCore/platform/SharedBuffer.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/WebCore/platform/SharedBuffer.h b/Source/WebCore/platform/SharedBuffer.h
index dfde5a1..f7318e3 100644
--- a/Source/WebCore/platform/SharedBuffer.h
+++ b/Source/WebCore/platform/SharedBuffer.h
@@ -97,6 +97,10 @@ public:
const char* platformData() const;
unsigned platformDataSize() const;
+#if HAVE(CFNETWORK_DATA_ARRAY_CALLBACK)
+ void append(CFDataRef);
+#endif
+
PassRefPtr<SharedBuffer> copy() const;
bool hasPurgeableBuffer() const { return m_purgeableBuffer.get(); }
@@ -138,6 +142,10 @@ private:
mutable Vector<char> m_buffer;
mutable Vector<char*> m_segments;
OwnPtr<PurgeableBuffer> m_purgeableBuffer;
+#if HAVE(CFNETWORK_DATA_ARRAY_CALLBACK)
+ mutable Vector<RetainPtr<CFDataRef> > m_dataArray;
+ void copyDataArrayAndClear(char *destination, unsigned bytesToCopy) const;
+#endif
#if USE(CF)
SharedBuffer(CFDataRef);
RetainPtr<CFDataRef> m_cfData;