| 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_INSPECTOR_IMPL_H_ | 5 #ifndef V8_TEST_INSPECTOR_PROTOCOL_INSPECTOR_IMPL_H_ |
| 6 #define V8_TEST_INSPECTOR_PROTOCOL_INSPECTOR_IMPL_H_ | 6 #define V8_TEST_INSPECTOR_PROTOCOL_INSPECTOR_IMPL_H_ |
| 7 | 7 |
| 8 #include "include/v8-inspector.h" | 8 #include "include/v8-inspector.h" |
| 9 #include "include/v8.h" | 9 #include "include/v8.h" |
| 10 #include "src/base/macros.h" | 10 #include "src/base/macros.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 v8::Local<v8::Context> context); | 31 v8::Local<v8::Context> context); |
| 32 static v8_inspector::V8InspectorSession* SessionFromContext( | 32 static v8_inspector::V8InspectorSession* SessionFromContext( |
| 33 v8::Local<v8::Context> context); | 33 v8::Local<v8::Context> context); |
| 34 | 34 |
| 35 void setCurrentTimeMSForTest(double time); | 35 void setCurrentTimeMSForTest(double time); |
| 36 | 36 |
| 37 v8_inspector::V8InspectorSession* session() const { return session_.get(); } | 37 v8_inspector::V8InspectorSession* session() const { return session_.get(); } |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 // V8InspectorClient implementation. | 40 // V8InspectorClient implementation. |
| 41 bool formatAccessorsAsProperties(v8::Local<v8::Value>) override; |
| 41 v8::Local<v8::Context> ensureDefaultContextInGroup( | 42 v8::Local<v8::Context> ensureDefaultContextInGroup( |
| 42 int context_group_id) override; | 43 int context_group_id) override; |
| 43 double currentTimeMS() override; | 44 double currentTimeMS() override; |
| 44 void runMessageLoopOnPause(int context_group_id) override; | 45 void runMessageLoopOnPause(int context_group_id) override; |
| 45 void quitMessageLoopOnPause() override; | 46 void quitMessageLoopOnPause() override; |
| 46 | 47 |
| 47 friend class SendMessageToBackendTask; | 48 friend class SendMessageToBackendTask; |
| 48 | 49 |
| 49 friend class ConnectTask; | 50 friend class ConnectTask; |
| 50 void connect(v8::Local<v8::Context> context); | 51 void connect(v8::Local<v8::Context> context); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 81 } | 82 } |
| 82 | 83 |
| 83 private: | 84 private: |
| 84 static void SendMessageToBackend( | 85 static void SendMessageToBackend( |
| 85 const v8::FunctionCallbackInfo<v8::Value>& args); | 86 const v8::FunctionCallbackInfo<v8::Value>& args); |
| 86 | 87 |
| 87 static TaskRunner* backend_task_runner_; | 88 static TaskRunner* backend_task_runner_; |
| 88 }; | 89 }; |
| 89 | 90 |
| 90 #endif // V8_TEST_INSPECTOR_PROTOCOL_INSPECTOR_IMPL_H_ | 91 #endif // V8_TEST_INSPECTOR_PROTOCOL_INSPECTOR_IMPL_H_ |
| OLD | NEW |