Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Side by Side Diff: chrome/browser/task_management/providers/web_contents/subframe_task.cc

Issue 2028753002: Make Task Manager sort more meaningful (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use a default argument instead of a second ctor. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698