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_SUBFRAME_TASK_H_ | 5 #ifndef CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_SUBFRAME_TASK_H_ |
6 #define CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_SUBFRAME_TASK_H_ | 6 #define CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_SUBFRAME_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 content { | 11 namespace content { |
11 class RenderFrameHost; | 12 class RenderFrameHost; |
12 class WebContents; | 13 class WebContents; |
13 } // namespace content | 14 } // namespace content |
14 | 15 |
15 namespace task_management { | 16 namespace task_management { |
16 | 17 |
17 // Defines a concrete renderer task that can represent processes hosting | 18 // Defines a concrete renderer task that can represent processes hosting |
18 // out-of-process iframes. | 19 // out-of-process iframes. |
19 class SubframeTask : public RendererTask { | 20 class SubframeTask : public RendererTask { |
20 public: | 21 public: |
21 SubframeTask(content::RenderFrameHost* render_frame_host, | 22 SubframeTask(content::RenderFrameHost* render_frame_host, |
22 content::WebContents* web_contents); | 23 content::WebContents* web_contents); |
23 ~SubframeTask() override; | 24 ~SubframeTask() override; |
24 | 25 |
25 // task_management::RendererTask: | 26 // task_management::RendererTask: |
26 void UpdateTitle() override; | 27 void UpdateTitle() override; |
27 void UpdateFavicon() override; | 28 void UpdateFavicon() override; |
28 | 29 |
29 private: | 30 private: |
30 DISALLOW_COPY_AND_ASSIGN(SubframeTask); | 31 DISALLOW_COPY_AND_ASSIGN(SubframeTask); |
31 }; | 32 }; |
32 | 33 |
33 } // namespace task_management | 34 } // namespace task_management |
34 | 35 |
35 | 36 |
36 #endif // CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_SUBFRAME_TASK_H
_ | 37 #endif // CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_SUBFRAME_TASK_H
_ |
OLD | NEW |