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

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

Issue 2750463006: ChromePrompt Mojo IPC interface (Closed)
Patch Set: Standard directory layout Created 3 years, 9 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 | « 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
(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 chrome_cleaner.mojom;
6
7 // The behaviours that have been observed for a given UwS.
8 struct ObservedBehaviours {
9 bool ad_injector;
10 bool settings_hijacker;
11 bool extensions_injector;
12 bool dropper;
13 };
14
15 // Information about removable Unwanted Software matched by the Software
16 // Reporter to be shown in the Chrome prompt.
17 struct UwS {
18 // The id of this unwanted software.
19 int32 id;
20
21 // The name of this unwanted software.
22 string name;
23
24 // Behaviors observed for this UwS to be presented to the user in the Chrome
25 // prompt.
26 ObservedBehaviours observed_behaviours;
27
28 // List of fully-qualified paths of the files that will be deleted by the
29 // Chrome Cleanup Tool for this unwanted software.
30 array<string> files_to_delete;
31 };
32
33 [Extensible]
34 enum PromptAcceptance {
35 UNSPECIFIED = 0,
36 // The Chrome prompt was not shown to the user (for example, due to an
37 // experiment run that shouldn't prompt the user or because the user has
38 // been prompted recently).
39 NOT_SHOWN = 1,
40 // The user explicitly accepted the Chrome prompt, but didn't opt into
41 // uploading logs to Google.
42 ACCEPTED_WITHOUT_LOGS = 2,
43 // The user explicitly accepted the Chrome prompt and also opted into
44 // uploading logs to Google.
45 ACCEPTED_WITH_LOGS = 3,
46 // The user explicitly denied the Chrome prompt.
47 DENIED = 4,
48 // The user didn't interact with the Chrome prompt after a while.
49 IGNORED = 5,
50 };
51
52 // Service provided by Chrome to prompt the user to run the Chrome Cleanup Tool
53 // if unwanted software is detected on the system. This service is used by the
54 // Software Reporter Tool so that all user interaction is provided by Chrome.
55 interface ChromePrompt {
56 // Params:
57 // - removable_uws_found: the list of UwS detected by the reporter;
58 // - elevation_required: if the cleaner will need to run in elevated mode.
59 // Returns:
60 // - prompt_acceptance: indicates if the user accepted the prompt; if the
61 // prompt is accepted, it also indicates if logs
62 // uploading is allowed.
63 PromptUser(array<UwS> removable_uws_found, bool elevation_required)
64 => (PromptAcceptance prompt_acceptance);
65 };
OLDNEW
« no previous file with comments | « chrome_cleaner/public/interfaces/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698