OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2010, Google Inc. All rights reserved. | 2 * Copyright (c) 2010, Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 13 matching lines...) Expand all Loading... |
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef V8InspectorImpl_h | 31 #ifndef V8InspectorImpl_h |
32 #define V8InspectorImpl_h | 32 #define V8InspectorImpl_h |
33 | 33 |
34 #include "platform/inspector_protocol/InspectorProtocol.h" | 34 #include "platform/v8_inspector/protocol/InspectorProtocol.h" |
35 #include "platform/v8_inspector/public/V8Inspector.h" | 35 #include "platform/v8_inspector/public/V8Inspector.h" |
36 | 36 |
37 #include <v8-debug.h> | 37 #include <v8-debug.h> |
38 #include <v8.h> | 38 #include <v8.h> |
39 #include <vector> | 39 #include <vector> |
40 | 40 |
41 namespace v8_inspector { | 41 namespace v8_inspector { |
42 | 42 |
43 class InspectedContext; | 43 class InspectedContext; |
44 class V8ConsoleMessageStorage; | 44 class V8ConsoleMessageStorage; |
45 class V8Debugger; | 45 class V8Debugger; |
46 class V8DebuggerAgentImpl; | 46 class V8DebuggerAgentImpl; |
47 class V8InspectorSessionImpl; | 47 class V8InspectorSessionImpl; |
48 class V8RuntimeAgentImpl; | 48 class V8RuntimeAgentImpl; |
49 class V8StackTraceImpl; | 49 class V8StackTraceImpl; |
50 | 50 |
51 namespace protocol = blink::protocol; | |
52 | |
53 class V8InspectorImpl : public V8Inspector { | 51 class V8InspectorImpl : public V8Inspector { |
54 PROTOCOL_DISALLOW_COPY(V8InspectorImpl); | 52 PROTOCOL_DISALLOW_COPY(V8InspectorImpl); |
55 public: | 53 public: |
56 V8InspectorImpl(v8::Isolate*, V8InspectorClient*); | 54 V8InspectorImpl(v8::Isolate*, V8InspectorClient*); |
57 ~V8InspectorImpl() override; | 55 ~V8InspectorImpl() override; |
58 | 56 |
59 v8::Isolate* isolate() const { return m_isolate; } | 57 v8::Isolate* isolate() const { return m_isolate; } |
60 V8InspectorClient* client() { return m_client; } | 58 V8InspectorClient* client() { return m_client; } |
61 V8Debugger* debugger() { return m_debugger.get(); } | 59 V8Debugger* debugger() { return m_debugger.get(); } |
62 | 60 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 SessionMap m_sessions; | 116 SessionMap m_sessions; |
119 | 117 |
120 using ConsoleStorageMap = protocol::HashMap<int, std::unique_ptr<V8ConsoleMe
ssageStorage>>; | 118 using ConsoleStorageMap = protocol::HashMap<int, std::unique_ptr<V8ConsoleMe
ssageStorage>>; |
121 ConsoleStorageMap m_consoleStorageMap; | 119 ConsoleStorageMap m_consoleStorageMap; |
122 }; | 120 }; |
123 | 121 |
124 } // namespace v8_inspector | 122 } // namespace v8_inspector |
125 | 123 |
126 | 124 |
127 #endif // V8InspectorImpl_h | 125 #endif // V8InspectorImpl_h |
OLD | NEW |