| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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_TASK_RUNNER_H_ | 5 #ifndef V8_TEST_INSPECTOR_PROTOCOL_TASK_RUNNER_H_ |
| 6 #define V8_TEST_INSPECTOR_PROTOCOL_TASK_RUNNER_H_ | 6 #define V8_TEST_INSPECTOR_PROTOCOL_TASK_RUNNER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "include/v8-inspector.h" | 10 #include "include/v8-inspector.h" |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 class AsyncTask : public TaskRunner::Task { | 92 class AsyncTask : public TaskRunner::Task { |
| 93 public: | 93 public: |
| 94 AsyncTask(const char* task_name, v8_inspector::V8Inspector* inspector); | 94 AsyncTask(const char* task_name, v8_inspector::V8Inspector* inspector); |
| 95 virtual ~AsyncTask() = default; | 95 virtual ~AsyncTask() = default; |
| 96 | 96 |
| 97 void Run(v8::Isolate* isolate, | 97 void Run(v8::Isolate* isolate, |
| 98 const v8::Global<v8::Context>& context) override; | 98 const v8::Global<v8::Context>& context) override; |
| 99 virtual void AsyncRun(v8::Isolate* isolate, | 99 virtual void AsyncRun(v8::Isolate* isolate, |
| 100 const v8::Global<v8::Context>& context) = 0; | 100 const v8::Global<v8::Context>& context) = 0; |
| 101 | 101 |
| 102 private: | 102 protected: |
| 103 v8_inspector::V8Inspector* inspector_; | 103 v8_inspector::V8Inspector* inspector_; |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 class ExecuteStringTask : public AsyncTask { | 106 class ExecuteStringTask : public AsyncTask { |
| 107 public: | 107 public: |
| 108 ExecuteStringTask(const v8::internal::Vector<uint16_t>& expression, | 108 ExecuteStringTask(const v8::internal::Vector<uint16_t>& expression, |
| 109 v8::Local<v8::String> name, | 109 v8::Local<v8::String> name, |
| 110 v8::Local<v8::Integer> line_offset, | 110 v8::Local<v8::Integer> line_offset, |
| 111 v8::Local<v8::Integer> column_offset, | 111 v8::Local<v8::Integer> column_offset, |
| 112 v8::Local<v8::Boolean> is_module, const char* task_name, | 112 v8::Local<v8::Boolean> is_module, const char* task_name, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 123 v8::internal::Vector<const char> expression_utf8_; | 123 v8::internal::Vector<const char> expression_utf8_; |
| 124 v8::internal::Vector<uint16_t> name_; | 124 v8::internal::Vector<uint16_t> name_; |
| 125 int32_t line_offset_ = 0; | 125 int32_t line_offset_ = 0; |
| 126 int32_t column_offset_ = 0; | 126 int32_t column_offset_ = 0; |
| 127 bool is_module_ = false; | 127 bool is_module_ = false; |
| 128 | 128 |
| 129 DISALLOW_COPY_AND_ASSIGN(ExecuteStringTask); | 129 DISALLOW_COPY_AND_ASSIGN(ExecuteStringTask); |
| 130 }; | 130 }; |
| 131 | 131 |
| 132 #endif // V8_TEST_INSPECTOR_PROTOCOL_TASK_RUNNER_H_ | 132 #endif // V8_TEST_INSPECTOR_PROTOCOL_TASK_RUNNER_H_ |
| OLD | NEW |