Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: test/inspector/task-runner.h

Issue 2668763003: [inspector] V8DebuggerAgent cleanup (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « test/inspector/debugger/step-into-next-script-expected.txt ('k') | test/inspector/task-runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698