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

Side by Side Diff: chrome/browser/task_manager/task_manager.h

Issue 286143010: Remove knowledge of nacl from content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ 5 #ifndef CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_
6 #define CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ 6 #define CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 #else 344 #else
345 static const int kUpdateTimeMs = 1000; 345 static const int kUpdateTimeMs = 1000;
346 #endif 346 #endif
347 347
348 // Values cached per resource. Values are validated on demand. The is_XXX 348 // Values cached per resource. Values are validated on demand. The is_XXX
349 // members indicate if a value is valid. 349 // members indicate if a value is valid.
350 struct PerResourceValues { 350 struct PerResourceValues {
351 PerResourceValues(); 351 PerResourceValues();
352 ~PerResourceValues(); 352 ~PerResourceValues();
353 353
354 bool is_nacl_debug_stub_port_valid;
355 int nacl_debug_stub_port;
356
357 bool is_title_valid; 354 bool is_title_valid;
358 base::string16 title; 355 base::string16 title;
359 356
360 bool is_profile_name_valid; 357 bool is_profile_name_valid;
361 base::string16 profile_name; 358 base::string16 profile_name;
362 359
363 // No is_network_usage since default (0) is fine. 360 // No is_network_usage since default (0) is fine.
364 int64 network_usage; 361 int64 network_usage;
365 362
366 bool is_process_id_valid; 363 bool is_process_id_valid;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 size_t video_memory; 403 size_t video_memory;
407 bool video_memory_has_duplicates; 404 bool video_memory_has_duplicates;
408 405
409 bool is_gdi_handles_valid; 406 bool is_gdi_handles_valid;
410 size_t gdi_handles; 407 size_t gdi_handles;
411 size_t gdi_handles_peak; 408 size_t gdi_handles_peak;
412 409
413 bool is_user_handles_valid; 410 bool is_user_handles_valid;
414 size_t user_handles; 411 size_t user_handles;
415 size_t user_handles_peak; 412 size_t user_handles_peak;
413
414 bool is_nacl_debug_stub_port_valid;
415 int nacl_debug_stub_port;
416 }; 416 };
417 417
418 typedef std::vector<task_manager::Resource*> ResourceList; 418 typedef std::vector<task_manager::Resource*> ResourceList;
419 typedef std::vector<scoped_refptr<task_manager::ResourceProvider> > 419 typedef std::vector<scoped_refptr<task_manager::ResourceProvider> >
420 ResourceProviderList; 420 ResourceProviderList;
421 typedef std::map<base::ProcessHandle, ResourceList*> GroupMap; 421 typedef std::map<base::ProcessHandle, ResourceList*> GroupMap;
422 typedef std::map<base::ProcessHandle, base::ProcessMetrics*> MetricsMap; 422 typedef std::map<base::ProcessHandle, base::ProcessMetrics*> MetricsMap;
423 typedef std::map<task_manager::Resource*, int64> ResourceValueMap; 423 typedef std::map<task_manager::Resource*, int64> ResourceValueMap;
424 typedef std::map<task_manager::Resource*, 424 typedef std::map<task_manager::Resource*,
425 PerResourceValues> PerResourceCache; 425 PerResourceValues> PerResourceCache;
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 // All per-Resource values are stored here. 564 // All per-Resource values are stored here.
565 mutable PerResourceCache per_resource_cache_; 565 mutable PerResourceCache per_resource_cache_;
566 566
567 // All per-Process values are stored here. 567 // All per-Process values are stored here.
568 mutable PerProcessCache per_process_cache_; 568 mutable PerProcessCache per_process_cache_;
569 569
570 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); 570 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel);
571 }; 571 };
572 572
573 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ 573 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/task_manager/resource_provider.cc ('k') | chrome/browser/task_manager/task_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698