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 module pipa.mojom; | |
joenotcharles
2017/03/15 16:10:00
I wonder if we should use the name "chrome_cleaner
grt (UTC plus 2)
2017/03/16 09:02:11
$0.02: "pipa" means nothing to me, and is counter
ftirelo
2017/03/21 16:54:28
Done.
ftirelo
2017/03/21 16:54:28
Moved the code to the chrome_cleaner namespace and
| |
6 | |
7 enum ObservedBehavior { | |
8 UNSPECIFIED = 0, | |
9 ADS_INJECTOR = 1, | |
10 SETTINGS_HIJACKER = 2, | |
11 BROWSER_HIJACKER = 3, | |
12 }; | |
13 | |
14 // Information about removable Unwanted Software matched by the Software | |
15 // Reporter to be shown in the Chrome prompt. | |
16 struct UwS { | |
17 // The name of this unwanted software. | |
18 string name; | |
joenotcharles
2017/03/15 16:10:00
Should we include the ID here too?
ftirelo
2017/03/21 16:54:28
Done.
| |
19 | |
20 // List of behaviors to be presented to the user. | |
21 array<ObservedBehavior> observed_behaviours; | |
22 | |
23 // List of fully-qualified paths of the files that will be deleted by the | |
24 // Chrome Cleanup Tool for this unwanted software. | |
25 array<string> files_to_delete; | |
26 }; | |
27 | |
28 // A request sent by the Software Reporter Tool to Chrome requiring the user | |
29 // to be prompted. | |
30 struct PromptUserRequest { | |
31 // The list of removable UwS detected by the Software Reporter Tool. | |
32 array<UwS> removable_uws_found; | |
33 | |
34 // If true, the Chrome Cleanup Tool will need to run elevated. | |
35 bool elevation_required; | |
36 }; | |
37 | |
38 // The response sent by Chrome to the Software Reporter Tool with the user | |
39 // acceptance result. | |
40 struct PromptUserResponse { | |
41 // If true, the user accepted the prompt. | |
42 bool prompt_accepted; | |
43 | |
44 // If true, the user agrees with sending detailed logs information to Google. | |
csharp
2017/03/15 17:22:34
nit: Worth also mentioning crashes? Maybe the vari
ftirelo
2017/03/21 16:54:28
We will not send crash reports for users in SBER2,
| |
45 bool logs_uploading_enabled; | |
46 }; | |
47 | |
48 // Service provided by Chrome to prompt the user to run the Chrome Cleanup Tool | |
49 // if unwanted software is detected in the system. This service is used by the | |
50 // Software Reporter Tool so that all user interaction is provided by Chrome. | |
51 interface ChromePrompt { | |
52 PromptUser(PromptUserRequest request) => (PromptUserResponse response); | |
joenotcharles
2017/03/15 16:10:00
I think the Request / Response structs obscure wha
ftirelo
2017/03/21 16:54:28
Done.
| |
53 }; | |
OLD | NEW |