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

Side by Side Diff: chrome/browser/devtools/devtools_manager_delegate_impl.cc

Issue 251653003: Introduces DevToolsManagerDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Introduce DevToolsManagerDelegate Created 6 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 "chrome/browser/devtools/devtools_manager_delegate_impl.h"
6
7 #include "chrome/browser/devtools/devtools_window.h"
8 #include "content/public/browser/devtools_agent_host.h"
9
10 DevToolsManagerDelegateImpl::DevToolsManagerDelegateImpl(Profile* profile)
11 : profile_(profile) {
12 }
13
14 DevToolsManagerDelegateImpl::~DevToolsManagerDelegateImpl() {
15 }
16
17 void DevToolsManagerDelegateImpl::Inspect(
18 content::DevToolsAgentHost* agent_host) {
19 if (!agent_host->IsWorker()) {
20 // TODO(horo): Support other types of DevToolsAgentHost when necessary.
21 NOTREACHED() << "Inspect() only supports workers.";
22 }
23 DevToolsWindow::OpenDevToolsWindowForWorker(profile_, agent_host);
24 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698