| 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 #ifndef InjectedScriptNative_h | 5 #ifndef InjectedScriptNative_h |
| 6 #define InjectedScriptNative_h | 6 #define InjectedScriptNative_h |
| 7 | 7 |
| 8 #include "platform/inspector_protocol/InspectorProtocol.h" | 8 #include "platform/v8_inspector/protocol/Protocol.h" |
| 9 |
| 9 #include <v8.h> | 10 #include <v8.h> |
| 10 | |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 namespace v8_inspector { | 13 namespace v8_inspector { |
| 14 | 14 |
| 15 namespace protocol = blink::protocol; | |
| 16 | |
| 17 class InjectedScriptNative final { | 15 class InjectedScriptNative final { |
| 18 public: | 16 public: |
| 19 explicit InjectedScriptNative(v8::Isolate*); | 17 explicit InjectedScriptNative(v8::Isolate*); |
| 20 ~InjectedScriptNative(); | 18 ~InjectedScriptNative(); |
| 21 | 19 |
| 22 void setOnInjectedScriptHost(v8::Local<v8::Object>); | 20 void setOnInjectedScriptHost(v8::Local<v8::Object>); |
| 23 static InjectedScriptNative* fromInjectedScriptHost(v8::Local<v8::Object>); | 21 static InjectedScriptNative* fromInjectedScriptHost(v8::Local<v8::Object>); |
| 24 | 22 |
| 25 int bind(v8::Local<v8::Value>, const String16& groupName); | 23 int bind(v8::Local<v8::Value>, const String16& groupName); |
| 26 void unbind(int id); | 24 void unbind(int id); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 37 protocol::HashMap<int, std::unique_ptr<v8::Global<v8::Value>>> m_idToWrapped
Object; | 35 protocol::HashMap<int, std::unique_ptr<v8::Global<v8::Value>>> m_idToWrapped
Object; |
| 38 typedef protocol::HashMap<int, String16> IdToObjectGroupName; | 36 typedef protocol::HashMap<int, String16> IdToObjectGroupName; |
| 39 IdToObjectGroupName m_idToObjectGroupName; | 37 IdToObjectGroupName m_idToObjectGroupName; |
| 40 typedef protocol::HashMap<String16, std::vector<int>> NameToObjectGroup; | 38 typedef protocol::HashMap<String16, std::vector<int>> NameToObjectGroup; |
| 41 NameToObjectGroup m_nameToObjectGroup; | 39 NameToObjectGroup m_nameToObjectGroup; |
| 42 }; | 40 }; |
| 43 | 41 |
| 44 } // namespace v8_inspector | 42 } // namespace v8_inspector |
| 45 | 43 |
| 46 #endif | 44 #endif |
| OLD | NEW |