Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 file in |manifest|. | |
| 21 // If unpacking fails, |error| is a user-displayable explanation of what | |
| 22 // went wrong. | |
| 23 Unpack(mojo.common.mojom.FilePath path, | |
| 24 string extension_id, | |
| 25 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'
| |
| 26 int32 creation_flags) | |
| 27 => (mojo.common.mojom.String16 error, | |
| 28 mojo.common.mojom.DictionaryValue manifest); | |
| 29 }; | |
| OLD | NEW |