1 // Copyright 2015 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 "chrome/browser/task_management/providers/web_contents/devtools_task.h"
7 #include "content/public/browser/web_contents.h"
9 namespace task_management
{
11 DevToolsTask::DevToolsTask(content::WebContents
* web_contents
)
12 : RendererTask(RendererTask::GetTitleFromWebContents(web_contents
),
13 RendererTask::GetFaviconFromWebContents(web_contents
),
15 web_contents
->GetRenderProcessHost()) {
18 DevToolsTask::~DevToolsTask() {
21 // task_management::RendererTask:
22 void DevToolsTask::OnTitleChanged(content::NavigationEntry
* entry
) {
23 // In the case of a devtools tab, this won't happen so we ignore it.
24 // TODO(afakhry): Confirm that it doesn't happen in practice.
28 void DevToolsTask::OnFaviconChanged() {
29 // In the case of a devtools tab, this won't happen so we ignore it.
30 // TODO(afakhry): Confirm that it doesn't happen in practice.
34 } // namespace task_management