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