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_BACKGROUND_CONTENTS_TASK_H_
6 #define CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_BACKGROUND_CONTENTS_TASK_H_
8 #include "chrome/browser/background/background_contents.h"
9 #include "chrome/browser/task_management/providers/web_contents/renderer_task.h"
11 namespace task_management
{
13 // Defines a RendererTask that represents background |WebContents|.
14 class BackgroundContentsTask
: public RendererTask
{
16 BackgroundContentsTask(const base::string16
& title
,
17 BackgroundContents
* background_contents
);
18 ~BackgroundContentsTask() override
;
20 // task_management::RendererTask:
21 void UpdateTitle() override
;
22 void UpdateFavicon() override
;
25 DISALLOW_COPY_AND_ASSIGN(BackgroundContentsTask
);
28 } // namespace task_management
30 #endif // CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_BACKGROUND_CONTENTS_TASK_H_