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 <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/i18n/rtl.h" | 9 #include "base/i18n/rtl.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
11 #include "chrome/browser/task_manager/resource_provider.h" | 11 #include "chrome/browser/task_manager/resource_provider.h" |
12 #include "chrome/browser/task_manager/task_manager.h" | 12 #include "chrome/browser/task_manager/task_manager.h" |
| 13 #include "chrome/grit/generated_resources.h" |
13 #include "components/nacl/common/nacl_process_type.h" | 14 #include "components/nacl/common/nacl_process_type.h" |
14 #include "content/public/browser/browser_child_process_host_iterator.h" | 15 #include "content/public/browser/browser_child_process_host_iterator.h" |
15 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
16 #include "content/public/browser/child_process_data.h" | 17 #include "content/public/browser/child_process_data.h" |
17 #include "grit/generated_resources.h" | |
18 #include "grit/theme_resources.h" | 18 #include "grit/theme_resources.h" |
19 #include "ui/base/l10n/l10n_util.h" | 19 #include "ui/base/l10n/l10n_util.h" |
20 #include "ui/base/resource/resource_bundle.h" | 20 #include "ui/base/resource/resource_bundle.h" |
21 #include "ui/gfx/image/image_skia.h" | 21 #include "ui/gfx/image/image_skia.h" |
22 | 22 |
23 using content::BrowserChildProcessHostIterator; | 23 using content::BrowserChildProcessHostIterator; |
24 using content::BrowserThread; | 24 using content::BrowserThread; |
25 using content::WebContents; | 25 using content::WebContents; |
26 | 26 |
27 namespace task_manager { | 27 namespace task_manager { |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 // This is called on the UI thread. | 327 // This is called on the UI thread. |
328 void ChildProcessResourceProvider::ChildProcessDataRetreived( | 328 void ChildProcessResourceProvider::ChildProcessDataRetreived( |
329 const std::vector<content::ChildProcessData>& child_processes) { | 329 const std::vector<content::ChildProcessData>& child_processes) { |
330 for (size_t i = 0; i < child_processes.size(); ++i) | 330 for (size_t i = 0; i < child_processes.size(); ++i) |
331 AddToTaskManager(child_processes[i]); | 331 AddToTaskManager(child_processes[i]); |
332 | 332 |
333 task_manager_->model()->NotifyDataReady(); | 333 task_manager_->model()->NotifyDataReady(); |
334 } | 334 } |
335 | 335 |
336 } // namespace task_manager | 336 } // namespace task_manager |
OLD | NEW |