| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/child_process_resource_provider.h" | 5 #include "chrome/browser/task_manager/child_process_resource_provider.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <vector> | 9 #include <vector> |
| 8 | 10 |
| 9 #include "base/i18n/rtl.h" | 11 #include "base/i18n/rtl.h" |
| 12 #include "base/macros.h" |
| 10 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 11 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
| 12 #include "chrome/browser/process_resource_usage.h" | 15 #include "chrome/browser/process_resource_usage.h" |
| 13 #include "chrome/browser/task_manager/resource_provider.h" | 16 #include "chrome/browser/task_manager/resource_provider.h" |
| 14 #include "chrome/browser/task_manager/task_manager.h" | 17 #include "chrome/browser/task_manager/task_manager.h" |
| 15 #include "chrome/grit/generated_resources.h" | 18 #include "chrome/grit/generated_resources.h" |
| 16 #include "components/nacl/common/nacl_process_type.h" | 19 #include "components/nacl/common/nacl_process_type.h" |
| 17 #include "content/public/browser/browser_child_process_host.h" | 20 #include "content/public/browser/browser_child_process_host.h" |
| 18 #include "content/public/browser/browser_child_process_host_iterator.h" | 21 #include "content/public/browser/browser_child_process_host_iterator.h" |
| 19 #include "content/public/browser/browser_thread.h" | 22 #include "content/public/browser/browser_thread.h" |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 // This is called on the UI thread. | 388 // This is called on the UI thread. |
| 386 void ChildProcessResourceProvider::ChildProcessDataRetreived( | 389 void ChildProcessResourceProvider::ChildProcessDataRetreived( |
| 387 const std::vector<content::ChildProcessData>& child_processes) { | 390 const std::vector<content::ChildProcessData>& child_processes) { |
| 388 for (size_t i = 0; i < child_processes.size(); ++i) | 391 for (size_t i = 0; i < child_processes.size(); ++i) |
| 389 AddToTaskManager(child_processes[i]); | 392 AddToTaskManager(child_processes[i]); |
| 390 | 393 |
| 391 task_manager_->model()->NotifyDataReady(); | 394 task_manager_->model()->NotifyDataReady(); |
| 392 } | 395 } |
| 393 | 396 |
| 394 } // namespace task_manager | 397 } // namespace task_manager |
| OLD | NEW |