| OLD | NEW |
| 1 // Copyright 2017 the V8 project authors. All rights reserved. | 1 // Copyright 2017 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_TEST_INSPECTOR_PROTOCOL_ISOLATE_DATA_H_ | 5 #ifndef V8_TEST_INSPECTOR_PROTOCOL_ISOLATE_DATA_H_ |
| 6 #define V8_TEST_INSPECTOR_PROTOCOL_ISOLATE_DATA_H_ | 6 #define V8_TEST_INSPECTOR_PROTOCOL_ISOLATE_DATA_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "include/v8-inspector.h" | 10 #include "include/v8-inspector.h" |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 if (lhs[i] != rhs[i]) return lhs[i] < rhs[i]; | 76 if (lhs[i] != rhs[i]) return lhs[i] < rhs[i]; |
| 77 } | 77 } |
| 78 return false; | 78 return false; |
| 79 } | 79 } |
| 80 }; | 80 }; |
| 81 static v8::MaybeLocal<v8::Module> ModuleResolveCallback( | 81 static v8::MaybeLocal<v8::Module> ModuleResolveCallback( |
| 82 v8::Local<v8::Context> context, v8::Local<v8::String> specifier, | 82 v8::Local<v8::Context> context, v8::Local<v8::String> specifier, |
| 83 v8::Local<v8::Module> referrer); | 83 v8::Local<v8::Module> referrer); |
| 84 static void MessageHandler(v8::Local<v8::Message> message, | 84 static void MessageHandler(v8::Local<v8::Message> message, |
| 85 v8::Local<v8::Value> exception); | 85 v8::Local<v8::Value> exception); |
| 86 static void PromiseRejectHandler(v8::PromiseRejectMessage data); |
| 87 static int HandleMessage(v8::Local<v8::Message> message, |
| 88 v8::Local<v8::Value> exception); |
| 86 std::vector<int> GetSessionIds(int context_group_id); | 89 std::vector<int> GetSessionIds(int context_group_id); |
| 87 | 90 |
| 88 // V8InspectorClient implementation. | 91 // V8InspectorClient implementation. |
| 89 bool formatAccessorsAsProperties(v8::Local<v8::Value>) override; | 92 bool formatAccessorsAsProperties(v8::Local<v8::Value>) override; |
| 90 v8::Local<v8::Context> ensureDefaultContextInGroup( | 93 v8::Local<v8::Context> ensureDefaultContextInGroup( |
| 91 int context_group_id) override; | 94 int context_group_id) override; |
| 92 double currentTimeMS() override; | 95 double currentTimeMS() override; |
| 93 v8::MaybeLocal<v8::Value> memoryInfo(v8::Isolate* isolate, | 96 v8::MaybeLocal<v8::Value> memoryInfo(v8::Isolate* isolate, |
| 94 v8::Local<v8::Context>) override; | 97 v8::Local<v8::Context>) override; |
| 95 void runMessageLoopOnPause(int context_group_id) override; | 98 void runMessageLoopOnPause(int context_group_id) override; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 115 std::map<v8_inspector::V8InspectorSession*, int> context_group_by_session_; | 118 std::map<v8_inspector::V8InspectorSession*, int> context_group_by_session_; |
| 116 v8::Global<v8::Value> memory_info_; | 119 v8::Global<v8::Value> memory_info_; |
| 117 bool current_time_set_ = false; | 120 bool current_time_set_ = false; |
| 118 double current_time_ = 0.0; | 121 double current_time_ = 0.0; |
| 119 bool log_console_api_message_calls_ = false; | 122 bool log_console_api_message_calls_ = false; |
| 120 | 123 |
| 121 DISALLOW_COPY_AND_ASSIGN(IsolateData); | 124 DISALLOW_COPY_AND_ASSIGN(IsolateData); |
| 122 }; | 125 }; |
| 123 | 126 |
| 124 #endif // V8_TEST_INSPECTOR_PROTOCOL_ISOLATE_DATA_H_ | 127 #endif // V8_TEST_INSPECTOR_PROTOCOL_ISOLATE_DATA_H_ |
| OLD | NEW |