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

Side by Side Diff: extensions/common/extension_unpacker.mojom

Issue 2697463002: Convert utility process extension Unpacker IPC to mojo (Closed)
Patch Set: Take #3, use [Native] enum param traits. 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 // Secure chrome extension unpacker service provided by the utility process
6 // and exposed by mojo policy to the chrome browser process.
7
8 module extensions.mojom;
9
10 import "mojo/common/file_path.mojom";
11 import "mojo/common/string16.mojom";
12 import "mojo/common/values.mojom";
13
14 interface ExtensionUnpacker {
15 // Unzip |file| into the directory |path|.
16 Unzip(mojo.common.mojom.FilePath file,
17 mojo.common.mojom.FilePath path) => (bool success);
18
19 // Unpack, validate, and sanitize the extension in directory |path|, and
20 // return the parsed manifest.json in |manifest|. The supplied |location|
21 // and the |creation_flags| defined by Extension::InitFromValueFlags, are
22 // passed to Extension::Create() when unpacking the extension. On success
23 // the decoded images and message catalogs from the extension are written
24 // to files kDecodedImagesFilename and kDecodedMessageCatalogsFilename in
25 // the directory |path|.
26 // If Unpack() fails for any reason, |error| contains a user-displayable
27 // explanation of what went wrong.
28 Unpack(mojo.common.mojom.FilePath path,
29 string extension_id,
30 ManifestLocation location,
31 int32 creation_flags)
32 => (mojo.common.mojom.String16 error,
33 mojo.common.mojom.DictionaryValue? manifest);
34 };
35
36 [Native]
37 enum ManifestLocation;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698