Supervised user whitelists: Cleanup
[chromium-blink-merge.git] / android_webview / browser / aw_dev_tools_manager_delegate.cc
blobd46e402f29449c8dcf5f48e65ed1a0f19ffc45d4
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) {
21 return NULL;
24 void AwDevToolsManagerDelegate::EnumerateTargets(TargetCallback callback) {
25 TargetList targets;
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&) {
34 return "";
37 scoped_ptr<content::DevToolsTarget> AwDevToolsManagerDelegate::CreateNewTarget(
38 const GURL&) {
39 return scoped_ptr<content::DevToolsTarget>();
42 } // namespace android_webview