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

Side by Side Diff: components/chrome_cleaner/public/interfaces/chrome_prompt.mojom

Issue 2842163003: Use mojo.common.mojom.FilePath to represent file paths (Closed)
Patch Set: Use mojo.common.mojom.FilePath to represent file paths Created 3 years, 7 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
« no previous file with comments | « components/chrome_cleaner/public/interfaces/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 };
OLDNEW
« no previous file with comments | « components/chrome_cleaner/public/interfaces/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698