Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / public / platform / modules / push_messaging / WebPushError.h
blobbf048ec6a2ac75778e3e510f6c457030c3934e47
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.
5 #ifndef WebPushError_h
6 #define WebPushError_h
8 #include "public/platform/WebString.h"
10 namespace blink {
12 struct WebPushError {
13 enum ErrorType {
14 ErrorTypeAbort = 0,
15 ErrorTypeNetwork,
16 ErrorTypeNotFound,
17 ErrorTypeNotSupported,
18 ErrorTypePermissionDenied,
19 ErrorTypeUnknown,
20 ErrorTypeLast = ErrorTypeUnknown
23 WebPushError(ErrorType errorType, const WebString& message)
24 : errorType(errorType)
25 , message(message)
29 ErrorType errorType;
30 WebString message;
33 } // namespace blink
35 #endif // WebPushError_h