-
Notifications
You must be signed in to change notification settings - Fork 4
/
V8Inspector.h
61 lines (50 loc) · 1.9 KB
/
V8Inspector.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8Inspector_h
#define V8Inspector_h
#include "bindings/core/v8/WorkerThreadDebugger.h"
#include "core/inspector/InspectorBaseAgent.h"
#include "core/inspector/InspectorRuntimeAgent.h"
#include "wtf/Forward.h"
#include "wtf/Noncopyable.h"
#include "wtf/OwnPtr.h"
#include "wtf/RefPtr.h"
namespace blink {
class InjectedScriptManager;
class InspectorBackendDispatcher;
class InspectorFrontend;
class InspectorFrontendChannel;
class InspectorStateClient;
class WorkerDebuggerAgent;
class WorkerRuntimeAgent;
class WorkerThreadDebugger;
class V8Inspector : public InspectorRuntimeAgent::Client {
WTF_MAKE_NONCOPYABLE(V8Inspector);
public:
explicit V8Inspector(v8::Isolate*, PassOwnPtr<WorkerThreadDebugger::ClientMessageLoop>);
~V8Inspector();
void connectFrontend(InspectorFrontendChannel*);
void disconnectFrontend();
void restoreInspectorStateFromCookie(const String& inspectorCookie);
void dispatchMessageFromFrontend(const String&);
void dispose();
void pauseOnStart();
private:
// InspectorRuntimeAgent::Client implementation.
void resumeStartup() override;
bool isRunRequired() override;
OwnPtr<InspectorStateClient> m_stateClient;
OwnPtrWillBeMember<InspectorCompositeState> m_state;
OwnPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager;
OwnPtrWillBeMember<WorkerThreadDebugger> m_workerThreadDebugger;
InspectorAgentRegistry m_agents;
InspectorFrontendChannel* m_frontendChannel;
OwnPtr<InspectorFrontend> m_frontend;
RefPtrWillBeMember<InspectorBackendDispatcher> m_backendDispatcher;
RawPtrWillBeMember<WorkerDebuggerAgent> m_workerDebuggerAgent;
RawPtrWillBeMember<WorkerRuntimeAgent> m_workerRuntimeAgent;
bool m_paused;
};
}
#endif // V8Inspector_h