| OLD | NEW |
| 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_EXTENSIONS_API_PROCESSES_PROCESSES_API_H__ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_PROCESSES_PROCESSES_API_H__ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_PROCESSES_PROCESSES_API_H__ | 6 #define CHROME_BROWSER_EXTENSIONS_API_PROCESSES_PROCESSES_API_H__ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 virtual void Observe(int type, | 165 virtual void Observe(int type, |
| 166 const content::NotificationSource& source, | 166 const content::NotificationSource& source, |
| 167 const content::NotificationDetails& details) OVERRIDE; | 167 const content::NotificationDetails& details) OVERRIDE; |
| 168 | 168 |
| 169 void GatherProcessInfo(); | 169 void GatherProcessInfo(); |
| 170 | 170 |
| 171 content::NotificationRegistrar registrar_; | 171 content::NotificationRegistrar registrar_; |
| 172 | 172 |
| 173 // Member variables to store the function parameters | 173 // Member variables to store the function parameters |
| 174 std::vector<int> process_ids_; | 174 std::vector<int> process_ids_; |
| 175 #if defined(ENABLE_TASK_MANAGER) |
| 175 bool memory_; | 176 bool memory_; |
| 177 #endif |
| 176 | 178 |
| 177 DECLARE_EXTENSION_FUNCTION_NAME("experimental.processes.getProcessInfo") | 179 DECLARE_EXTENSION_FUNCTION_NAME("experimental.processes.getProcessInfo") |
| 178 }; | 180 }; |
| 179 | 181 |
| 180 } // namespace extensions | 182 } // namespace extensions |
| 181 | 183 |
| 182 #endif // CHROME_BROWSER_EXTENSIONS_API_PROCESSES_PROCESSES_API_H__ | 184 #endif // CHROME_BROWSER_EXTENSIONS_API_PROCESSES_PROCESSES_API_H__ |
| OLD | NEW |