OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_manager/task_manager_resource_providers.h" | 5 #include "chrome/browser/task_manager/task_manager_resource_providers.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1105 base::Bind( | 1105 base::Bind( |
1106 &TaskManagerChildProcessResourceProvider::ChildProcessDataRetreived, | 1106 &TaskManagerChildProcessResourceProvider::ChildProcessDataRetreived, |
1107 this, child_processes)); | 1107 this, child_processes)); |
1108 } | 1108 } |
1109 | 1109 |
1110 // This is called on the UI thread. | 1110 // This is called on the UI thread. |
1111 void TaskManagerChildProcessResourceProvider::ChildProcessDataRetreived( | 1111 void TaskManagerChildProcessResourceProvider::ChildProcessDataRetreived( |
1112 const std::vector<content::ChildProcessData>& child_processes) { | 1112 const std::vector<content::ChildProcessData>& child_processes) { |
1113 for (size_t i = 0; i < child_processes.size(); ++i) | 1113 for (size_t i = 0; i < child_processes.size(); ++i) |
1114 Add(child_processes[i]); | 1114 Add(child_processes[i]); |
| 1115 |
| 1116 content::NotificationService::current()->Notify( |
| 1117 chrome::NOTIFICATION_TASK_MANAGER_CHILD_PROCESSES_DATA_READY, |
| 1118 content::Source<TaskManagerChildProcessResourceProvider>(this), |
| 1119 content::NotificationService::NoDetails()); |
1115 } | 1120 } |
1116 | 1121 |
1117 //////////////////////////////////////////////////////////////////////////////// | 1122 //////////////////////////////////////////////////////////////////////////////// |
1118 // TaskManagerExtensionProcessResource class | 1123 // TaskManagerExtensionProcessResource class |
1119 //////////////////////////////////////////////////////////////////////////////// | 1124 //////////////////////////////////////////////////////////////////////////////// |
1120 | 1125 |
1121 SkBitmap* TaskManagerExtensionProcessResource::default_icon_ = NULL; | 1126 SkBitmap* TaskManagerExtensionProcessResource::default_icon_ = NULL; |
1122 | 1127 |
1123 TaskManagerExtensionProcessResource::TaskManagerExtensionProcessResource( | 1128 TaskManagerExtensionProcessResource::TaskManagerExtensionProcessResource( |
1124 content::RenderViewHost* render_view_host) | 1129 content::RenderViewHost* render_view_host) |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1499 | 1504 |
1500 return &resource_; | 1505 return &resource_; |
1501 } | 1506 } |
1502 | 1507 |
1503 void TaskManagerBrowserProcessResourceProvider::StartUpdating() { | 1508 void TaskManagerBrowserProcessResourceProvider::StartUpdating() { |
1504 task_manager_->AddResource(&resource_); | 1509 task_manager_->AddResource(&resource_); |
1505 } | 1510 } |
1506 | 1511 |
1507 void TaskManagerBrowserProcessResourceProvider::StopUpdating() { | 1512 void TaskManagerBrowserProcessResourceProvider::StopUpdating() { |
1508 } | 1513 } |
OLD | NEW |