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

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

Issue 1130943006: Fix documentation for FSP API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <h2 id="manifest">Manifest</h2> 1 <h2 id="manifest">Manifest</h2>
2 <p>You must declare the "fileSystemProvider" permission and section 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 {{platform}}", 8 "name": "My {{platform}}",
9 ... 9 ...
10 "permissions": [ 10 "permissions": [
11 "fileSystemProvider" 11 "fileSystemProvider"
12 ], 12 ],
13 ... 13 ...
14 "file_system_provider_capabilities": [ 14 "file_system_provider_capabilities": {
15 "configurable": true, 15 "configurable": true,
16 "multiple_mounts": true, 16 "multiple_mounts": true,
17 <span id="manifest-source">"source": "network"</span> 17 <span id="manifest-source">"source": "network"</span>
18 ], 18 },
19 ... 19 ...
20 } 20 }
21 </pre> 21 </pre>
22 22
23 <p class="api_reference"> 23 <p class="api_reference">
24 The <code>file_system_provider</code> section must be declared as follows: 24 The <code>file_system_provider</code> section must be declared as follows:
25 {{+partials.manifest_type 25 {{+partials.manifest_type
26 type:apis.extensions.manifestTypes.byName.FileSystemProviderCapabilities /}} 26 type:apis.extensions.manifestTypes.byName.FileSystemProviderCapabilities /}}
27 </p> 27 </p>
28 <p> 28 <p>
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 extension is unloaded, or the extension calls the $(ref:unmount) method. 112 extension is unloaded, or the extension calls the $(ref:unmount) method.
113 </p> 113 </p>
114 {{?is_apps}} 114 {{?is_apps}}
115 <p> 115 <p>
116 In case of acting as a file handler, the handled file may need to be stored 116 In case of acting as a file handler, the handled file may need to be stored
117 to access it after either a reboot, or suspending and resuming an event page 117 to access it after either a reboot, or suspending and resuming an event page
118 of the providing extension. In such case $(ref:fileSystem.retainEntry) and 118 of the providing extension. In such case $(ref:fileSystem.retainEntry) and
119 $(ref:fileSystem.restoreEntry) should be used. 119 $(ref:fileSystem.restoreEntry) should be used.
120 </p> 120 </p>
121 {{/is_apps}} 121 {{/is_apps}}
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698