OLD | NEW |
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_V8SCHEMAAGENTIMPL_H_ | 5 #ifndef V8_INSPECTOR_V8SCHEMAAGENTIMPL_H_ |
6 #define V8_INSPECTOR_V8SCHEMAAGENTIMPL_H_ | 6 #define V8_INSPECTOR_V8SCHEMAAGENTIMPL_H_ |
7 | 7 |
8 #include "src/inspector/Allocator.h" | 8 #include "src/base/macros.h" |
9 #include "src/inspector/protocol/Forward.h" | 9 #include "src/inspector/protocol/Forward.h" |
10 #include "src/inspector/protocol/Schema.h" | 10 #include "src/inspector/protocol/Schema.h" |
11 | 11 |
12 namespace v8_inspector { | 12 namespace v8_inspector { |
13 | 13 |
14 class V8InspectorSessionImpl; | 14 class V8InspectorSessionImpl; |
15 | 15 |
16 using protocol::ErrorString; | 16 using protocol::ErrorString; |
17 | 17 |
18 class V8SchemaAgentImpl : public protocol::Schema::Backend { | 18 class V8SchemaAgentImpl : public protocol::Schema::Backend { |
19 V8_INSPECTOR_DISALLOW_COPY(V8SchemaAgentImpl); | 19 DISALLOW_COPY_AND_ASSIGN(V8SchemaAgentImpl); |
20 | 20 |
21 public: | 21 public: |
22 V8SchemaAgentImpl(V8InspectorSessionImpl*, protocol::FrontendChannel*, | 22 V8SchemaAgentImpl(V8InspectorSessionImpl*, protocol::FrontendChannel*, |
23 protocol::DictionaryValue* state); | 23 protocol::DictionaryValue* state); |
24 ~V8SchemaAgentImpl() override; | 24 ~V8SchemaAgentImpl() override; |
25 | 25 |
26 void getDomains( | 26 void getDomains( |
27 ErrorString*, | 27 ErrorString*, |
28 std::unique_ptr<protocol::Array<protocol::Schema::Domain>>*) override; | 28 std::unique_ptr<protocol::Array<protocol::Schema::Domain>>*) override; |
29 | 29 |
30 private: | 30 private: |
31 V8InspectorSessionImpl* m_session; | 31 V8InspectorSessionImpl* m_session; |
32 protocol::Schema::Frontend m_frontend; | 32 protocol::Schema::Frontend m_frontend; |
33 }; | 33 }; |
34 | 34 |
35 } // namespace v8_inspector | 35 } // namespace v8_inspector |
36 | 36 |
37 #endif // V8_INSPECTOR_V8SCHEMAAGENTIMPL_H_ | 37 #endif // V8_INSPECTOR_V8SCHEMAAGENTIMPL_H_ |
OLD | NEW |