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

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

Issue 2966453002: Chrome Cleaner UI: Add logs upload permission checkbox to the dialog (Closed)
Patch Set: More comments Created 3 years, 5 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
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 // IMPORTANT NOTE: Avoid adding dependencies to typemapped .mojom files. 7 // IMPORTANT NOTE: Avoid adding dependencies to typemapped .mojom files.
8 // Enabling typemaps currently (as of July 2017) requires indirectly depending 8 // Enabling typemaps currently (as of July 2017) requires indirectly depending
9 // on all existing typemap definitions. The Chrome Cleaner is built 9 // on all existing typemap definitions. The Chrome Cleaner is built
10 // independently from Chromium and would like to avoid these dependencies. 10 // independently from Chromium and would like to avoid these dependencies.
11 11
12 // Once it's possible to specify a limited subset of typemaps to use, be 12 // Once it's possible to specify a limited subset of typemaps to use, be
13 // careful not to add dependencies to [Native] mojo structures. The wire format 13 // careful not to add dependencies to [Native] mojo structures. The wire format
14 // for [Native] structs is not guaranteed to be consistent between versions. 14 // for [Native] structs is not guaranteed to be consistent between versions.
15 15
16 [Extensible] 16 [Extensible]
17 enum PromptAcceptance { 17 enum PromptAcceptance {
18 UNSPECIFIED = 0, 18 UNSPECIFIED = 0,
19 // The Chrome prompt was not shown to the user (for example, due to an 19 // The user explicitly accepted the cleanup operation and cleaner logs
20 // experiment run that shouldn't prompt the user or because the user has 20 // upload is allowed.
21 // been prompted recently). 21 ACCEPTED_WITH_LOGS = 1,
22 NOT_SHOWN = 1, 22 // The user explicitly accepted the cleanup operation and cleaner logs
23 // The user explicitly accepted the Chrome prompt. 23 // upload is not allowed.
24 ACCEPTED = 2, 24 ACCEPTED_WITHOUT_LOGS = 2,
25 // The user explicitly denied the Chrome prompt. 25 // The user explicitly denied the Chrome prompt.
26 DENIED = 3, 26 DENIED = 3,
27 // The user didn't interact with the Chrome prompt after a while. 27 NUM_VALUES,
28 IGNORED = 4,
29 }; 28 };
30 29
31 struct FilePath { 30 struct FilePath {
32 array<uint16> value; 31 array<uint16> value;
33 }; 32 };
34 33
35 // Service provided by Chrome to prompt the user to start a cleanup if the 34 // Service provided by Chrome to prompt the user to start a cleanup if the
36 // Chrome Cleanup Tool detects unwanted software on the system. 35 // Chrome Cleanup Tool detects unwanted software on the system.
37 interface ChromePrompt { 36 interface ChromePrompt {
38 // Params: 37 // Params:
39 // - removable_uws_found: list of fully-qualified paths of the files that 38 // - removable_uws_found: list of fully-qualified paths of the files that
40 // will be deleted by the Chrome Cleanup Tool. 39 // will be deleted by the Chrome Cleanup Tool.
41 // Returns: 40 // Returns:
42 // - prompt_acceptance: indicates if the user accepted the prompt. 41 // - prompt_acceptance: indicates if the user accepted the prompt.
43 PromptUser(array<FilePath> files_to_delete) 42 PromptUser(array<FilePath> files_to_delete)
44 => (PromptAcceptance prompt_acceptance); 43 => (PromptAcceptance prompt_acceptance);
45 }; 44 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698