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

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

Issue 10105030: TabContents -> WebContentsImpl, part 21. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <utility> 10 #include <utility>
(...skipping 17 matching lines...) Expand all
28 28
29 namespace base { 29 namespace base {
30 class ProcessMetrics; 30 class ProcessMetrics;
31 } 31 }
32 namespace net { 32 namespace net {
33 class URLRequest; 33 class URLRequest;
34 } 34 }
35 35
36 #define TASKMANAGER_RESOURCE_TYPE_LIST(def) \ 36 #define TASKMANAGER_RESOURCE_TYPE_LIST(def) \
37 def(BROWSER) /* The main browser process. */ \ 37 def(BROWSER) /* The main browser process. */ \
38 def(RENDERER) /* A normal TabContents renderer process. */ \ 38 def(RENDERER) /* A normal WebContents renderer process. */ \
39 def(EXTENSION) /* An extension or app process. */ \ 39 def(EXTENSION) /* An extension or app process. */ \
40 def(NOTIFICATION) /* A notification process. */ \ 40 def(NOTIFICATION) /* A notification process. */ \
41 def(PLUGIN) /* A plugin process. */ \ 41 def(PLUGIN) /* A plugin process. */ \
42 def(WORKER) /* A web worker process. */ \ 42 def(WORKER) /* A web worker process. */ \
43 def(NACL) /* A NativeClient loader or broker process. */ \ 43 def(NACL) /* A NativeClient loader or broker process. */ \
44 def(UTILITY) /* A browser utility process. */ \ 44 def(UTILITY) /* A browser utility process. */ \
45 def(PROFILE_IMPORT) /* A profile import process. */ \ 45 def(PROFILE_IMPORT) /* A profile import process. */ \
46 def(ZYGOTE) /* A Linux zygote process. */ \ 46 def(ZYGOTE) /* A Linux zygote process. */ \
47 def(SANDBOX_HELPER) /* A sandbox helper process. */ \ 47 def(SANDBOX_HELPER) /* A sandbox helper process. */ \
48 def(GPU) /* A graphics process. */ 48 def(GPU) /* A graphics process. */
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 base::ProcessHandle GetResourceProcessHandle(int index) const; 378 base::ProcessHandle GetResourceProcessHandle(int index) const;
379 379
380 // Returns the unique child process ID generated by Chromium, not the OS 380 // Returns the unique child process ID generated by Chromium, not the OS
381 // process id. This is used to identify processes internally and for 381 // process id. This is used to identify processes internally and for
382 // extensions. It is not meant to be displayed to the user. 382 // extensions. It is not meant to be displayed to the user.
383 int GetUniqueChildProcessId(int index) const; 383 int GetUniqueChildProcessId(int index) const;
384 384
385 // Returns the type of the given resource. 385 // Returns the type of the given resource.
386 TaskManager::Resource::Type GetResourceType(int index) const; 386 TaskManager::Resource::Type GetResourceType(int index) const;
387 387
388 // Returns TabContents of given resource or NULL if not applicable. 388 // Returns TabContentsWrapper of given resource or NULL if not applicable.
389 TabContentsWrapper* GetResourceTabContents(int index) const; 389 TabContentsWrapper* GetResourceTabContents(int index) const;
390 390
391 // Returns Extension of given resource or NULL if not applicable. 391 // Returns Extension of given resource or NULL if not applicable.
392 const Extension* GetResourceExtension(int index) const; 392 const Extension* GetResourceExtension(int index) const;
393 393
394 void AddResource(TaskManager::Resource* resource); 394 void AddResource(TaskManager::Resource* resource);
395 void RemoveResource(TaskManager::Resource* resource); 395 void RemoveResource(TaskManager::Resource* resource);
396 396
397 void StartUpdating(); 397 void StartUpdating();
398 void StopUpdating(); 398 void StopUpdating();
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 // A salt lick for the goats. 548 // A salt lick for the goats.
549 uint64 goat_salt_; 549 uint64 goat_salt_;
550 550
551 // Resource identifier that is unique within single session. 551 // Resource identifier that is unique within single session.
552 int last_unique_id_; 552 int last_unique_id_;
553 553
554 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); 554 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel);
555 }; 555 };
556 556
557 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ 557 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/tabs/tab_strip_model_unittest.cc ('k') | chrome/browser/task_manager/task_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698