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 | |
9 [Extensible] | 7 [Extensible] |
10 enum PromptAcceptance { | 8 enum PromptAcceptance { |
11 UNSPECIFIED = 0, | 9 UNSPECIFIED = 0, |
12 // The Chrome prompt was not shown to the user (for example, due to an | 10 // The Chrome prompt was not shown to the user (for example, due to an |
13 // experiment run that shouldn't prompt the user or because the user has | 11 // experiment run that shouldn't prompt the user or because the user has |
14 // been prompted recently). | 12 // been prompted recently). |
15 NOT_SHOWN = 1, | 13 NOT_SHOWN = 1, |
16 // The user explicitly accepted the Chrome prompt. | 14 // The user explicitly accepted the Chrome prompt. |
17 ACCEPTED = 2, | 15 ACCEPTED = 2, |
18 // The user explicitly denied the Chrome prompt. | 16 // The user explicitly denied the Chrome prompt. |
19 DENIED = 3, | 17 DENIED = 3, |
20 // The user didn't interact with the Chrome prompt after a while. | 18 // The user didn't interact with the Chrome prompt after a while. |
21 IGNORED = 4, | 19 IGNORED = 4, |
22 }; | 20 }; |
23 | 21 |
22 struct FilePath { | |
23 // This isn't a string since Mojo strings must be valid utf8, and the paths | |
24 // aren't guaranteed to be valid utf8. | |
Fabio Tirelo
2017/06/12 14:04:50
Mojo's string16 are also mapped to base. I think w
proberge
2017/06/12 17:49:30
Done.
| |
25 array<uint16> value; | |
26 }; | |
27 | |
24 // Service provided by Chrome to prompt the user to start a cleanup if the | 28 // Service provided by Chrome to prompt the user to start a cleanup if the |
25 // Chrome Cleanup Tool detects unwanted software on the system. | 29 // Chrome Cleanup Tool detects unwanted software on the system. |
26 interface ChromePrompt { | 30 interface ChromePrompt { |
27 // Params: | 31 // Params: |
28 // - removable_uws_found: list of fully-qualified paths of the files that | 32 // - removable_uws_found: list of fully-qualified paths of the files that |
29 // will be deleted by the Chrome Cleanup Tool. | 33 // will be deleted by the Chrome Cleanup Tool. |
30 // Returns: | 34 // Returns: |
31 // - prompt_acceptance: indicates if the user accepted the prompt. | 35 // - prompt_acceptance: indicates if the user accepted the prompt. |
32 PromptUser(array<mojo.common.mojom.FilePath> files_to_delete) | 36 PromptUser(array<FilePath> files_to_delete) |
33 => (PromptAcceptance prompt_acceptance); | 37 => (PromptAcceptance prompt_acceptance); |
34 }; | 38 }; |
OLD | NEW |