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 #ifndef CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_PANEL_TASK_H_
6 #define CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_PANEL_TASK_H_
8 #include "chrome/browser/task_management/providers/web_contents/renderer_task.h"
12 namespace task_management
{
14 // Defines a task manager representation of WebContents owned by the
16 class PanelTask
: public RendererTask
{
18 PanelTask(Panel
* panel
, content::WebContents
* web_contents
);
19 ~PanelTask() override
;
21 // task_management::RendererTask:
22 void OnTitleChanged(content::NavigationEntry
* entry
) override
;
23 void OnFaviconChanged() override
;
24 Task::Type
GetType() const override
;
27 base::string16
GetCurrentPanelTitle(Panel
* panel
) const;
31 DISALLOW_COPY_AND_ASSIGN(PanelTask
);
34 } // namespace task_management
36 #endif // CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_PANEL_TASK_H_