Index: Source/core/platform/network/chromium/SocketStreamError.h |
diff --git a/Source/core/platform/network/chromium/SocketStreamError.h b/Source/core/platform/network/chromium/SocketStreamError.h |
index 540496b4eb98b9447638e29b462358b3c9df9759..9a34adcf1da19803328c10d3b80f08712fa1ef9e 100644 |
--- a/Source/core/platform/network/chromium/SocketStreamError.h |
+++ b/Source/core/platform/network/chromium/SocketStreamError.h |
@@ -32,14 +32,23 @@ |
#define SocketStreamError_h |
#include "SocketStreamErrorBase.h" |
+#include <wtf/PassRefPtr.h> |
+#include <wtf/RefCounted.h> |
namespace WebCore { |
-class SocketStreamError : public SocketStreamErrorBase { |
+class SocketStreamError : public RefCounted<SocketStreamError>, public SocketStreamErrorBase { |
public: |
- SocketStreamError() { } |
- explicit SocketStreamError(int errorCode) |
- : SocketStreamErrorBase(errorCode) { } |
+ static PassRefPtr<SocketStreamError> create(int errorCode, const String& errorMessage) |
+ { |
+ return adoptRef(new SocketStreamError(errorCode, errorMessage)); |
+ } |
+ |
+private: |
+ SocketStreamError(int errorCode, const String& errorMessage) |
+ : SocketStreamErrorBase(errorCode, String(), errorMessage) |
+ { |
+ } |
}; |
} // namespace WebCore |