| 269 | } |
| 270 | |
| 271 | void InspectorClient::DispatchProtocolMessage(const std::string &message) { |
| 272 | auto session = GetInspectorSession(); |
| 273 | if (!session) { |
| 274 | return; |
| 275 | } |
| 276 | v8::Isolate *isolate = GetIsolate(); |
| 277 | v8::Locker locker(isolate); |
| 278 | v8::Isolate::Scope scopedIsolate(isolate); |
| 279 | v8::HandleScope scopedHandle(isolate); |
| 280 | v8::Context::Scope scopedContext(GetContext().Get(isolate)); |
| 281 | DispatchProxy(message); |
| 282 | } |
| 283 | |
| 284 | void InspectorClient::DispatchProtocolMessages( |
| 285 | const std::vector<std::string> &messages) { |