| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_TASK_MANAGER_PROVIDERS_ARC_ARC_PROCESS_WHITELIST_H_ |
| 6 #define CHROME_BROWSER_TASK_MANAGER_PROVIDERS_ARC_ARC_PROCESS_WHITELIST_H_ |
| 7 |
| 8 #include <set> |
| 9 #include <string> |
| 10 |
| 11 #include "chrome/browser/chromeos/arc/process/arc_process.h" |
| 12 |
| 13 namespace task_manager { |
| 14 |
| 15 // The many ARC system apps can make the task manager noisy. This whitelist |
| 16 // determines whether to show an ARC process in the task manager or not. |
| 17 // Apps can be whitelisted explicitly, or allowed based on their ProcessState. |
| 18 // See crbug.com/654564 |
| 19 class ArcProcessWhitelist { |
| 20 public: |
| 21 // Zero argument constructor will use a default whitelist. |
| 22 ArcProcessWhitelist(); |
| 23 explicit ArcProcessWhitelist(std::set<std::string>&& whitelist); |
| 24 ~ArcProcessWhitelist(); |
| 25 |
| 26 bool ShouldDisplayProcess(const arc::ArcProcess& process) const; |
| 27 |
| 28 private: |
| 29 std::set<std::string> whitelist_; |
| 30 |
| 31 DISALLOW_COPY_AND_ASSIGN(ArcProcessWhitelist); |
| 32 }; |
| 33 |
| 34 } // namespace task_manager |
| 35 |
| 36 #endif // CHROME_BROWSER_TASK_MANAGER_PROVIDERS_ARC_ARC_PROCESS_WHITELIST_H_ |
| OLD | NEW |