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/v8_inspector/Allocator.h" | 8 #include "platform/v8_inspector/Allocator.h" |
9 #include "platform/v8_inspector/protocol/Console.h" | 9 #include "platform/v8_inspector/protocol/Console.h" |
10 #include "platform/v8_inspector/protocol/Forward.h" | 10 #include "platform/v8_inspector/protocol/Forward.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 void disable(ErrorString*) override; | 26 void disable(ErrorString*) override; |
27 void clearMessages(ErrorString*) override; | 27 void clearMessages(ErrorString*) override; |
28 | 28 |
29 void restore(); | 29 void restore(); |
30 void messageAdded(V8ConsoleMessage*); | 30 void messageAdded(V8ConsoleMessage*); |
31 void reset(); | 31 void reset(); |
32 bool enabled(); | 32 bool enabled(); |
33 | 33 |
34 private: | 34 private: |
35 void reportAllMessages(); | 35 void reportAllMessages(); |
36 void reportMessage(V8ConsoleMessage*, bool generatePreview); | 36 bool reportMessage(V8ConsoleMessage*, bool generatePreview); |
37 | 37 |
38 V8InspectorSessionImpl* m_session; | 38 V8InspectorSessionImpl* m_session; |
39 protocol::DictionaryValue* m_state; | 39 protocol::DictionaryValue* m_state; |
40 protocol::Console::Frontend m_frontend; | 40 protocol::Console::Frontend m_frontend; |
41 bool m_enabled; | 41 bool m_enabled; |
42 }; | 42 }; |
43 | 43 |
44 } // namespace v8_inspector | 44 } // namespace v8_inspector |
45 | 45 |
46 | 46 |
47 #endif // !defined(V8ConsoleAgentImpl_h) | 47 #endif // !defined(V8ConsoleAgentImpl_h) |
OLD | NEW |