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 <memory> |
8 #include "bindings/core/v8/V8Binding.h" | 8 #include "platform/bindings/V8Binding.h" |
9 #include "platform/weborigin/KURL.h" | 9 #include "platform/weborigin/KURL.h" |
10 #include "platform/wtf/HashMap.h" | 10 #include "platform/wtf/HashMap.h" |
11 #include "platform/wtf/text/StringHash.h" | 11 #include "platform/wtf/text/StringHash.h" |
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>, |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 return 0; | 105 return 0; |
106 | 106 |
107 V8PerContextData* context_data = script_state->PerContextData(); | 107 V8PerContextData* context_data = script_state->PerContextData(); |
108 if (!context_data) | 108 if (!context_data) |
109 return 0; | 109 return 0; |
110 | 110 |
111 return context_data->ActivityLogger(); | 111 return context_data->ActivityLogger(); |
112 } | 112 } |
113 | 113 |
114 } // namespace blink | 114 } // namespace blink |
OLD | NEW |