| 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..6df2c01df5191e3519ad60f9b28db85db7edba35
|
| --- /dev/null
|
| +++ b/Source/modules/pushmessaging/PushMessagingError.cpp
|
| @@ -0,0 +1,22 @@
|
| +// 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();
|
| +}
|
| +
|
| +} // namespace WebCore
|
|
|