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

Side by Side Diff: third_party/WebKit/Source/modules/background_sync/SyncError.h

Issue 2481393002: [background-sync] Remove WebSyncError and SyncCallbacks (Closed)
Patch Set: Rebase Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SyncError_h 5 #ifndef SyncError_h
6 #define SyncError_h 6 #define SyncError_h
7 7
8 #include "core/dom/DOMException.h" 8 #include "core/dom/DOMException.h"
9 #include "platform/heap/Handle.h"
10 #include "public/platform/modules/background_sync/WebSyncError.h"
11 #include "wtf/Allocator.h"
12 9
13 namespace blink { 10 namespace blink {
14 11
15 class ScriptPromiseResolver; 12 class ScriptPromiseResolver;
16 13
17 class SyncError { 14 class SyncError {
jbroman 2016/11/18 16:53:32 Is this class still useful? It seems to just be a
adithyas 2016/11/18 20:05:00 +1, I'll get rid of it. Now that I look at it agai
18 STATIC_ONLY(SyncError); 15 public:
16 enum ErrorType {
17 ErrorTypeAbort = 0,
18 ErrorTypeNoPermission,
19 ErrorTypeNotFound,
20 ErrorTypePermissionDenied,
21 ErrorTypeUnknown,
22 ErrorTypeLast = ErrorTypeUnknown
23 };
19 24
20 public: 25 SyncError(ErrorType, const String&);
21 static DOMException* take(ScriptPromiseResolver*, const WebSyncError&); 26
27 static DOMException* take(ScriptPromiseResolver*, const SyncError&);
28
29 ErrorType m_errorType;
30 String m_message;
22 }; 31 };
23 32
24 } // namespace blink 33 } // namespace blink
25 34
26 #endif // SyncError_h 35 #endif // SyncError_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698