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

Unified Diff: public/platform/modules/background_sync/WebSyncError.h

Issue 950013002: Add platform files for Background Sync API (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Make platform methods pure virtual Created 5 years, 10 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: 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 64%
copy from public/platform/modules/push_messaging/WebPushError.h
copy to public/platform/modules/background_sync/WebSyncError.h
index 912e30bedd4eea1cd8a561717ae1c15b98627586..cf537ad304dd119a19d82831846dafced3270600 100644
--- a/public/platform/modules/push_messaging/WebPushError.h
+++ b/public/platform/modules/background_sync/WebSyncError.h
@@ -1,24 +1,24 @@
-// 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,
+ ErrorTypeNoPermission,
ErrorTypeNotFound,
ErrorTypeUnknown,
ErrorTypeLast = ErrorTypeUnknown
};
- WebPushError(ErrorType errorType, const WebString& message)
+ WebSyncError(ErrorType errorType, const WebString& message)
: errorType(errorType)
, message(message)
{
@@ -30,4 +30,4 @@ struct WebPushError {
} // namespace blink
-#endif // WebPushError_h
+#endif // WebSyncError_h
« no previous file with comments | « public/platform/modules/background_sync/WebSyncClient.h ('k') | public/platform/modules/background_sync/WebSyncProvider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698