| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 PromiseTracker_h | 5 #ifndef PromiseTracker_h |
| 6 #define PromiseTracker_h | 6 #define PromiseTracker_h |
| 7 | 7 |
| 8 #include "wtf/HashMap.h" | 8 #include "sky/engine/wtf/HashMap.h" |
| 9 #include "wtf/Noncopyable.h" | 9 #include "sky/engine/wtf/Noncopyable.h" |
| 10 #include "wtf/RefPtr.h" | 10 #include "sky/engine/wtf/RefPtr.h" |
| 11 #include "wtf/Vector.h" | 11 #include "sky/engine/wtf/Vector.h" |
| 12 #include <v8.h> | 12 #include "v8/include/v8.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 class ScriptState; | 16 class ScriptState; |
| 17 | 17 |
| 18 class PromiseTracker { | 18 class PromiseTracker { |
| 19 WTF_MAKE_NONCOPYABLE(PromiseTracker); | 19 WTF_MAKE_NONCOPYABLE(PromiseTracker); |
| 20 public: | 20 public: |
| 21 PromiseTracker(); | 21 PromiseTracker(); |
| 22 ~PromiseTracker(); | 22 ~PromiseTracker(); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 35 typedef HashMap<int, PromiseDataVector> PromiseDataMap; | 35 typedef HashMap<int, PromiseDataVector> PromiseDataMap; |
| 36 | 36 |
| 37 private: | 37 private: |
| 38 bool m_isEnabled; | 38 bool m_isEnabled; |
| 39 PromiseDataMap m_promiseDataMap; | 39 PromiseDataMap m_promiseDataMap; |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 } // namespace blink | 42 } // namespace blink |
| 43 | 43 |
| 44 #endif // !defined(PromiseTracker_h) | 44 #endif // !defined(PromiseTracker_h) |
| OLD | NEW |