| 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 "base/macros.h" |
| 9 #include "chrome/browser/task_management/providers/web_contents/renderer_task.h" | 9 #include "chrome/browser/task_management/providers/web_contents/renderer_task.h" |
| 10 | 10 |
| 11 namespace content { | 11 namespace content { |
| 12 class RenderFrameHost; | 12 class RenderFrameHost; |
| 13 class WebContents; | 13 class WebContents; |
| 14 } // namespace content | 14 } // namespace content |
| 15 | 15 |
| 16 namespace task_management { | 16 namespace task_management { |
| 17 | 17 |
| 18 // Defines a concrete renderer task that can represent processes hosting | 18 // Defines a concrete renderer task that can represent processes hosting |
| 19 // out-of-process iframes. | 19 // out-of-process iframes. |
| 20 class SubframeTask : public RendererTask { | 20 class SubframeTask : public RendererTask { |
| 21 public: | 21 public: |
| 22 SubframeTask(content::RenderFrameHost* render_frame_host, | 22 SubframeTask(content::RenderFrameHost* render_frame_host, |
| 23 content::WebContents* web_contents); | 23 content::WebContents* web_contents, |
| 24 RendererTask* main_task); |
| 24 ~SubframeTask() override; | 25 ~SubframeTask() override; |
| 25 | 26 |
| 26 // task_management::RendererTask: | 27 // task_management::RendererTask: |
| 27 void UpdateTitle() override; | 28 void UpdateTitle() override; |
| 28 void UpdateFavicon() override; | 29 void UpdateFavicon() override; |
| 30 void Activate() override; |
| 29 | 31 |
| 30 private: | 32 private: |
| 33 // The task for the main frame of this WebContents. |
| 34 RendererTask* main_task_; |
| 31 DISALLOW_COPY_AND_ASSIGN(SubframeTask); | 35 DISALLOW_COPY_AND_ASSIGN(SubframeTask); |
| 32 }; | 36 }; |
| 33 | 37 |
| 34 } // namespace task_management | 38 } // namespace task_management |
| 35 | 39 |
| 36 | 40 |
| 37 #endif // CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_SUBFRAME_TASK_H
_ | 41 #endif // CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_SUBFRAME_TASK_H
_ |
| OLD | NEW |