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

Unified Diff: pipa/mojom/chrome_prompt.mojom

Issue 2750463006: ChromePrompt Mojo IPC interface (Closed)
Patch Set: Additional comment 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
« GITDEPS ('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..690d6e6650a3548c5cccc9a9c82c178f4d7fe4b3
--- /dev/null
+++ b/pipa/mojom/chrome_prompt.mojom
@@ -0,0 +1,44 @@
+// Copyright 2017 The Chromium Authors. All Rights Reserved.
grt (UTC plus 2) 2017/03/15 10:58:13 why not the full license header?
ftirelo 2017/03/15 14:27:58 No reason. Copied the header from the internal rep
grt (UTC plus 2) 2017/03/16 09:02:10 Just to confirm: this new repo you're creating sho
ftirelo 2017/03/21 16:54:28 Yes. Same license as Chromium. Our original goal w
+
+module pipa.mojom;
+
+enum ObservedBehavior {
+ UNSPECIFIED = 0,
+ ADS_INJECTOR = 1,
+ SETTINGS_HIJACKER= 2,
grt (UTC plus 2) 2017/03/15 10:58:13 nit: missing whitespace before '='
ftirelo 2017/03/15 14:27:58 I think I'm relying too much on git cl format :)
+ BROWSER_HIJACKER = 3,
+};
+
+// Information about removable Unwanted Software matched by the Software
+// Reporter to be shown in the Chrome prompt.
+struct UwS {
+ string name;
grt (UTC plus 2) 2017/03/15 10:58:13 nit: document this field
ftirelo 2017/03/15 14:27:58 Done.
+ // List of behaviors to be presented to the user.
grt (UTC plus 2) 2017/03/15 10:58:13 nit: in c++ style, we have a blank line separating
ftirelo 2017/03/15 14:27:58 A quick search didn't show any style-guide for Moj
+ array<ObservedBehavior> observed_behaviours;
+ // List of files that will be deleted by the Chrome Cleanup Tool for this
grt (UTC plus 2) 2017/03/15 10:58:13 can you be more specific? is it a list of fully-qu
ftirelo 2017/03/15 14:27:58 Done.
+ // 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 {
+ array<UwS> removable_uws_found;
+ // If true, the Chrome Cleanup Tool will need to run elevated.
+ bool elevation_required;
+};
+
+// The request sent by Chrome to the Software Reporter Tool with the user
grt (UTC plus 2) 2017/03/15 10:58:13 request -> response?
ftirelo 2017/03/15 14:27:58 Done.
+// 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.
+ bool logs_uploading_enabled;
+};
+
+// Service invoked by the Software Reporter Tool to request Chrome to prompt
grt (UTC plus 2) 2017/03/15 10:58:13 nit: document the service from the other side, sin
ftirelo 2017/03/15 14:27:58 Done.
+// user.
+interface ChromePrompt {
+ PromptUser(PromptUserRequest request) => (PromptUserResponse response);
Ken Rockot(use gerrit already) 2017/03/14 18:13:06 nit: If these Request and Response types are only
ftirelo 2017/03/14 20:26:58 The main reason is that we expect this to grow wit
+};
« GITDEPS ('K') | « pipa/mojom/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698