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_PRERENDER_TASK_H_ | 5 #ifndef CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_PRERENDER_TASK_H_ |
6 #define CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_PRERENDER_TASK_H_ | 6 #define CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_PRERENDER_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 namespace task_management { | 11 namespace task_management { |
11 | 12 |
12 // Defines a task manager representation of WebContents owned by the | 13 // Defines a task manager representation of WebContents owned by the |
13 // PrerenderManager. | 14 // PrerenderManager. |
14 class PrerenderTask : public RendererTask { | 15 class PrerenderTask : public RendererTask { |
15 public: | 16 public: |
16 explicit PrerenderTask(content::WebContents* web_contents); | 17 explicit PrerenderTask(content::WebContents* web_contents); |
17 ~PrerenderTask() override; | 18 ~PrerenderTask() override; |
18 | 19 |
19 // task_management::RendererTask: | 20 // task_management::RendererTask: |
20 void UpdateTitle() override; | 21 void UpdateTitle() override; |
21 void UpdateFavicon() override; | 22 void UpdateFavicon() override; |
22 | 23 |
23 private: | 24 private: |
24 DISALLOW_COPY_AND_ASSIGN(PrerenderTask); | 25 DISALLOW_COPY_AND_ASSIGN(PrerenderTask); |
25 }; | 26 }; |
26 | 27 |
27 } // namespace task_management | 28 } // namespace task_management |
28 | 29 |
29 #endif // CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_PRERENDER_TASK_
H_ | 30 #endif // CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_PRERENDER_TASK_
H_ |
OLD | NEW |