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

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: Fix string threadsafety, ownership model 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/WebGraphicsContext3DProvider.h b/public/platform/WebServiceWorkerError.h
similarity index 82%
copy from public/platform/WebGraphicsContext3DProvider.h
copy to public/platform/WebServiceWorkerError.h
index dba2216773526377c53b27a9d6830bce0c25fc48..05d66696f5277990c66600a0c2fcdfb30ab06c63 100644
--- a/public/platform/WebGraphicsContext3DProvider.h
+++ b/public/platform/WebServiceWorkerError.h
@@ -28,22 +28,23 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebGraphicsContext3DProvider_h
-#define WebGraphicsContext3DProvider_h
+#ifndef WebServiceWorkerError_h
+#define WebServiceWorkerError_h
-#include "WebCommon.h"
-
-class GrContext;
+#include "WebString.h"
namespace WebKit {
-class WebGraphicsContext3D;
-class WebGraphicsContext3DProvider {
-public:
- virtual ~WebGraphicsContext3DProvider() { }
+struct WebServiceWorkerError {
+ enum ErrorType {
+ RegistrationError = 0,
kinuko 2013/10/16 01:46:30 This looks to be more like 'error category' than '
+ };
+
+ WebServiceWorkerError(ErrorType errorType, const WebString& message)
+ : errorType(errorType), message(message) { }
- virtual WebGraphicsContext3D* context3d() = 0;
- virtual GrContext* grContext() = 0;
+ ErrorType errorType;
+ WebString message;
};
} // namespace WebKit

Powered by Google App Engine
This is Rietveld 408576698