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

Side by Side Diff: Source/bindings/core/v8/RejectedPromises.h

Issue 897523002: Handle rejected promises better for workers. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: tidying 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 unified diff | Download patch
« no previous file with comments | « no previous file | Source/bindings/core/v8/RejectedPromises.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef RejectedPromises_h
6 #define RejectedPromises_h
7
8 #include "platform/heap/Handle.h"
9
10 namespace v8 {
11 class PromiseRejectMessage;
12 };
13
14 namespace blink {
15
16 class ScriptCallStack;
17 class ScriptState;
18
19 class RejectedPromises final : public NoBaseWillBeGarbageCollected<RejectedPromi ses> {
20 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(RejectedPromises);
21 public:
22 static PassOwnPtrWillBeRawPtr<RejectedPromises> create()
23 {
24 return adoptPtrWillBeNoop(new RejectedPromises);
25 }
26
27 RejectedPromises();
28 void dispose();
29 void trace(Visitor*);
30
31 void add(ScriptState*, v8::PromiseRejectMessage, const String& errorMessage, const String& resourceName, int scriptId, int lineNumber, int columnNumber, Pas sRefPtrWillBeRawPtr<ScriptCallStack>);
32
33 void processQueue();
34
35 private:
36 class Message;
37 WillBeHeapDeque<OwnPtrWillBeMember<Message>> m_queue;
38 };
39
40 } // namespace blink
41
42 #endif // RejectedPromises_h
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/core/v8/RejectedPromises.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698