Index: public/platform/WebServiceWorkerError.h |
diff --git a/public/platform/WebCallbacks.h b/public/platform/WebServiceWorkerError.h |
similarity index 86% |
copy from public/platform/WebCallbacks.h |
copy to public/platform/WebServiceWorkerError.h |
index ba023d32cce145c7a5cf7f38e9693a86f6a8bff3..fafb3c0c572a86ab364151138e9bfe08dedd5e79 100644 |
--- a/public/platform/WebCallbacks.h |
+++ b/public/platform/WebServiceWorkerError.h |
@@ -28,17 +28,18 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-#ifndef WebCallbacks_h |
-#define WebCallbacks_h |
+#ifndef WebServiceWorkerError_h |
+#define WebServiceWorkerError_h |
+ |
+#include "WebString.h" |
namespace WebKit { |
-template<typename S, typename T> |
-class WebCallbacks { |
+class WebServiceWorkerError { |
public: |
- virtual ~WebCallbacks() { }; |
- virtual void onSuccess(S*) { }; |
- virtual void onError(T*) { }; |
+ virtual ~WebServiceWorkerError() { }; |
+ virtual const WebString& message() = 0; |
michaeln
2013/10/15 01:28:48
It might be better/safer/easier-to-code-to to retu
|
+ virtual const WebString& name() = 0; |
michaeln
2013/10/15 01:28:48
We'll have to be careful about the 'name' values.
kinuko
2013/10/15 01:43:09
Does this need to be a pure abstract virtual class
kinuko
2013/10/15 02:07:17
+1 to have numeric error codes (unless we have oth
|
}; |
} // namespace WebKit |