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

Side by Side Diff: content/shell/browser/shell_devtools_manager_delegate.cc

Issue 2263843002: DevTools: merge devtools target with devtools host, part 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for landing 3 Created 4 years, 3 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/shell/browser/shell_devtools_manager_delegate.h" 5 #include "content/shell/browser/shell_devtools_manager_delegate.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 229
230 base::DictionaryValue* ShellDevToolsManagerDelegate::HandleCommand( 230 base::DictionaryValue* ShellDevToolsManagerDelegate::HandleCommand(
231 DevToolsAgentHost* agent_host, 231 DevToolsAgentHost* agent_host,
232 base::DictionaryValue* command_dict) { 232 base::DictionaryValue* command_dict) {
233 std::unique_ptr<base::DictionaryValue> result = 233 std::unique_ptr<base::DictionaryValue> result =
234 devtools_discovery::DevToolsDiscoveryManager::GetInstance() 234 devtools_discovery::DevToolsDiscoveryManager::GetInstance()
235 ->HandleCreateTargetCommand(command_dict); 235 ->HandleCreateTargetCommand(command_dict);
236 return result.release(); // Caller takes ownership. 236 return result.release(); // Caller takes ownership.
237 } 237 }
238 238
239 std::string ShellDevToolsManagerDelegate::GetTargetType(RenderFrameHost* host) {
240 return DevToolsAgentHost::kTypePage;
241 }
242
243 std::string ShellDevToolsManagerDelegate::GetTargetTitle(
244 RenderFrameHost* host) {
245 return "";
246 }
247
239 } // namespace content 248 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/browser/shell_devtools_manager_delegate.h ('k') | headless/lib/browser/headless_devtools_manager_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698