Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / modules / push_messaging / PushError.cpp
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "config.h"
6 #include "modules/push_messaging/PushError.h"
7
8 namespace WebCore {
9
10 String PushError::errorString(blink::WebPushError::ErrorType type)
11 {
12     switch (type) {
13     case blink::WebPushError::ErrorTypeAbort:
14         return "AbortError";
15     case blink::WebPushError::ErrorTypeUnknown:
16         return "UnknownError";
17     }
18     ASSERT_NOT_REACHED();
19     return String();
20 }
21
22 } // namespace WebCore