| 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 #ifndef V8_INSPECTOR_INJECTEDSCRIPTNATIVE_H_ | 5 #ifndef V8_INSPECTOR_INJECTEDSCRIPTNATIVE_H_ |
| 6 #define V8_INSPECTOR_INJECTEDSCRIPTNATIVE_H_ | 6 #define V8_INSPECTOR_INJECTEDSCRIPTNATIVE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "src/inspector/protocol/Protocol.h" | 10 #include "src/inspector/protocol/Protocol.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 v8::Local<v8::Value> objectForId(int id); | 27 v8::Local<v8::Value> objectForId(int id); |
| 28 | 28 |
| 29 void releaseObjectGroup(const String16& groupName); | 29 void releaseObjectGroup(const String16& groupName); |
| 30 String16 groupName(int objectId) const; | 30 String16 groupName(int objectId) const; |
| 31 | 31 |
| 32 private: | 32 private: |
| 33 void addObjectToGroup(int objectId, const String16& groupName); | 33 void addObjectToGroup(int objectId, const String16& groupName); |
| 34 | 34 |
| 35 int m_lastBoundObjectId; | 35 int m_lastBoundObjectId; |
| 36 v8::Isolate* m_isolate; | 36 v8::Isolate* m_isolate; |
| 37 protocol::HashMap<int, std::unique_ptr<v8::Global<v8::Value>>> | 37 protocol::HashMap<int, v8::Global<v8::Value>> m_idToWrappedObject; |
| 38 m_idToWrappedObject; | |
| 39 typedef protocol::HashMap<int, String16> IdToObjectGroupName; | 38 typedef protocol::HashMap<int, String16> IdToObjectGroupName; |
| 40 IdToObjectGroupName m_idToObjectGroupName; | 39 IdToObjectGroupName m_idToObjectGroupName; |
| 41 typedef protocol::HashMap<String16, std::vector<int>> NameToObjectGroup; | 40 typedef protocol::HashMap<String16, std::vector<int>> NameToObjectGroup; |
| 42 NameToObjectGroup m_nameToObjectGroup; | 41 NameToObjectGroup m_nameToObjectGroup; |
| 43 }; | 42 }; |
| 44 | 43 |
| 45 } // namespace v8_inspector | 44 } // namespace v8_inspector |
| 46 | 45 |
| 47 #endif // V8_INSPECTOR_INJECTEDSCRIPTNATIVE_H_ | 46 #endif // V8_INSPECTOR_INJECTEDSCRIPTNATIVE_H_ |
| OLD | NEW |