Index: webkit/glue/websocketstreamhandle_delegate.h |
diff --git a/webkit/glue/websocketstreamhandle_delegate.h b/webkit/glue/websocketstreamhandle_delegate.h |
index 272538d7f889433b3b28eb7067d51c7692edabda..73c32e2dddc90095cf081704f87ebb429d629356 100644 |
--- a/webkit/glue/websocketstreamhandle_delegate.h |
+++ b/webkit/glue/websocketstreamhandle_delegate.h |
@@ -5,6 +5,8 @@ |
#ifndef WEBKIT_GLUE_WEBSOCKETSTREAMHANDLE_DELEGATE_H_ |
#define WEBKIT_GLUE_WEBSOCKETSTREAMHANDLE_DELEGATE_H_ |
+#include "base/string16.h" |
+ |
class GURL; |
namespace WebKit { |
@@ -29,6 +31,9 @@ class WebSocketStreamHandleDelegate { |
virtual void DidReceiveData(WebKit::WebSocketStreamHandle* handle, |
const char* data, int len) {} |
virtual void DidClose(WebKit::WebSocketStreamHandle*) {} |
+ virtual void DidFail(WebKit::WebSocketStreamHandle* handle, |
+ int error_code, |
+ const string16& error_msg) {} |
protected: |
virtual ~WebSocketStreamHandleDelegate() {} |