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

Side by Side Diff: chrome/common/extensions/docs/static/pageCapture.html

Issue 8682013: Moving the MHTML API out of experimental and renaming it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: One more sync Created 9 years 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 | Annotate | Revision Log
OLDNEW
1 <!-- BEGIN AUTHORED CONTENT --> 1 <!-- BEGIN AUTHORED CONTENT -->
2 <p> 2 <p>
3 The savePage API allows you to save a tab as MHTML. 3 The pageCapture API allows you to save a tab as MHTML.
4 </p> 4 </p>
5 5
6 <p> 6 <p>
7 MHTML is a <a href="http://tools.ietf.org/html/rfc2557">standard format</a> 7 MHTML is a <a href="http://tools.ietf.org/html/rfc2557">standard format</a>
8 supported by most browsers. It encapsulates in a single file a page and all 8 supported by most browsers. It encapsulates in a single file a page and all
9 its resources (CSS files, images..). 9 its resources (CSS files, images..).
10 </p> 10 </p>
11 11
12 <p> 12 <p>
13 Note that for security reasons a MHTML file can only be loaded from the file 13 Note that for security reasons a MHTML file can only be loaded from the file
14 system and that it can only be loaded in the main frame. 14 system and that it can only be loaded in the main frame.
15 </p> 15 </p>
16 16
17 <h2 id="manifest">Manifest</h2> 17 <h2 id="manifest">Manifest</h2>
18 18
19 <p> 19
20 The savePage API is currently 20 <p>You must declare the "pageCapture" permission
21 experimental, so you must declare the "experimental" 21 in the <a href="manifest.html">extension manifest</a>
22 permission to use it. 22 to use the history API.
23 For example:</p>
24 <pre>{
25 "name": "My extension",
26 ...
27 <b>"permissions": [
28 "pageCapture"
29 ]</b>,
30 ...
31 }</pre>
23 32
24 <!-- END AUTHORED CONTENT --> 33 <!-- END AUTHORED CONTENT -->
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/static/experimental.savePage.html ('k') | chrome/common/extensions/extension_permission_set.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698