OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "build/build_config.h" | 7 #include "build/build_config.h" |
8 | 8 |
9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
10 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
677 return TaskManager::Resource::ZYGOTE; | 677 return TaskManager::Resource::ZYGOTE; |
678 case ChildProcessInfo::SANDBOX_HELPER_PROCESS: | 678 case ChildProcessInfo::SANDBOX_HELPER_PROCESS: |
679 return TaskManager::Resource::SANDBOX_HELPER; | 679 return TaskManager::Resource::SANDBOX_HELPER; |
680 case ChildProcessInfo::GPU_PROCESS: | 680 case ChildProcessInfo::GPU_PROCESS: |
681 return TaskManager::Resource::GPU; | 681 return TaskManager::Resource::GPU; |
682 default: | 682 default: |
683 return TaskManager::Resource::UNKNOWN; | 683 return TaskManager::Resource::UNKNOWN; |
684 } | 684 } |
685 } | 685 } |
686 | 686 |
| 687 bool TaskManagerChildProcessResource::SupportNetworkUsage() const { |
| 688 return network_usage_support_; |
| 689 } |
| 690 |
| 691 void TaskManagerChildProcessResource::SetSupportNetworkUsage() { |
| 692 network_usage_support_ = true; |
| 693 } |
| 694 |
687 //////////////////////////////////////////////////////////////////////////////// | 695 //////////////////////////////////////////////////////////////////////////////// |
688 // TaskManagerChildProcessResourceProvider class | 696 // TaskManagerChildProcessResourceProvider class |
689 //////////////////////////////////////////////////////////////////////////////// | 697 //////////////////////////////////////////////////////////////////////////////// |
690 | 698 |
691 TaskManagerChildProcessResourceProvider:: | 699 TaskManagerChildProcessResourceProvider:: |
692 TaskManagerChildProcessResourceProvider(TaskManager* task_manager) | 700 TaskManagerChildProcessResourceProvider(TaskManager* task_manager) |
693 : updating_(false), | 701 : updating_(false), |
694 task_manager_(task_manager) { | 702 task_manager_(task_manager) { |
695 } | 703 } |
696 | 704 |
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1255 | 1263 |
1256 return &resource_; | 1264 return &resource_; |
1257 } | 1265 } |
1258 | 1266 |
1259 void TaskManagerBrowserProcessResourceProvider::StartUpdating() { | 1267 void TaskManagerBrowserProcessResourceProvider::StartUpdating() { |
1260 task_manager_->AddResource(&resource_); | 1268 task_manager_->AddResource(&resource_); |
1261 } | 1269 } |
1262 | 1270 |
1263 void TaskManagerBrowserProcessResourceProvider::StopUpdating() { | 1271 void TaskManagerBrowserProcessResourceProvider::StopUpdating() { |
1264 } | 1272 } |
OLD | NEW |