| 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 #include "bindings/core/v8/V8DOMActivityLogger.h" | 5 #include "bindings/core/v8/V8DOMActivityLogger.h" |
| 6 | 6 |
| 7 #include <memory> |
| 7 #include "bindings/core/v8/V8Binding.h" | 8 #include "bindings/core/v8/V8Binding.h" |
| 8 #include "platform/weborigin/KURL.h" | 9 #include "platform/weborigin/KURL.h" |
| 9 #include "wtf/HashMap.h" | 10 #include "wtf/HashMap.h" |
| 10 #include "wtf/text/StringHash.h" | 11 #include "wtf/text/StringHash.h" |
| 11 #include <memory> | |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 typedef HashMap<String, std::unique_ptr<V8DOMActivityLogger>> | 15 typedef HashMap<String, std::unique_ptr<V8DOMActivityLogger>> |
| 16 DOMActivityLoggerMapForMainWorld; | 16 DOMActivityLoggerMapForMainWorld; |
| 17 typedef HashMap<int, | 17 typedef HashMap<int, |
| 18 std::unique_ptr<V8DOMActivityLogger>, | 18 std::unique_ptr<V8DOMActivityLogger>, |
| 19 WTF::IntHash<int>, | 19 WTF::IntHash<int>, |
| 20 WTF::UnsignedWithZeroKeyHashTraits<int>> | 20 WTF::UnsignedWithZeroKeyHashTraits<int>> |
| 21 DOMActivityLoggerMapForIsolatedWorld; | 21 DOMActivityLoggerMapForIsolatedWorld; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 return 0; | 109 return 0; |
| 110 | 110 |
| 111 V8PerContextData* contextData = scriptState->perContextData(); | 111 V8PerContextData* contextData = scriptState->perContextData(); |
| 112 if (!contextData) | 112 if (!contextData) |
| 113 return 0; | 113 return 0; |
| 114 | 114 |
| 115 return contextData->activityLogger(); | 115 return contextData->activityLogger(); |
| 116 } | 116 } |
| 117 | 117 |
| 118 } // namespace blink | 118 } // namespace blink |
| OLD | NEW |