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

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

Issue 2359533002: [inspector] replaced V8_INSPECTOR* macros with macros from base/macros.h (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/V8Debugger.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 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 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 V8_INSPECTOR_V8CONSOLEAGENTIMPL_H_ 5 #ifndef V8_INSPECTOR_V8CONSOLEAGENTIMPL_H_
6 #define V8_INSPECTOR_V8CONSOLEAGENTIMPL_H_ 6 #define V8_INSPECTOR_V8CONSOLEAGENTIMPL_H_
7 7
8 #include "src/inspector/Allocator.h" 8 #include "src/base/macros.h"
9 #include "src/inspector/protocol/Console.h" 9 #include "src/inspector/protocol/Console.h"
10 #include "src/inspector/protocol/Forward.h" 10 #include "src/inspector/protocol/Forward.h"
11 11
12 namespace v8_inspector { 12 namespace v8_inspector {
13 13
14 class V8ConsoleMessage; 14 class V8ConsoleMessage;
15 class V8InspectorSessionImpl; 15 class V8InspectorSessionImpl;
16 16
17 using protocol::ErrorString; 17 using protocol::ErrorString;
18 18
19 class V8ConsoleAgentImpl : public protocol::Console::Backend { 19 class V8ConsoleAgentImpl : public protocol::Console::Backend {
20 V8_INSPECTOR_DISALLOW_COPY(V8ConsoleAgentImpl); 20 DISALLOW_COPY_AND_ASSIGN(V8ConsoleAgentImpl);
21 21
22 public: 22 public:
23 V8ConsoleAgentImpl(V8InspectorSessionImpl*, protocol::FrontendChannel*, 23 V8ConsoleAgentImpl(V8InspectorSessionImpl*, protocol::FrontendChannel*,
24 protocol::DictionaryValue* state); 24 protocol::DictionaryValue* state);
25 ~V8ConsoleAgentImpl() override; 25 ~V8ConsoleAgentImpl() override;
26 26
27 void enable(ErrorString*) override; 27 void enable(ErrorString*) override;
28 void disable(ErrorString*) override; 28 void disable(ErrorString*) override;
29 void clearMessages(ErrorString*) override; 29 void clearMessages(ErrorString*) override;
30 30
31 void restore(); 31 void restore();
32 void messageAdded(V8ConsoleMessage*); 32 void messageAdded(V8ConsoleMessage*);
33 void reset(); 33 void reset();
34 bool enabled(); 34 bool enabled();
35 35
36 private: 36 private:
37 void reportAllMessages(); 37 void reportAllMessages();
38 bool reportMessage(V8ConsoleMessage*, bool generatePreview); 38 bool reportMessage(V8ConsoleMessage*, bool generatePreview);
39 39
40 V8InspectorSessionImpl* m_session; 40 V8InspectorSessionImpl* m_session;
41 protocol::DictionaryValue* m_state; 41 protocol::DictionaryValue* m_state;
42 protocol::Console::Frontend m_frontend; 42 protocol::Console::Frontend m_frontend;
43 bool m_enabled; 43 bool m_enabled;
44 }; 44 };
45 45
46 } // namespace v8_inspector 46 } // namespace v8_inspector
47 47
48 #endif // V8_INSPECTOR_V8CONSOLEAGENTIMPL_H_ 48 #endif // V8_INSPECTOR_V8CONSOLEAGENTIMPL_H_
OLDNEW
« no previous file with comments | « src/inspector/V8Console.cpp ('k') | src/inspector/V8Debugger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698