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

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

Issue 2251343003: [DevTools] Generate separate copies of inspector_protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win compile 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
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/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 11
11 namespace v8_inspector { 12 namespace v8_inspector {
12 13
13 class V8ConsoleMessage; 14 class V8ConsoleMessage;
14 class V8InspectorSessionImpl; 15 class V8InspectorSessionImpl;
15 16
16 namespace protocol = blink::protocol; 17 using protocol::ErrorString;
17 18
18 class V8ConsoleAgentImpl : public protocol::Console::Backend { 19 class V8ConsoleAgentImpl : public protocol::Console::Backend {
19 PROTOCOL_DISALLOW_COPY(V8ConsoleAgentImpl); 20 V8_INSPECTOR_DISALLOW_COPY(V8ConsoleAgentImpl);
20 public: 21 public:
21 V8ConsoleAgentImpl(V8InspectorSessionImpl*, protocol::FrontendChannel*, prot ocol::DictionaryValue* state); 22 V8ConsoleAgentImpl(V8InspectorSessionImpl*, protocol::FrontendChannel*, prot ocol::DictionaryValue* state);
22 ~V8ConsoleAgentImpl() override; 23 ~V8ConsoleAgentImpl() override;
23 24
24 void enable(ErrorString*) override; 25 void enable(ErrorString*) override;
25 void disable(ErrorString*) override; 26 void disable(ErrorString*) override;
26 void clearMessages(ErrorString*) override; 27 void clearMessages(ErrorString*) override;
27 28
28 void restore(); 29 void restore();
29 void messageAdded(V8ConsoleMessage*); 30 void messageAdded(V8ConsoleMessage*);
30 void reset(); 31 void reset();
31 bool enabled(); 32 bool enabled();
32 33
33 private: 34 private:
34 void reportAllMessages(); 35 void reportAllMessages();
35 void reportMessage(V8ConsoleMessage*, bool generatePreview); 36 void reportMessage(V8ConsoleMessage*, bool generatePreview);
36 37
37 V8InspectorSessionImpl* m_session; 38 V8InspectorSessionImpl* m_session;
38 protocol::DictionaryValue* m_state; 39 protocol::DictionaryValue* m_state;
39 protocol::Console::Frontend m_frontend; 40 protocol::Console::Frontend m_frontend;
40 bool m_enabled; 41 bool m_enabled;
41 }; 42 };
42 43
43 } // namespace v8_inspector 44 } // namespace v8_inspector
44 45
45 46
46 #endif // !defined(V8ConsoleAgentImpl_h) 47 #endif // !defined(V8ConsoleAgentImpl_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698