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

Side by Side Diff: test/inspector/inspector-impl.h

Issue 2379303002: Revert "[inspector] added inspector test runner [part 3-5]" (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « test/inspector/inspector.status ('k') | test/inspector/inspector-impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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"
11 #include "src/base/platform/platform.h" 11 #include "src/base/platform/platform.h"
12 #include "test/inspector/task-runner.h" 12 #include "test/inspector/task-runner.h"
13 13
14 class InspectorClientImpl : public v8_inspector::V8InspectorClient { 14 class InspectorClientImpl : public v8_inspector::V8InspectorClient {
15 public: 15 public:
16 class FrontendChannel { 16 class FrontendChannel {
17 public: 17 public:
18 virtual ~FrontendChannel() = default; 18 virtual ~FrontendChannel() = default;
19 virtual void SendMessageToFrontend( 19 virtual void SendMessageToFrontend(
20 const v8_inspector::StringView& message) = 0; 20 const v8_inspector::StringView& message) = 0;
21 }; 21 };
22 22
23 InspectorClientImpl(TaskRunner* task_runner, 23 InspectorClientImpl(TaskRunner* task_runner,
24 FrontendChannel* frontend_channel, 24 FrontendChannel* frontend_channel,
25 v8::base::Semaphore* ready_semaphore); 25 v8::base::Semaphore* ready_semaphore);
26 virtual ~InspectorClientImpl(); 26 virtual ~InspectorClientImpl();
27 27
28 static v8_inspector::V8Inspector* InspectorFromContext(
29 v8::Local<v8::Context> context);
30
31 private: 28 private:
32 // V8InspectorClient implementation. 29 // V8InspectorClient implementation.
33 v8::Local<v8::Context> ensureDefaultContextInGroup( 30 v8::Local<v8::Context> ensureDefaultContextInGroup(
34 int context_group_id) override; 31 int context_group_id) override;
35 double currentTimeMS() override; 32 double currentTimeMS() override;
36 void runMessageLoopOnPause(int context_group_id) override; 33 void runMessageLoopOnPause(int context_group_id) override;
37 void quitMessageLoopOnPause() override; 34 void quitMessageLoopOnPause() override;
38 35
39 static v8_inspector::V8InspectorSession* SessionFromContext( 36 static v8_inspector::V8InspectorSession* SessionFromContext(
40 v8::Local<v8::Context> context); 37 v8::Local<v8::Context> context);
(...skipping 29 matching lines...) Expand all
70 } 67 }
71 68
72 private: 69 private:
73 static void SendMessageToBackend( 70 static void SendMessageToBackend(
74 const v8::FunctionCallbackInfo<v8::Value>& args); 71 const v8::FunctionCallbackInfo<v8::Value>& args);
75 72
76 static TaskRunner* backend_task_runner_; 73 static TaskRunner* backend_task_runner_;
77 }; 74 };
78 75
79 #endif // V8_TEST_INSPECTOR_PROTOCOL_INSPECTOR_IMPL_H_ 76 #endif // V8_TEST_INSPECTOR_PROTOCOL_INSPECTOR_IMPL_H_
OLDNEW
« no previous file with comments | « test/inspector/inspector.status ('k') | test/inspector/inspector-impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698