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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/RejectedPromises.cpp

Issue 2804753005: Rewrite references to "wtf/" to "platform/wtf/" in bindings. (Closed)
Patch Set: Created 3 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 #include "bindings/core/v8/RejectedPromises.h" 5 #include "bindings/core/v8/RejectedPromises.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include "bindings/core/v8/ScopedPersistent.h" 8 #include "bindings/core/v8/ScopedPersistent.h"
9 #include "bindings/core/v8/ScriptState.h" 9 #include "bindings/core/v8/ScriptState.h"
10 #include "bindings/core/v8/ScriptValue.h" 10 #include "bindings/core/v8/ScriptValue.h"
11 #include "bindings/core/v8/V8Binding.h" 11 #include "bindings/core/v8/V8Binding.h"
12 #include "bindings/core/v8/V8PerIsolateData.h" 12 #include "bindings/core/v8/V8PerIsolateData.h"
13 #include "core/dom/ExecutionContext.h" 13 #include "core/dom/ExecutionContext.h"
14 #include "core/events/EventTarget.h" 14 #include "core/events/EventTarget.h"
15 #include "core/events/PromiseRejectionEvent.h" 15 #include "core/events/PromiseRejectionEvent.h"
16 #include "core/inspector/ThreadDebugger.h" 16 #include "core/inspector/ThreadDebugger.h"
17 #include "platform/WebTaskRunner.h" 17 #include "platform/WebTaskRunner.h"
18 #include "platform/wtf/Functional.h"
19 #include "platform/wtf/PtrUtil.h"
18 #include "public/platform/Platform.h" 20 #include "public/platform/Platform.h"
19 #include "public/platform/WebScheduler.h" 21 #include "public/platform/WebScheduler.h"
20 #include "public/platform/WebThread.h" 22 #include "public/platform/WebThread.h"
21 #include "wtf/Functional.h"
22 #include "wtf/PtrUtil.h"
23 23
24 namespace blink { 24 namespace blink {
25 25
26 static const unsigned maxReportedHandlersPendingResolution = 1000; 26 static const unsigned maxReportedHandlersPendingResolution = 1000;
27 27
28 class RejectedPromises::Message final { 28 class RejectedPromises::Message final {
29 public: 29 public:
30 static std::unique_ptr<Message> create( 30 static std::unique_ptr<Message> create(
31 ScriptState* scriptState, 31 ScriptState* scriptState,
32 v8::Local<v8::Promise> promise, 32 v8::Local<v8::Promise> promise,
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 m_reportedAsErrors.erase(0, maxReportedHandlersPendingResolution / 10); 278 m_reportedAsErrors.erase(0, maxReportedHandlersPendingResolution / 10);
279 } 279 }
280 } 280 }
281 } 281 }
282 282
283 void RejectedPromises::revokeNow(std::unique_ptr<Message> message) { 283 void RejectedPromises::revokeNow(std::unique_ptr<Message> message) {
284 message->revoke(); 284 message->revoke();
285 } 285 }
286 286
287 } // namespace blink 287 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698