| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 void SubframeTask::UpdateTitle() { | 67 void SubframeTask::UpdateTitle() { |
| 68 // This will be called when the title changes on the WebContents's main frame, | 68 // This will be called when the title changes on the WebContents's main frame, |
| 69 // but this Task represents other frames, so we don't care. | 69 // but this Task represents other frames, so we don't care. |
| 70 } | 70 } |
| 71 | 71 |
| 72 void SubframeTask::UpdateFavicon() { | 72 void SubframeTask::UpdateFavicon() { |
| 73 // This will be called when the favicon changes on the WebContents's main | 73 // This will be called when the favicon changes on the WebContents's main |
| 74 // frame, but this Task represents other frames, so we don't care. | 74 // frame, but this Task represents other frames, so we don't care. |
| 75 } | 75 } |
| 76 | 76 |
| 77 Task* SubframeTask::GetParentTask() const { |
| 78 return main_task_; |
| 79 } |
| 80 |
| 77 void SubframeTask::Activate() { | 81 void SubframeTask::Activate() { |
| 78 // Activate the root task. | 82 // Activate the root task. |
| 79 main_task_->Activate(); | 83 main_task_->Activate(); |
| 80 } | 84 } |
| 81 | 85 |
| 82 } // namespace task_management | 86 } // namespace task_management |
| OLD | NEW |