| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "platform/v8_inspector/InjectedScriptNative.h" | 5 #include "platform/v8_inspector/InjectedScriptNative.h" |
| 6 | 6 |
| 7 #include "platform/inspector_protocol/Values.h" | |
| 8 | |
| 9 namespace blink { | 7 namespace blink { |
| 10 | 8 |
| 11 InjectedScriptNative::InjectedScriptNative(v8::Isolate* isolate) | 9 InjectedScriptNative::InjectedScriptNative(v8::Isolate* isolate) |
| 12 : m_lastBoundObjectId(1) | 10 : m_lastBoundObjectId(1) |
| 13 , m_isolate(isolate) | 11 , m_isolate(isolate) |
| 14 { | 12 { |
| 15 } | 13 } |
| 16 | 14 |
| 17 static const char privateKeyName[] = "v8-inspector#injectedScript"; | 15 static const char privateKeyName[] = "v8-inspector#injectedScript"; |
| 18 | 16 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 String16 InjectedScriptNative::groupName(int objectId) const | 83 String16 InjectedScriptNative::groupName(int objectId) const |
| 86 { | 84 { |
| 87 if (objectId <= 0) | 85 if (objectId <= 0) |
| 88 return String16(); | 86 return String16(); |
| 89 IdToObjectGroupName::const_iterator iterator = m_idToObjectGroupName.find(ob
jectId); | 87 IdToObjectGroupName::const_iterator iterator = m_idToObjectGroupName.find(ob
jectId); |
| 90 return iterator != m_idToObjectGroupName.end() ? iterator->second : String16
(); | 88 return iterator != m_idToObjectGroupName.end() ? iterator->second : String16
(); |
| 91 } | 89 } |
| 92 | 90 |
| 93 } // namespace blink | 91 } // namespace blink |
| 94 | 92 |
| OLD | NEW |