| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_resource_providers.h" | 5 #include "chrome/browser/task_manager_resource_providers.h" |
| 6 | 6 |
| 7 #if defined(OS_WIN) |
| 8 #include "app/gfx/icon_util.h" |
| 9 #endif // defined(OS_WIN) |
| 7 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
| 8 #include "app/resource_bundle.h" | 11 #include "app/resource_bundle.h" |
| 9 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 10 #include "base/file_version_info.h" | 13 #include "base/file_version_info.h" |
| 11 #include "base/message_loop.h" | 14 #include "base/message_loop.h" |
| 12 #include "base/process_util.h" | 15 #include "base/process_util.h" |
| 13 #include "base/stl_util-inl.h" | 16 #include "base/stl_util-inl.h" |
| 14 #include "base/string_util.h" | 17 #include "base/string_util.h" |
| 15 #include "chrome/app/chrome_dll_resource.h" | 18 #include "chrome/app/chrome_dll_resource.h" |
| 16 #include "chrome/browser/browser_process.h" | 19 #include "chrome/browser/browser_process.h" |
| 17 #include "chrome/browser/browser_list.h" | 20 #include "chrome/browser/browser_list.h" |
| 18 #include "chrome/browser/renderer_host/render_process_host.h" | 21 #include "chrome/browser/renderer_host/render_process_host.h" |
| 19 #include "chrome/browser/renderer_host/resource_message_filter.h" | 22 #include "chrome/browser/renderer_host/resource_message_filter.h" |
| 20 #include "chrome/browser/tab_contents/tab_util.h" | 23 #include "chrome/browser/tab_contents/tab_util.h" |
| 21 #include "chrome/browser/tab_contents/tab_contents.h" | 24 #include "chrome/browser/tab_contents/tab_contents.h" |
| 22 #include "chrome/common/child_process_host.h" | 25 #include "chrome/common/child_process_host.h" |
| 23 #include "chrome/common/notification_service.h" | 26 #include "chrome/common/notification_service.h" |
| 24 #if defined(OS_WIN) | |
| 25 #include "chrome/common/gfx/icon_util.h" | |
| 26 #endif // defined(OS_WIN) | |
| 27 #include "grit/generated_resources.h" | 27 #include "grit/generated_resources.h" |
| 28 #include "grit/theme_resources.h" | 28 #include "grit/theme_resources.h" |
| 29 | 29 |
| 30 //////////////////////////////////////////////////////////////////////////////// | 30 //////////////////////////////////////////////////////////////////////////////// |
| 31 // TaskManagerTabContentsResource class | 31 // TaskManagerTabContentsResource class |
| 32 //////////////////////////////////////////////////////////////////////////////// | 32 //////////////////////////////////////////////////////////////////////////////// |
| 33 | 33 |
| 34 TaskManagerTabContentsResource::TaskManagerTabContentsResource( | 34 TaskManagerTabContentsResource::TaskManagerTabContentsResource( |
| 35 TabContents* tab_contents) | 35 TabContents* tab_contents) |
| 36 : tab_contents_(tab_contents) { | 36 : tab_contents_(tab_contents) { |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 517 | 517 |
| 518 return &resource_; | 518 return &resource_; |
| 519 } | 519 } |
| 520 | 520 |
| 521 void TaskManagerBrowserProcessResourceProvider::StartUpdating() { | 521 void TaskManagerBrowserProcessResourceProvider::StartUpdating() { |
| 522 task_manager_->AddResource(&resource_); | 522 task_manager_->AddResource(&resource_); |
| 523 } | 523 } |
| 524 | 524 |
| 525 void TaskManagerBrowserProcessResourceProvider::StopUpdating() { | 525 void TaskManagerBrowserProcessResourceProvider::StopUpdating() { |
| 526 } | 526 } |
| OLD | NEW |