OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All Rights Reserved. | 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 | 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 module chrome_cleaner.mojom; | 5 module chrome_cleaner.mojom; |
6 | 6 |
| 7 import "mojo/common/file_path.mojom"; |
| 8 |
7 // The behaviours that have been observed for a given UwS. | 9 // The behaviours that have been observed for a given UwS. |
8 struct ObservedBehaviours { | 10 struct ObservedBehaviours { |
9 bool ad_injector; | 11 bool ad_injector; |
10 bool settings_hijacker; | 12 bool settings_hijacker; |
11 bool extensions_injector; | 13 bool extensions_injector; |
12 bool dropper; | 14 bool dropper; |
13 }; | 15 }; |
14 | 16 |
15 // Information about removable Unwanted Software matched by the Software | 17 // Information about removable Unwanted Software matched by the Software |
16 // Reporter to be shown in the Chrome prompt. | 18 // Reporter to be shown in the Chrome prompt. |
17 struct UwS { | 19 struct UwS { |
18 // The id of this unwanted software. | 20 // The id of this unwanted software. |
19 int32 id; | 21 int32 id; |
20 | 22 |
21 // The name of this unwanted software. | 23 // The name of this unwanted software. |
22 string name; | 24 string name; |
23 | 25 |
24 // Behaviors observed for this UwS to be presented to the user in the Chrome | 26 // Behaviors observed for this UwS to be presented to the user in the Chrome |
25 // prompt. | 27 // prompt. |
26 ObservedBehaviours observed_behaviours; | 28 ObservedBehaviours observed_behaviours; |
27 | 29 |
28 // List of fully-qualified paths of the files that will be deleted by the | 30 // List of fully-qualified paths of the files that will be deleted by the |
29 // Chrome Cleanup Tool for this unwanted software. | 31 // Chrome Cleanup Tool for this unwanted software. |
30 array<string> files_to_delete; | 32 array<mojo.common.mojom.FilePath> files_to_delete; |
31 }; | 33 }; |
32 | 34 |
33 // Indicates if elevation will be required for cleanup. | 35 // Indicates if elevation will be required for cleanup. |
34 [Extensible] | 36 [Extensible] |
35 enum ElevationStatus { | 37 enum ElevationStatus { |
36 NOT_REQUIRED = 0, | 38 NOT_REQUIRED = 0, |
37 REQUIRED = 1, | 39 REQUIRED = 1, |
38 }; | 40 }; |
39 | 41 |
40 [Extensible] | 42 [Extensible] |
(...skipping 22 matching lines...) Expand all Loading... |
63 // Params: | 65 // Params: |
64 // - removable_uws_found: the list of UwS detected by the reporter; | 66 // - removable_uws_found: the list of UwS detected by the reporter; |
65 // - elevation_status: if the cleaner will need to run in elevated mode. | 67 // - elevation_status: if the cleaner will need to run in elevated mode. |
66 // Returns: | 68 // Returns: |
67 // - prompt_acceptance: indicates if the user accepted the prompt; if the | 69 // - prompt_acceptance: indicates if the user accepted the prompt; if the |
68 // prompt is accepted, it also indicates if logs | 70 // prompt is accepted, it also indicates if logs |
69 // uploading is allowed. | 71 // uploading is allowed. |
70 PromptUser(array<UwS> removable_uws_found, ElevationStatus elevation_status) | 72 PromptUser(array<UwS> removable_uws_found, ElevationStatus elevation_status) |
71 => (PromptAcceptance prompt_acceptance); | 73 => (PromptAcceptance prompt_acceptance); |
72 }; | 74 }; |
OLD | NEW |