OLD | NEW |
---|---|
1 <h2 id="manifest">Manifest</h2> | 1 <h2 id="manifest">Manifest</h2> |
2 <p>You must declare the "fileSystemProvider" permission | 2 <p>You must declare the "fileSystemProvider" permission and section |
not at google - send to devlin
2015/05/08 16:47:39
Is "and" actually true here, or is it an "and/or"
mtomasz
2015/05/11 01:08:04
It's currently optional, as I wanted to keep backw
not at google - send to devlin
2015/05/12 00:08:51
manifest section to something more meaningful, lik
| |
3 in the <a href="manifest">extension manifest</a> | 3 in the <a href="manifest">extension manifest</a> |
4 to use the File System Provider API. | 4 to use the File System Provider API. |
5 For example:</p> | 5 For example:</p> |
6 <pre data-filename="manifest.json"> | 6 <pre data-filename="manifest.json"> |
7 { | 7 { |
8 "name": "My extension", | 8 "name": "My extension", |
9 ... | 9 ... |
10 <b>"permissions": [ | 10 "permissions": [ |
11 "fileSystemProvider" | 11 "fileSystemProvider" |
12 ]</b>, | 12 ], |
13 ... | |
14 "file_system_provider": [ | |
15 "configurable": true, | |
16 "multiple_mounts": true, | |
17 "source": "network" | |
18 ], | |
13 ... | 19 ... |
14 } | 20 } |
15 </pre> | 21 </pre> |
16 | 22 |
23 <p class="api_reference"> | |
24 The <code>file_system_provider</code> section must be declared as follows: | |
25 {{+partials.manifest_type | |
26 type:apis.extensions.manifestTypes.byName.FileSystemProviderCapabilities /}} | |
27 </p> | |
28 | |
17 <h2 id="overview">Overview</h2> | 29 <h2 id="overview">Overview</h2> |
18 <p> | 30 <p> |
19 File System Provider API allows extensions to support virtual file systems, | 31 File System Provider API allows extensions to support virtual file systems, |
20 which are available in the file manager on Chrome OS. | 32 which are available in the file manager on Chrome OS. |
21 Use cases include decompressing archives and accessing files in a cloud | 33 Use cases include decompressing archives and accessing files in a cloud |
22 service other than Drive. | 34 service other than Drive. |
23 </p> | 35 </p> |
24 | 36 |
25 <h2 id="archives">File handlers</h2> | 37 <h2 id="archives">File handlers</h2> |
26 <p> | 38 <p> |
(...skipping 18 matching lines...) Expand all Loading... | |
45 <a href="#method-unmount"> unmount</a> method. | 57 <a href="#method-unmount"> unmount</a> method. |
46 </p> | 58 </p> |
47 <p> | 59 <p> |
48 In case of acting as a file handler, the handled file may need to be stored | 60 In case of acting as a file handler, the handled file may need to be stored |
49 to access it after either a reboot, or suspending and resuming an event page | 61 to access it after either a reboot, or suspending and resuming an event page |
50 of the providing extension. In such case | 62 of the providing extension. In such case |
51 <a href="fileSystem#method-retainEntry">chrome.fileSystem.retainEntry</a> and | 63 <a href="fileSystem#method-retainEntry">chrome.fileSystem.retainEntry</a> and |
52 <a href="fileSystem#method-restoreEntry">chrome.fileSystem.restoreEntry</a> | 64 <a href="fileSystem#method-restoreEntry">chrome.fileSystem.restoreEntry</a> |
53 should be used. | 65 should be used. |
54 </p> | 66 </p> |
OLD | NEW |