OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UI_WEBUI_TASK_MANAGER_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_TASK_MANAGER_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_TASK_MANAGER_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_TASK_MANAGER_HANDLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 #include "content/browser/webui/web_ui.h" | 10 #include "content/browser/webui/web_ui.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 virtual void OnItemsAdded(int start, int length) OVERRIDE; | 31 virtual void OnItemsAdded(int start, int length) OVERRIDE; |
32 // Invoked when a range of items has been removed. | 32 // Invoked when a range of items has been removed. |
33 virtual void OnItemsRemoved(int start, int length) OVERRIDE; | 33 virtual void OnItemsRemoved(int start, int length) OVERRIDE; |
34 | 34 |
35 // WebUIMessageHandler implementation. | 35 // WebUIMessageHandler implementation. |
36 virtual void RegisterMessages() OVERRIDE; | 36 virtual void RegisterMessages() OVERRIDE; |
37 | 37 |
38 // Callback for the "killProcess" message. | 38 // Callback for the "killProcess" message. |
39 void HandleKillProcess(const base::ListValue* indexes); | 39 void HandleKillProcess(const base::ListValue* indexes); |
40 | 40 |
| 41 // Callback for the "activatePage" message. |
| 42 void HandleActivatePage(const base::ListValue* resource_index); |
| 43 |
41 // Callback for the "inspect" message. | 44 // Callback for the "inspect" message. |
42 void HandleInspect(const base::ListValue* resource_index); | 45 void HandleInspect(const base::ListValue* resource_index); |
43 | 46 |
44 void EnableTaskManager(const base::ListValue* indexes); | 47 void EnableTaskManager(const base::ListValue* indexes); |
45 void DisableTaskManager(const base::ListValue* indexes); | 48 void DisableTaskManager(const base::ListValue* indexes); |
46 void OpenAboutMemory(const base::ListValue* indexes); | 49 void OpenAboutMemory(const base::ListValue* indexes); |
47 | 50 |
48 private: | 51 private: |
49 bool is_alive(); | 52 bool is_alive(); |
50 | 53 |
(...skipping 12 matching lines...) Expand all Loading... |
63 void OnGroupChanged(int start, int length); | 66 void OnGroupChanged(int start, int length); |
64 void OnGroupRemoved(int start, int length); | 67 void OnGroupRemoved(int start, int length); |
65 | 68 |
66 // Updates |resource_to_group_table_|. | 69 // Updates |resource_to_group_table_|. |
67 void UpdateResourceGroupTable(int start, int length); | 70 void UpdateResourceGroupTable(int start, int length); |
68 | 71 |
69 DISALLOW_COPY_AND_ASSIGN(TaskManagerHandler); | 72 DISALLOW_COPY_AND_ASSIGN(TaskManagerHandler); |
70 }; | 73 }; |
71 | 74 |
72 #endif // CHROME_BROWSER_UI_WEBUI_TASK_MANAGER_HANDLER_H_ | 75 #endif // CHROME_BROWSER_UI_WEBUI_TASK_MANAGER_HANDLER_H_ |
OLD | NEW |