Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Side by Side Diff: chrome/browser/task_manager/task_manager_resource_providers.cc

Issue 5648004: Add the "virtual" keyword on method overrides that are missing it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Missing file Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/task_manager/task_manager_resource_providers.h ('k') | chrome/browser/ui/views/notifications/balloon_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698