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

Side by Side Diff: chrome/browser/task_manager/providers/arc/arc_process_whitelist.h

Issue 2655633002: [task_manager] Add ARC process whitelist. (Closed)
Patch Set: Created 3 years, 11 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
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698