1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "android_webview/browser/aw_dev_tools_manager_delegate.h"
7 #include "components/devtools_discovery/devtools_discovery_manager.h"
8 #include "content/public/browser/devtools_target.h"
10 namespace android_webview
{
12 AwDevToolsManagerDelegate::AwDevToolsManagerDelegate() {
15 AwDevToolsManagerDelegate::~AwDevToolsManagerDelegate() {
18 base::DictionaryValue
* AwDevToolsManagerDelegate::HandleCommand(
19 content::DevToolsAgentHost
* agent_host
,
20 base::DictionaryValue
* command_dict
) {
24 void AwDevToolsManagerDelegate::EnumerateTargets(TargetCallback callback
) {
26 devtools_discovery::DevToolsDiscoveryManager
* discovery_manager
=
27 devtools_discovery::DevToolsDiscoveryManager::GetInstance();
28 for (const auto& descriptor
: discovery_manager
->GetDescriptors())
29 targets
.push_back(descriptor
);
30 callback
.Run(targets
);
33 std::string
AwDevToolsManagerDelegate::GetPageThumbnailData(const GURL
&) {
37 scoped_ptr
<content::DevToolsTarget
> AwDevToolsManagerDelegate::CreateNewTarget(
39 return scoped_ptr
<content::DevToolsTarget
>();
42 } // namespace android_webview