OLD | NEW |
| (Empty) |
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. | |
4 | |
5 #ifndef CHROME_BROWSER_TASK_MANAGER_PROVIDERS_WEB_CONTENTS_PANEL_TASK_H_ | |
6 #define CHROME_BROWSER_TASK_MANAGER_PROVIDERS_WEB_CONTENTS_PANEL_TASK_H_ | |
7 | |
8 #include "base/macros.h" | |
9 #include "chrome/browser/task_manager/providers/web_contents/renderer_task.h" | |
10 | |
11 class Panel; | |
12 | |
13 namespace task_manager { | |
14 | |
15 // Defines a task manager representation of WebContents owned by the | |
16 // PanelManager. | |
17 class PanelTask : public RendererTask { | |
18 public: | |
19 PanelTask(Panel* panel, content::WebContents* web_contents); | |
20 ~PanelTask() override; | |
21 | |
22 // task_manager::RendererTask: | |
23 void UpdateTitle() override; | |
24 void UpdateFavicon() override; | |
25 Task::Type GetType() const override; | |
26 | |
27 private: | |
28 base::string16 GetCurrentPanelTitle(Panel* panel) const; | |
29 | |
30 Panel* panel_; | |
31 | |
32 DISALLOW_COPY_AND_ASSIGN(PanelTask); | |
33 }; | |
34 | |
35 } // namespace task_manager | |
36 | |
37 #endif // CHROME_BROWSER_TASK_MANAGER_PROVIDERS_WEB_CONTENTS_PANEL_TASK_H_ | |
OLD | NEW |