-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Blink Commit: 60cd6e859b9f557d2312f5bf532f6aec5f284980
- Loading branch information
Eugene Ostroukhov
committed
Aug 23, 2016
1 parent
ab732a6
commit 55f21a5
Showing
13 changed files
with
172 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
third_party/v8_inspector/platform/v8_inspector/V8SchemaAgentImpl.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Copyright 2016 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#include "platform/v8_inspector/V8SchemaAgentImpl.h" | ||
|
||
#include "platform/v8_inspector/V8InspectorSessionImpl.h" | ||
|
||
namespace v8_inspector { | ||
|
||
V8SchemaAgentImpl::V8SchemaAgentImpl(V8InspectorSessionImpl* session, protocol::FrontendChannel* frontendChannel, protocol::DictionaryValue* state) | ||
: m_session(session) | ||
, m_frontend(frontendChannel) | ||
{ | ||
} | ||
|
||
V8SchemaAgentImpl::~V8SchemaAgentImpl() | ||
{ | ||
} | ||
|
||
void V8SchemaAgentImpl::getDomains(ErrorString*, std::unique_ptr<protocol::Array<protocol::Schema::Domain>>* result) | ||
{ | ||
std::vector<std::unique_ptr<protocol::Schema::Domain>> domains = m_session->supportedDomainsImpl(); | ||
*result = protocol::Array<protocol::Schema::Domain>::create(); | ||
for (size_t i = 0; i < domains.size(); ++i) | ||
(*result)->addItem(std::move(domains[i])); | ||
} | ||
|
||
} // namespace v8_inspector |
33 changes: 33 additions & 0 deletions
33
third_party/v8_inspector/platform/v8_inspector/V8SchemaAgentImpl.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Copyright 2016 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef V8SchemaAgentImpl_h | ||
#define V8SchemaAgentImpl_h | ||
|
||
#include "platform/inspector_protocol/InspectorProtocol.h" | ||
#include "platform/v8_inspector/protocol/Schema.h" | ||
|
||
namespace v8_inspector { | ||
|
||
class V8InspectorSessionImpl; | ||
|
||
namespace protocol = blink::protocol; | ||
|
||
class V8SchemaAgentImpl : public protocol::Schema::Backend { | ||
PROTOCOL_DISALLOW_COPY(V8SchemaAgentImpl); | ||
public: | ||
V8SchemaAgentImpl(V8InspectorSessionImpl*, protocol::FrontendChannel*, protocol::DictionaryValue* state); | ||
~V8SchemaAgentImpl() override; | ||
|
||
void getDomains(ErrorString*, std::unique_ptr<protocol::Array<protocol::Schema::Domain>>*) override; | ||
|
||
private: | ||
V8InspectorSessionImpl* m_session; | ||
protocol::Schema::Frontend m_frontend; | ||
}; | ||
|
||
} // namespace v8_inspector | ||
|
||
|
||
#endif // !defined(V8SchemaAgentImpl_h) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.