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

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/V8ConsoleAgentImpl.h

Issue 2246233002: [DevTools] Move platform/v8_inspector classes under v8_inspector namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
OLDNEW
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" 8 #include "platform/inspector_protocol/InspectorProtocol.h"
9 #include "platform/v8_inspector/protocol/Console.h" 9 #include "platform/v8_inspector/protocol/Console.h"
10 10
11 namespace blink { 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;
17
16 class V8ConsoleAgentImpl : public protocol::Console::Backend { 18 class V8ConsoleAgentImpl : public protocol::Console::Backend {
17 PROTOCOL_DISALLOW_COPY(V8ConsoleAgentImpl); 19 PROTOCOL_DISALLOW_COPY(V8ConsoleAgentImpl);
18 public: 20 public:
19 V8ConsoleAgentImpl(V8InspectorSessionImpl*, protocol::FrontendChannel*, prot ocol::DictionaryValue* state); 21 V8ConsoleAgentImpl(V8InspectorSessionImpl*, protocol::FrontendChannel*, prot ocol::DictionaryValue* state);
20 ~V8ConsoleAgentImpl() override; 22 ~V8ConsoleAgentImpl() override;
21 23
22 void enable(ErrorString*) override; 24 void enable(ErrorString*) override;
23 void disable(ErrorString*) override; 25 void disable(ErrorString*) override;
24 void clearMessages(ErrorString*) override; 26 void clearMessages(ErrorString*) override;
25 27
26 void restore(); 28 void restore();
27 void messageAdded(V8ConsoleMessage*); 29 void messageAdded(V8ConsoleMessage*);
28 void reset(); 30 void reset();
29 bool enabled(); 31 bool enabled();
30 32
31 private: 33 private:
32 void reportAllMessages(); 34 void reportAllMessages();
33 void reportMessage(V8ConsoleMessage*, bool generatePreview); 35 void reportMessage(V8ConsoleMessage*, bool generatePreview);
34 36
35 V8InspectorSessionImpl* m_session; 37 V8InspectorSessionImpl* m_session;
36 protocol::DictionaryValue* m_state; 38 protocol::DictionaryValue* m_state;
37 protocol::Console::Frontend m_frontend; 39 protocol::Console::Frontend m_frontend;
38 bool m_enabled; 40 bool m_enabled;
39 }; 41 };
40 42
41 } // namespace blink 43 } // namespace v8_inspector
42 44
43 45
44 #endif // !defined(V8ConsoleAgentImpl_h) 46 #endif // !defined(V8ConsoleAgentImpl_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698