OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium 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 V8ConsoleAgentImpl_h | 5 #ifndef V8ConsoleAgentImpl_h |
6 #define V8ConsoleAgentImpl_h | 6 #define V8ConsoleAgentImpl_h |
7 | 7 |
8 #include "platform/inspector_protocol/InspectorProtocol.h" | |
9 #include "platform/v8_inspector/protocol/Console.h" | 8 #include "platform/v8_inspector/protocol/Console.h" |
| 9 #include "platform/v8_inspector/protocol/InspectorProtocol.h" |
10 | 10 |
11 namespace v8_inspector { | 11 namespace v8_inspector { |
12 | 12 |
13 class V8ConsoleMessage; | 13 class V8ConsoleMessage; |
14 class V8InspectorSessionImpl; | 14 class V8InspectorSessionImpl; |
15 | 15 |
16 namespace protocol = blink::protocol; | 16 using protocol::ErrorString; |
17 | 17 |
18 class V8ConsoleAgentImpl : public protocol::Console::Backend { | 18 class V8ConsoleAgentImpl : public protocol::Console::Backend { |
19 PROTOCOL_DISALLOW_COPY(V8ConsoleAgentImpl); | 19 PROTOCOL_DISALLOW_COPY(V8ConsoleAgentImpl); |
20 public: | 20 public: |
21 V8ConsoleAgentImpl(V8InspectorSessionImpl*, protocol::FrontendChannel*, prot
ocol::DictionaryValue* state); | 21 V8ConsoleAgentImpl(V8InspectorSessionImpl*, protocol::FrontendChannel*, prot
ocol::DictionaryValue* state); |
22 ~V8ConsoleAgentImpl() override; | 22 ~V8ConsoleAgentImpl() override; |
23 | 23 |
24 void enable(ErrorString*) override; | 24 void enable(ErrorString*) override; |
25 void disable(ErrorString*) override; | 25 void disable(ErrorString*) override; |
26 void clearMessages(ErrorString*) override; | 26 void clearMessages(ErrorString*) override; |
(...skipping 10 matching lines...) Expand all Loading... |
37 V8InspectorSessionImpl* m_session; | 37 V8InspectorSessionImpl* m_session; |
38 protocol::DictionaryValue* m_state; | 38 protocol::DictionaryValue* m_state; |
39 protocol::Console::Frontend m_frontend; | 39 protocol::Console::Frontend m_frontend; |
40 bool m_enabled; | 40 bool m_enabled; |
41 }; | 41 }; |
42 | 42 |
43 } // namespace v8_inspector | 43 } // namespace v8_inspector |
44 | 44 |
45 | 45 |
46 #endif // !defined(V8ConsoleAgentImpl_h) | 46 #endif // !defined(V8ConsoleAgentImpl_h) |
OLD | NEW |