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_TAB_CONTENTS_TASK_H_
6 #define CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_TAB_CONTENTS_TASK_H_
8 #include "chrome/browser/task_management/providers/web_contents/renderer_task.h"
10 namespace task_management
{
12 // Defines a task manager representation of WebContents owned by the
14 class TabContentsTask
: public RendererTask
{
16 explicit TabContentsTask(content::WebContents
* web_contents
);
17 ~TabContentsTask() override
;
19 // task_management::RendererTask:
20 void UpdateTitle() override
;
21 void UpdateFavicon() override
;
22 Type
GetType() const override
;
25 base::string16
GetCurrentTitle() const;
27 DISALLOW_COPY_AND_ASSIGN(TabContentsTask
);
30 } // namespace task_management
32 #endif // CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_TAB_CONTENTS_TASK_H_