<rdar://problem/5453494> Better lifetime management of WebDataSource and...
[WebKit-https.git] / WebKit / win / WebDocumentLoader.h
index ac9c3054e19f2d3984c059bf40d423bf965030b9..e6e628af6bf5d96d78085175c9ce9b11c7a66f65 100644 (file)
@@ -25,8 +25,6 @@
 
 #include "WebDataSource.h"
 
-#include "COMPtr.h"
-
 #pragma warning(push, 0)
 #include <WebCore/DocumentLoader.h>
 #pragma warning(pop)
@@ -35,14 +33,16 @@ class WebDocumentLoader : public WebCore::DocumentLoader
 {
 public:
     WebDocumentLoader(const WebCore::ResourceRequest&, const WebCore::SubstituteData&);
+    ~WebDocumentLoader();
 
     void setDataSource(WebDataSource*);
     WebDataSource* dataSource() const;
+    void detachDataSource();
 
     virtual void attachToFrame();
     virtual void detachFromFrame();
 
 private:
-    COMPtr<WebDataSource> m_dataSource;
+    WebDataSource* m_dataSource;
     WebDataSource* m_detachedDataSource; // not retained
 };