2008-03-19 Brady Eidson <beidson@apple.com>
[WebKit-https.git] / WebCore / platform / SharedBuffer.h
index 45d93e84e2fdc6a4e61d8a85d2d3f382d78ab3bc..e7dcc1d1a099cab73d21087a67b9b5b18d089944 100644 (file)
@@ -53,10 +53,12 @@ public:
     
 #if PLATFORM(MAC)
     NSData *createNSData();
-    CFDataRef createCFData();
     static PassRefPtr<SharedBuffer> wrapNSData(NSData *data);
 #endif
-        
+#if PLATFORM(CF)
+    CFDataRef createCFData();
+#endif
+
     const char* data() const;
     unsigned size() const;
     const Vector<char> &buffer() { return m_buffer; }
@@ -80,9 +82,9 @@ private:
     bool hasPlatformData() const;
     
     Vector<char> m_buffer;
-#if PLATFORM(MAC)
-    SharedBuffer(NSData *nsdata);
-    RetainPtr<NSData> m_nsData;
+#if PLATFORM(CF)
+    SharedBuffer(CFDataRef);
+    RetainPtr<CFDataRef> m_cfData;
 #endif
 };