| 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 #include "chrome/browser/task_management/providers/web_contents/subframe_task.h" | 5 #include "chrome/browser/task_management/providers/web_contents/subframe_task.h" |
| 6 | 6 |
| 7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
| 8 #include "chrome/grit/generated_resources.h" | 8 #include "chrome/grit/generated_resources.h" |
| 9 #include "content/public/browser/browser_context.h" | 9 #include "content/public/browser/browser_context.h" |
| 10 #include "content/public/browser/render_frame_host.h" | 10 #include "content/public/browser/render_frame_host.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 void SubframeTask::UpdateTitle() { | 48 void SubframeTask::UpdateTitle() { |
| 49 // This will be called when the title changes on the WebContents's main frame, | 49 // This will be called when the title changes on the WebContents's main frame, |
| 50 // but this Task represents other frames, so we don't care. | 50 // but this Task represents other frames, so we don't care. |
| 51 } | 51 } |
| 52 | 52 |
| 53 void SubframeTask::UpdateFavicon() { | 53 void SubframeTask::UpdateFavicon() { |
| 54 // This will be called when the favicon changes on the WebContents's main | 54 // This will be called when the favicon changes on the WebContents's main |
| 55 // frame, but this Task represents other frames, so we don't care. | 55 // frame, but this Task represents other frames, so we don't care. |
| 56 } | 56 } |
| 57 | 57 |
| 58 Task* SubframeTask::GetParentTask() const { |
| 59 return main_task_; |
| 60 } |
| 61 |
| 58 void SubframeTask::Activate() { | 62 void SubframeTask::Activate() { |
| 59 // Activate the root task. | 63 // Activate the root task. |
| 60 main_task_->Activate(); | 64 main_task_->Activate(); |
| 61 } | 65 } |
| 62 | 66 |
| 63 } // namespace task_management | 67 } // namespace task_management |
| OLD | NEW |