Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Side by Side Diff: android_webview/browser/aw_dev_tools_manager_delegate.cc

Issue 1114503002: [DevTools] Cleanup DevToolsTarget and DevToolsManagerDelegate after moving to devtools_discovery. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@devtools-discovery-chrome
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #include "android_webview/browser/aw_dev_tools_manager_delegate.h"
6
7 #include "components/devtools_discovery/devtools_discovery_manager.h"
8 #include "content/public/browser/devtools_target.h"
9
10 namespace android_webview {
11
12 AwDevToolsManagerDelegate::AwDevToolsManagerDelegate() {
13 }
14
15 AwDevToolsManagerDelegate::~AwDevToolsManagerDelegate() {
16 }
17
18 base::DictionaryValue* AwDevToolsManagerDelegate::HandleCommand(
19 content::DevToolsAgentHost* agent_host,
20 base::DictionaryValue* command_dict) {
21 return NULL;
22 }
23
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);
31 }
32
33 std::string AwDevToolsManagerDelegate::GetPageThumbnailData(const GURL&) {
34 return "";
35 }
36
37 scoped_ptr<content::DevToolsTarget> AwDevToolsManagerDelegate::CreateNewTarget(
38 const GURL&) {
39 return scoped_ptr<content::DevToolsTarget>();
40 }
41
42 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/browser/aw_dev_tools_manager_delegate.h ('k') | android_webview/native/aw_dev_tools_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698