OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project 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 "src/inspector/InjectedScriptNative.h" | 5 #include "src/inspector/injected-script-native.h" |
6 | 6 |
7 namespace v8_inspector { | 7 namespace v8_inspector { |
8 | 8 |
9 InjectedScriptNative::InjectedScriptNative(v8::Isolate* isolate) | 9 InjectedScriptNative::InjectedScriptNative(v8::Isolate* isolate) |
10 : m_lastBoundObjectId(1), m_isolate(isolate) {} | 10 : m_lastBoundObjectId(1), m_isolate(isolate) {} |
11 | 11 |
12 static const char privateKeyName[] = "v8-inspector#injectedScript"; | 12 static const char privateKeyName[] = "v8-inspector#injectedScript"; |
13 | 13 |
14 InjectedScriptNative::~InjectedScriptNative() {} | 14 InjectedScriptNative::~InjectedScriptNative() {} |
15 | 15 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 | 80 |
81 String16 InjectedScriptNative::groupName(int objectId) const { | 81 String16 InjectedScriptNative::groupName(int objectId) const { |
82 if (objectId <= 0) return String16(); | 82 if (objectId <= 0) return String16(); |
83 IdToObjectGroupName::const_iterator iterator = | 83 IdToObjectGroupName::const_iterator iterator = |
84 m_idToObjectGroupName.find(objectId); | 84 m_idToObjectGroupName.find(objectId); |
85 return iterator != m_idToObjectGroupName.end() ? iterator->second | 85 return iterator != m_idToObjectGroupName.end() ? iterator->second |
86 : String16(); | 86 : String16(); |
87 } | 87 } |
88 | 88 |
89 } // namespace v8_inspector | 89 } // namespace v8_inspector |
OLD | NEW |