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

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

Issue 2932703006: Chrome Cleaner: Remove indirect base::FilePath mojo dependency. (Closed)
Patch Set: Address review comments, make tests pass Created 3 years, 6 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 import "mojo/common/file_path.mojom"; 7 // IMPORTANT NOTE: Avoid adding dependencies to other .mojom files.
8 // Since the Chrome Cleaner is built as a binary independent of Chrome, the
9 // mojo interface between the two should contain only primitive types to avoid
10 // type incompabilities as the binaries' versions diverge.
8 11
9 [Extensible] 12 [Extensible]
10 enum PromptAcceptance { 13 enum PromptAcceptance {
11 UNSPECIFIED = 0, 14 UNSPECIFIED = 0,
12 // The Chrome prompt was not shown to the user (for example, due to an 15 // 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 16 // experiment run that shouldn't prompt the user or because the user has
14 // been prompted recently). 17 // been prompted recently).
15 NOT_SHOWN = 1, 18 NOT_SHOWN = 1,
16 // The user explicitly accepted the Chrome prompt. 19 // The user explicitly accepted the Chrome prompt.
17 ACCEPTED = 2, 20 ACCEPTED = 2,
18 // The user explicitly denied the Chrome prompt. 21 // The user explicitly denied the Chrome prompt.
19 DENIED = 3, 22 DENIED = 3,
20 // The user didn't interact with the Chrome prompt after a while. 23 // The user didn't interact with the Chrome prompt after a while.
21 IGNORED = 4, 24 IGNORED = 4,
22 }; 25 };
23 26
27 struct FilePath {
28 array<uint16> value;
29 };
30
24 // Service provided by Chrome to prompt the user to start a cleanup if the 31 // Service provided by Chrome to prompt the user to start a cleanup if the
25 // Chrome Cleanup Tool detects unwanted software on the system. 32 // Chrome Cleanup Tool detects unwanted software on the system.
26 interface ChromePrompt { 33 interface ChromePrompt {
27 // Params: 34 // Params:
28 // - removable_uws_found: list of fully-qualified paths of the files that 35 // - removable_uws_found: list of fully-qualified paths of the files that
29 // will be deleted by the Chrome Cleanup Tool. 36 // will be deleted by the Chrome Cleanup Tool.
30 // Returns: 37 // Returns:
31 // - prompt_acceptance: indicates if the user accepted the prompt. 38 // - prompt_acceptance: indicates if the user accepted the prompt.
32 PromptUser(array<mojo.common.mojom.FilePath> files_to_delete) 39 PromptUser(array<FilePath> files_to_delete)
33 => (PromptAcceptance prompt_acceptance); 40 => (PromptAcceptance prompt_acceptance);
34 }; 41 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698