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

Side by Side Diff: chrome/browser/ui/webui/task_manager_handler.h

Issue 8515001: Revert 109394 - WebUI TaskManager: Add "Activate page" feature. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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) 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
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
44 // Callback for the "inspect" message. 41 // Callback for the "inspect" message.
45 void HandleInspect(const base::ListValue* resource_index); 42 void HandleInspect(const base::ListValue* resource_index);
46 43
47 void EnableTaskManager(const base::ListValue* indexes); 44 void EnableTaskManager(const base::ListValue* indexes);
48 void DisableTaskManager(const base::ListValue* indexes); 45 void DisableTaskManager(const base::ListValue* indexes);
49 void OpenAboutMemory(const base::ListValue* indexes); 46 void OpenAboutMemory(const base::ListValue* indexes);
50 47
51 private: 48 private:
52 bool is_alive(); 49 bool is_alive();
53 50
(...skipping 12 matching lines...) Expand all
66 void OnGroupChanged(int start, int length); 63 void OnGroupChanged(int start, int length);
67 void OnGroupRemoved(int start, int length); 64 void OnGroupRemoved(int start, int length);
68 65
69 // Updates |resource_to_group_table_|. 66 // Updates |resource_to_group_table_|.
70 void UpdateResourceGroupTable(int start, int length); 67 void UpdateResourceGroupTable(int start, int length);
71 68
72 DISALLOW_COPY_AND_ASSIGN(TaskManagerHandler); 69 DISALLOW_COPY_AND_ASSIGN(TaskManagerHandler);
73 }; 70 };
74 71
75 #endif // CHROME_BROWSER_UI_WEBUI_TASK_MANAGER_HANDLER_H_ 72 #endif // CHROME_BROWSER_UI_WEBUI_TASK_MANAGER_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/task_manager/task_manager.cc ('k') | chrome/browser/ui/webui/task_manager_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698