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

Unified Diff: Source/modules/background_sync/SyncError.h

Issue 963683002: Add IDL and initial Blink API for Background Sync (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add missing serviceWorkerRegistration.syncManager to interface tests Created 5 years, 9 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
« no previous file with comments | « Source/modules/background_sync/SyncCallbacks.cpp ('k') | Source/modules/background_sync/SyncError.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/background_sync/SyncError.h
diff --git a/Source/modules/push_messaging/PushError.h b/Source/modules/background_sync/SyncError.h
similarity index 48%
copy from Source/modules/push_messaging/PushError.h
copy to Source/modules/background_sync/SyncError.h
index d7f87c3d5d4add04ad63f1aab2b53da0f1ceb027..0e9e036221d2bcbb41f1ae71c1622683c7f26e00 100644
--- a/Source/modules/push_messaging/PushError.h
+++ b/Source/modules/background_sync/SyncError.h
@@ -1,30 +1,30 @@
-// 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 PushError_h
-#define PushError_h
+#ifndef SyncError_h
+#define SyncError_h
#include "core/dom/DOMException.h"
#include "platform/heap/Handle.h"
-#include "public/platform/modules/push_messaging/WebPushError.h"
+#include "public/platform/modules/background_sync/WebSyncError.h"
namespace blink {
class ScriptPromiseResolver;
-class PushError {
- WTF_MAKE_NONCOPYABLE(PushError);
+class SyncError {
+ WTF_MAKE_NONCOPYABLE(SyncError);
public:
// For CallbackPromiseAdapter.
- typedef WebPushError WebType;
- static PassRefPtrWillBeRawPtr<DOMException> take(ScriptPromiseResolver*, WebType* webErrorRaw);
- static void dispose(WebType* webErrorRaw);
+ using WebType = WebSyncError;
+ static PassRefPtrWillBeRawPtr<DOMException> take(ScriptPromiseResolver*, WebType*);
+ static void dispose(WebType*);
private:
- PushError() = delete;
+ SyncError() = delete;
};
} // namespace blink
-#endif // PushError_h
+#endif // SyncError_h
« no previous file with comments | « Source/modules/background_sync/SyncCallbacks.cpp ('k') | Source/modules/background_sync/SyncError.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698