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

Unified Diff: pipa/mojom/chrome_prompt.mojom

Issue 2750463006: ChromePrompt Mojo IPC interface (Closed)
Patch Set: Code review 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 side-by-side diff with in-line comments
Download patch
« OWNERS ('K') | « pipa/mojom/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pipa/mojom/chrome_prompt.mojom
diff --git a/pipa/mojom/chrome_prompt.mojom b/pipa/mojom/chrome_prompt.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..096e20a44120d408711fb9b63514ba542346eb01
--- /dev/null
+++ b/pipa/mojom/chrome_prompt.mojom
@@ -0,0 +1,53 @@
+// Copyright 2017 The Chromium Authors. All Rights Reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module pipa.mojom;
joenotcharles 2017/03/15 16:10:00 I wonder if we should use the name "chrome_cleaner
grt (UTC plus 2) 2017/03/16 09:02:11 $0.02: "pipa" means nothing to me, and is counter
ftirelo 2017/03/21 16:54:28 Done.
ftirelo 2017/03/21 16:54:28 Moved the code to the chrome_cleaner namespace and
+
+enum ObservedBehavior {
+ UNSPECIFIED = 0,
+ ADS_INJECTOR = 1,
+ SETTINGS_HIJACKER = 2,
+ BROWSER_HIJACKER = 3,
+};
+
+// Information about removable Unwanted Software matched by the Software
+// Reporter to be shown in the Chrome prompt.
+struct UwS {
+ // The name of this unwanted software.
+ string name;
joenotcharles 2017/03/15 16:10:00 Should we include the ID here too?
ftirelo 2017/03/21 16:54:28 Done.
+
+ // List of behaviors to be presented to the user.
+ array<ObservedBehavior> observed_behaviours;
+
+ // List of fully-qualified paths of the files that will be deleted by the
+ // Chrome Cleanup Tool for this unwanted software.
+ array<string> files_to_delete;
+};
+
+// A request sent by the Software Reporter Tool to Chrome requiring the user
+// to be prompted.
+struct PromptUserRequest {
+ // The list of removable UwS detected by the Software Reporter Tool.
+ array<UwS> removable_uws_found;
+
+ // If true, the Chrome Cleanup Tool will need to run elevated.
+ bool elevation_required;
+};
+
+// The response sent by Chrome to the Software Reporter Tool with the user
+// acceptance result.
+struct PromptUserResponse {
+ // If true, the user accepted the prompt.
+ bool prompt_accepted;
+
+ // If true, the user agrees with sending detailed logs information to Google.
csharp 2017/03/15 17:22:34 nit: Worth also mentioning crashes? Maybe the vari
ftirelo 2017/03/21 16:54:28 We will not send crash reports for users in SBER2,
+ bool logs_uploading_enabled;
+};
+
+// Service provided by Chrome to prompt the user to run the Chrome Cleanup Tool
+// if unwanted software is detected in the system. This service is used by the
+// Software Reporter Tool so that all user interaction is provided by Chrome.
+interface ChromePrompt {
+ PromptUser(PromptUserRequest request) => (PromptUserResponse response);
joenotcharles 2017/03/15 16:10:00 I think the Request / Response structs obscure wha
ftirelo 2017/03/21 16:54:28 Done.
+};
« OWNERS ('K') | « pipa/mojom/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698