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

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

Issue 2372793002: [inspector] added inspector test runner [part 3] (Closed)
Patch Set: added missing header 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.gyp ('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
28 private: 31 private:
29 // V8InspectorClient implementation. 32 // V8InspectorClient implementation.
30 v8::Local<v8::Context> ensureDefaultContextInGroup( 33 v8::Local<v8::Context> ensureDefaultContextInGroup(
31 int context_group_id) override; 34 int context_group_id) override;
32 double currentTimeMS() override; 35 double currentTimeMS() override;
33 void runMessageLoopOnPause(int context_group_id) override; 36 void runMessageLoopOnPause(int context_group_id) override;
34 void quitMessageLoopOnPause() override; 37 void quitMessageLoopOnPause() override;
35 38
36 static v8_inspector::V8InspectorSession* SessionFromContext( 39 static v8_inspector::V8InspectorSession* SessionFromContext(
37 v8::Local<v8::Context> context); 40 v8::Local<v8::Context> context);
(...skipping 29 matching lines...) Expand all
67 } 70 }
68 71
69 private: 72 private:
70 static void SendMessageToBackend( 73 static void SendMessageToBackend(
71 const v8::FunctionCallbackInfo<v8::Value>& args); 74 const v8::FunctionCallbackInfo<v8::Value>& args);
72 75
73 static TaskRunner* backend_task_runner_; 76 static TaskRunner* backend_task_runner_;
74 }; 77 };
75 78
76 #endif // V8_TEST_INSPECTOR_PROTOCOL_INSPECTOR_IMPL_H_ 79 #endif // V8_TEST_INSPECTOR_PROTOCOL_INSPECTOR_IMPL_H_
OLDNEW
« no previous file with comments | « test/inspector/inspector.gyp ('k') | test/inspector/inspector-impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698