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

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

Issue 1095943002: DevTools: [console] Logged promise rejections do not change state once handled (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: for landing Created 5 years, 8 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
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 RejectedPromises_h 5 #ifndef RejectedPromises_h
6 #define RejectedPromises_h 6 #define RejectedPromises_h
7 7
8 #include "platform/heap/Handle.h" 8 #include "platform/heap/Handle.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 10 matching lines...) Expand all
21 public: 21 public:
22 static PassOwnPtrWillBeRawPtr<RejectedPromises> create() 22 static PassOwnPtrWillBeRawPtr<RejectedPromises> create()
23 { 23 {
24 return adoptPtrWillBeNoop(new RejectedPromises); 24 return adoptPtrWillBeNoop(new RejectedPromises);
25 } 25 }
26 26
27 RejectedPromises(); 27 RejectedPromises();
28 void dispose(); 28 void dispose();
29 DECLARE_TRACE(); 29 DECLARE_TRACE();
30 30
31 void add(ScriptState*, v8::PromiseRejectMessage, const String& errorMessage, const String& resourceName, int scriptId, int lineNumber, int columnNumber, Pas sRefPtrWillBeRawPtr<ScriptCallStack>); 31 void rejectedWithNoHandler(ScriptState*, v8::PromiseRejectMessage, const Str ing& errorMessage, const String& resourceName, int scriptId, int lineNumber, int columnNumber, PassRefPtrWillBeRawPtr<ScriptCallStack>);
32 void handlerAdded(v8::PromiseRejectMessage);
32 33
33 void processQueue(); 34 void processQueue();
34 35
35 private: 36 private:
36 class Message; 37 class Message;
37 WillBeHeapDeque<OwnPtrWillBeMember<Message>> m_queue; 38 WillBeHeapDeque<OwnPtrWillBeMember<Message>> m_queue;
39 WillBeHeapDeque<OwnPtrWillBeMember<Message>> m_reportedAsErrors;
38 }; 40 };
39 41
40 } // namespace blink 42 } // namespace blink
41 43
42 #endif // RejectedPromises_h 44 #endif // RejectedPromises_h
OLDNEW
« no previous file with comments | « LayoutTests/inspector/sources/debugger/promise-pane-expected.txt ('k') | Source/bindings/core/v8/RejectedPromises.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698