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

Side by Side Diff: chrome/common/extensions/docs/templates/intros/fileSystemProvider.html

Issue 1127273004: Update documentation for "file_system_provider" manifest section. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed. Created 5 years, 7 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
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
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698