Index: third_party/WebKit/Source/platform/v8_inspector/PromiseTracker.h |
diff --git a/third_party/WebKit/Source/platform/v8_inspector/PromiseTracker.h b/third_party/WebKit/Source/platform/v8_inspector/PromiseTracker.h |
deleted file mode 100644 |
index 067e05f06d6ef482a622489d7ae6302ddccd3f3e..0000000000000000000000000000000000000000 |
--- a/third_party/WebKit/Source/platform/v8_inspector/PromiseTracker.h |
+++ /dev/null |
@@ -1,58 +0,0 @@ |
-// Copyright 2014 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 PromiseTracker_h |
-#define PromiseTracker_h |
- |
-#include "platform/inspector_protocol/Allocator.h" |
-#include "platform/inspector_protocol/Collections.h" |
-#include "platform/inspector_protocol/Frontend.h" |
-#include "platform/inspector_protocol/TypeBuilder.h" |
-#include "wtf/PassOwnPtr.h" |
-#include <v8.h> |
- |
-namespace blink { |
- |
-class V8DebuggerAgentImpl; |
- |
-class PromiseTracker final { |
- PROTOCOL_DISALLOW_COPY(PromiseTracker); |
-public: |
- static PassOwnPtr<PromiseTracker> create(V8DebuggerAgentImpl* agent, v8::Isolate* isolate) |
- { |
- return adoptPtr(new PromiseTracker(agent, isolate)); |
- } |
- |
- ~PromiseTracker(); |
- |
- bool isEnabled() const { return m_isEnabled; } |
- void setEnabled(bool enabled, bool captureStacks); |
- void clear(); |
- void didReceiveV8PromiseEvent(v8::Local<v8::Context>, v8::Local<v8::Object> promise, v8::Local<v8::Value> parentPromise, int status); |
- v8::Local<v8::Object> promiseById(int promiseId); |
- |
-private: |
- class PromiseWrapper; |
- static void weakCallback(const v8::WeakCallbackInfo<PromiseWrapper>& data); |
- |
- PromiseTracker(V8DebuggerAgentImpl*, v8::Isolate*); |
- |
- int circularSequentialId(); |
- int promiseId(v8::Local<v8::Object> promise, bool* isNewPromise); |
- void promiseCollected(int id); |
- |
- int m_circularSequentialId; |
- bool m_isEnabled; |
- bool m_captureStacks; |
- V8DebuggerAgentImpl* m_agent; |
- |
- v8::Isolate* m_isolate; |
- v8::Persistent<v8::NativeWeakMap> m_promiseToId; |
- |
- protocol::HashMap<int, OwnPtr<PromiseWrapper>> m_idToPromise; |
-}; |
- |
-} // namespace blink |
- |
-#endif // !defined(PromiseTracker_h) |