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 V8SchemaAgentImpl_h | 5 #ifndef V8SchemaAgentImpl_h |
6 #define V8SchemaAgentImpl_h | 6 #define V8SchemaAgentImpl_h |
7 | 7 |
8 #include "platform/inspector_protocol/InspectorProtocol.h" | 8 #include "platform/v8_inspector/Allocator.h" |
| 9 #include "platform/v8_inspector/protocol/Forward.h" |
9 #include "platform/v8_inspector/protocol/Schema.h" | 10 #include "platform/v8_inspector/protocol/Schema.h" |
10 | 11 |
11 namespace v8_inspector { | 12 namespace v8_inspector { |
12 | 13 |
13 class V8InspectorSessionImpl; | 14 class V8InspectorSessionImpl; |
14 | 15 |
15 namespace protocol = blink::protocol; | 16 using protocol::ErrorString; |
16 | 17 |
17 class V8SchemaAgentImpl : public protocol::Schema::Backend { | 18 class V8SchemaAgentImpl : public protocol::Schema::Backend { |
18 PROTOCOL_DISALLOW_COPY(V8SchemaAgentImpl); | 19 V8_INSPECTOR_DISALLOW_COPY(V8SchemaAgentImpl); |
19 public: | 20 public: |
20 V8SchemaAgentImpl(V8InspectorSessionImpl*, protocol::FrontendChannel*, proto
col::DictionaryValue* state); | 21 V8SchemaAgentImpl(V8InspectorSessionImpl*, protocol::FrontendChannel*, proto
col::DictionaryValue* state); |
21 ~V8SchemaAgentImpl() override; | 22 ~V8SchemaAgentImpl() override; |
22 | 23 |
23 void getDomains(ErrorString*, std::unique_ptr<protocol::Array<protocol::Sche
ma::Domain>>*) override; | 24 void getDomains(ErrorString*, std::unique_ptr<protocol::Array<protocol::Sche
ma::Domain>>*) override; |
24 | 25 |
25 private: | 26 private: |
26 V8InspectorSessionImpl* m_session; | 27 V8InspectorSessionImpl* m_session; |
27 protocol::Schema::Frontend m_frontend; | 28 protocol::Schema::Frontend m_frontend; |
28 }; | 29 }; |
29 | 30 |
30 } // namespace v8_inspector | 31 } // namespace v8_inspector |
31 | 32 |
32 | 33 |
33 #endif // !defined(V8SchemaAgentImpl_h) | 34 #endif // !defined(V8SchemaAgentImpl_h) |
OLD | NEW |