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

Side by Side Diff: chrome/common/extensions/docs/static/experimental.devtools.resources.html

Issue 6948003: Add chrome-firephp sample extensions; add sample references to devtools pages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments addressed Created 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/extensions/docs/static/experimental.devtools.panels.html ('k') | 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 <!-- BEGIN AUTHORED CONTENT --> 1 <!-- BEGIN AUTHORED CONTENT -->
2 <p id="classSummary"> 2 <p id="classSummary">
3 Use the <code>chrome.experimental.devtools.resources</code> module to retrieve 3 Use the <code>chrome.experimental.devtools.resources</code> module to retrieve
4 the information about network resources displayed by DevTools' Network panel. 4 the information about network resources displayed by DevTools' Network panel.
5 </p><p> 5 </p><p>
6 See <a href="experimental.devtools.html">DevTools APIs summary</a> for 6 See <a href="experimental.devtools.html">DevTools APIs summary</a> for
7 general introduction to using Developer Tools APIs</a>. 7 general introduction to using Developer Tools APIs</a>.
8 </p> 8 </p>
9 9
10 <h2>Notes</h2> 10 <h2>Notes</h2>
(...skipping 24 matching lines...) Expand all
35 <p>The following code logs URLs of all images larger than 40KB as they are 35 <p>The following code logs URLs of all images larger than 40KB as they are
36 loaded:</p> 36 loaded:</p>
37 37
38 <pre> 38 <pre>
39 chrome.experimental.devtools.resources.onFinished.addListener(function(resource) { 39 chrome.experimental.devtools.resources.onFinished.addListener(function(resource) {
40 if (resource.response.bodySize > 40*1024) 40 if (resource.response.bodySize > 40*1024)
41 experimental.chrome.devtools.log("Large image: " + resource.request.url); 41 experimental.chrome.devtools.log("Large image: " + resource.request.url);
42 }); 42 });
43 </pre> 43 </pre>
44 44
45 <h2 id="examples">Examples</h2>
46
47 <p>
48 You can find examples that use this API in
49 <a href="samples.html#devtools.resources">Samples</a>.
50 </p>
51
45 <!-- END AUTHORED CONTENT --> 52 <!-- END AUTHORED CONTENT -->
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/static/experimental.devtools.panels.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698