Chromium Code Reviews| Index: public/platform/modules/background_sync/WebSyncError.h |
| diff --git a/public/platform/modules/push_messaging/WebPushError.h b/public/platform/modules/background_sync/WebSyncError.h |
| similarity index 61% |
| copy from public/platform/modules/push_messaging/WebPushError.h |
| copy to public/platform/modules/background_sync/WebSyncError.h |
| index 912e30bedd4eea1cd8a561717ae1c15b98627586..c85ffe344e941572af00f2c5fd8e19fa19d03d1f 100644 |
| --- a/public/platform/modules/push_messaging/WebPushError.h |
| +++ b/public/platform/modules/background_sync/WebSyncError.h |
| @@ -1,24 +1,23 @@ |
| -// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Copyright 2015 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 WebPushError_h |
| -#define WebPushError_h |
| +#ifndef WebSyncError_h |
| +#define WebSyncError_h |
| #include "public/platform/WebString.h" |
| namespace blink { |
| -struct WebPushError { |
| +struct WebSyncError { |
| enum ErrorType { |
| ErrorTypeAbort = 0, |
| - ErrorTypeNetwork, |
| - ErrorTypeNotFound, |
| + ErrorTypeNoPermission, |
| ErrorTypeUnknown, |
|
jkarlin
2015/02/23 20:10:32
Can you add ErrorTypeNotFound for the upcoming unr
iclelland
2015/02/23 21:18:47
Done.
|
| ErrorTypeLast = ErrorTypeUnknown |
| }; |
| - WebPushError(ErrorType errorType, const WebString& message) |
| + WebSyncError(ErrorType errorType, const WebString& message) |
| : errorType(errorType) |
| , message(message) |
| { |
| @@ -30,4 +29,4 @@ struct WebPushError { |
| } // namespace blink |
| -#endif // WebPushError_h |
| +#endif // WebSyncError_h |