Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2336)

Unified Diff: public/platform/WebServiceWorkerError.h

Issue 27278002: Add an Error class for ServiceWorkers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698