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

Unified Diff: extensions/common/extension_unpacker.mojom

Issue 2697463002: Convert utility process extension Unpacker IPC to mojo (Closed)
Patch Set: Sync to ToT. Created 3 years, 10 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
Index: extensions/common/extension_unpacker.mojom
diff --git a/extensions/common/extension_unpacker.mojom b/extensions/common/extension_unpacker.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..2ccf08240071f7875f42a6b782988dd94d2c2f38
--- /dev/null
+++ b/extensions/common/extension_unpacker.mojom
@@ -0,0 +1,29 @@
+// 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.
+
+// Secure chrome extension unpacker service provided by the utility process
+// and exposed by mojo policy to the chrome browser process.
+
+module extensions.mojom;
+
+import "mojo/common/file_path.mojom";
+import "mojo/common/string16.mojom";
+import "mojo/common/values.mojom";
+
+interface ExtensionUnpacker {
+ // Unzip |file| into the directory |path|.
+ Unzip(mojo.common.mojom.FilePath file,
+ mojo.common.mojom.FilePath path) => (bool success);
+
+ // Unpack, validate, and sanitize the extension in directory |path|, and
+ // return the parsed manifest.json file in |manifest|.
+ // If unpacking fails, |error| is a user-displayable explanation of what
+ // went wrong.
+ Unpack(mojo.common.mojom.FilePath path,
+ string extension_id,
+ int32 location,
dcheng 2017/02/28 06:12:49 Document location and creation_flags. Location sho
Noel Gordon 2017/03/06 13:12:03 OK, added complete mojo enum type traits for the l
dcheng 2017/03/07 09:45:13 I think just have a pointer to what the underlying
Noel Gordon 2017/03/08 13:44:26 Added a creation_flags breadcrumb. (I believe it'
+ int32 creation_flags)
+ => (mojo.common.mojom.String16 error,
+ mojo.common.mojom.DictionaryValue manifest);
+};

Powered by Google App Engine
This is Rietveld 408576698