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

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

Issue 290633006: Revert 270907 "Remove knowledge of nacl from content." (Closed) Base URL: svn://svn.chromium.org/chrome/
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
354 bool is_title_valid; 357 bool is_title_valid;
355 base::string16 title; 358 base::string16 title;
356 359
357 bool is_profile_name_valid; 360 bool is_profile_name_valid;
358 base::string16 profile_name; 361 base::string16 profile_name;
359 362
360 // No is_network_usage since default (0) is fine. 363 // No is_network_usage since default (0) is fine.
361 int64 network_usage; 364 int64 network_usage;
362 365
363 bool is_process_id_valid; 366 bool is_process_id_valid;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 size_t video_memory; 406 size_t video_memory;
404 bool video_memory_has_duplicates; 407 bool video_memory_has_duplicates;
405 408
406 bool is_gdi_handles_valid; 409 bool is_gdi_handles_valid;
407 size_t gdi_handles; 410 size_t gdi_handles;
408 size_t gdi_handles_peak; 411 size_t gdi_handles_peak;
409 412
410 bool is_user_handles_valid; 413 bool is_user_handles_valid;
411 size_t user_handles; 414 size_t user_handles;
412 size_t user_handles_peak; 415 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 | « trunk/src/chrome/browser/task_manager/resource_provider.cc ('k') | trunk/src/chrome/browser/task_manager/task_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698