v8-schema-agent-impl.h 1011 Bytes
Newer Older
1 2 3 4
// Copyright 2016 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

5 6
#ifndef V8_INSPECTOR_V8_SCHEMA_AGENT_IMPL_H_
#define V8_INSPECTOR_V8_SCHEMA_AGENT_IMPL_H_
7

8
#include "src/base/macros.h"
9 10 11 12 13 14 15
#include "src/inspector/protocol/Forward.h"
#include "src/inspector/protocol/Schema.h"

namespace v8_inspector {

class V8InspectorSessionImpl;

16
using protocol::Response;
17 18 19 20 21 22 23

class V8SchemaAgentImpl : public protocol::Schema::Backend {
 public:
  V8SchemaAgentImpl(V8InspectorSessionImpl*, protocol::FrontendChannel*,
                    protocol::DictionaryValue* state);
  ~V8SchemaAgentImpl() override;

24
  Response getDomains(
25 26 27 28 29
      std::unique_ptr<protocol::Array<protocol::Schema::Domain>>*) override;

 private:
  V8InspectorSessionImpl* m_session;
  protocol::Schema::Frontend m_frontend;
30 31

  DISALLOW_COPY_AND_ASSIGN(V8SchemaAgentImpl);
32 33 34 35
};

}  // namespace v8_inspector

36
#endif  // V8_INSPECTOR_V8_SCHEMA_AGENT_IMPL_H_