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

Unified Diff: public/platform/WebPushMessagingError.h

Issue 152763002: DO NOT REVIEW Bindings and plumbing for push messaging API. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Flip flag to experimental. Created 6 years, 9 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/WebPushMessagingError.h
diff --git a/public/platform/WebPushMessagingError.h b/public/platform/WebPushMessagingError.h
new file mode 100644
index 0000000000000000000000000000000000000000..b56fc5fc51387583e0afcffabc636d1e8d450460
--- /dev/null
+++ b/public/platform/WebPushMessagingError.h
@@ -0,0 +1,31 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WebPushMessagingError_h
+#define WebPushMessagingError_h
+
+#include "WebString.h"
+
+namespace blink {
+
+struct WebPushMessagingError {
+ enum ErrorType {
+ AbortError = 0,
+ UnknownError,
+ ErrorTypeLast = UnknownError
Peter Beverloo 2014/03/10 13:59:28 ErrorTypeLast isn't used anywhere, what do we need
+ };
+
+ WebPushMessagingError(ErrorType errorType, const WebString& message)
+ : errorType(errorType)
+ , message(message)
+ {
+ }
+
+ ErrorType errorType;
+ WebString message;
+};
+
+} // namespace blink
+
+#endif // WebPushMessagingError_h

Powered by Google App Engine
This is Rietveld 408576698