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

Unified Diff: Source/modules/pushmessaging/PushMessagingError.cpp

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: Source/modules/pushmessaging/PushMessagingError.cpp
diff --git a/Source/modules/pushmessaging/PushMessagingError.cpp b/Source/modules/pushmessaging/PushMessagingError.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..2f62528ac359591e40045a49e024df6177ce52a2
--- /dev/null
+++ b/Source/modules/pushmessaging/PushMessagingError.cpp
@@ -0,0 +1,21 @@
+// 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.
+
+#include "config.h"
+#include "PushMessagingError.h"
+
+namespace WebCore {
+
+String PushMessagingError::errorString(blink::WebPushMessagingError::ErrorType type)
+{
+ switch (type) {
+ case blink::WebPushMessagingError::AbortError:
+ return "AbortError";
+ case blink::WebPushMessagingError::UnknownError:
+ return "UnknownError";
+ }
+ ASSERT_NOT_REACHED();
+ return String();
+}
+}
Peter Beverloo 2014/03/10 13:59:28 micro nit: new line, optionally "// namespace WebC
Michael van Ouwerkerk 2014/03/10 15:12:04 Done.

Powered by Google App Engine
This is Rietveld 408576698