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