Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Side by Side Diff: src/inspector/V8ConsoleAgentImpl.h

Issue 2300823002: Revert of [inspector] Initial import of v8_inspector. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/inspector/V8Console.cpp ('k') | src/inspector/V8ConsoleAgentImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef V8_INSPECTOR_V8CONSOLEAGENTIMPL_H_
6 #define V8_INSPECTOR_V8CONSOLEAGENTIMPL_H_
7
8 #include "src/inspector/Allocator.h"
9 #include "src/inspector/protocol/Console.h"
10 #include "src/inspector/protocol/Forward.h"
11
12 namespace v8_inspector {
13
14 class V8ConsoleMessage;
15 class V8InspectorSessionImpl;
16
17 using protocol::ErrorString;
18
19 class V8ConsoleAgentImpl : public protocol::Console::Backend {
20 V8_INSPECTOR_DISALLOW_COPY(V8ConsoleAgentImpl);
21 public:
22 V8ConsoleAgentImpl(V8InspectorSessionImpl*, protocol::FrontendChannel*, prot ocol::DictionaryValue* state);
23 ~V8ConsoleAgentImpl() override;
24
25 void enable(ErrorString*) override;
26 void disable(ErrorString*) override;
27 void clearMessages(ErrorString*) override;
28
29 void restore();
30 void messageAdded(V8ConsoleMessage*);
31 void reset();
32 bool enabled();
33
34 private:
35 void reportAllMessages();
36 void reportMessage(V8ConsoleMessage*, bool generatePreview);
37
38 V8InspectorSessionImpl* m_session;
39 protocol::DictionaryValue* m_state;
40 protocol::Console::Frontend m_frontend;
41 bool m_enabled;
42 };
43
44 } // namespace v8_inspector
45
46
47 #endif // V8_INSPECTOR_V8CONSOLEAGENTIMPL_H_
OLDNEW
« no previous file with comments | « src/inspector/V8Console.cpp ('k') | src/inspector/V8ConsoleAgentImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698