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

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

Issue 8507032: This includes some small changes to the API documentation (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 9 years, 1 month 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 | « no previous file | chrome/common/extensions/docs/static/experimental.devtools.network.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html><!-- This page is a placeholder for generated extensions api doc. Note: 1 <!DOCTYPE html><!-- This page is a placeholder for generated extensions api doc. Note:
2 1) The <head> information in this page is significant, should be uniform 2 1) The <head> information in this page is significant, should be uniform
3 across api docs and should be edited only with knowledge of the 3 across api docs and should be edited only with knowledge of the
4 templating mechanism. 4 templating mechanism.
5 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a 5 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a
6 browser, it will be re-generated from the template, json schema and 6 browser, it will be re-generated from the template, json schema and
7 authored overview content. 7 authored overview content.
8 4) The <body>.innerHTML is also generated by an offline step so that this 8 4) The <body>.innerHTML is also generated by an offline step so that this
9 page may easily be indexed by search engines. 9 page may easily be indexed by search engines.
10 --><html xmlns="http://www.w3.org/1999/xhtml"><head> 10 --><html xmlns="http://www.w3.org/1999/xhtml"><head>
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 <div class="g-unit" id="gc-pagecontent"> 293 <div class="g-unit" id="gc-pagecontent">
294 <div id="pageTitle"> 294 <div id="pageTitle">
295 <h1 class="page_title">chrome.experimental.devtools.network 295 <h1 class="page_title">chrome.experimental.devtools.network
296 API</h1> 296 API</h1>
297 </div> 297 </div>
298 <!-- TABLE OF CONTENTS --> 298 <!-- TABLE OF CONTENTS -->
299 <div id="toc"> 299 <div id="toc">
300 <h2>Contents</h2> 300 <h2>Contents</h2>
301 <ol> 301 <ol>
302 <li> 302 <li>
303 <a href="#H2-0">Notes</a> 303 <a href="#H2-0">Overview</a>
304 <ol> 304 <ol>
305 <li style="display: none; "> 305 <li style="display: none; ">
306 <a>h3Name</a> 306 <a>h3Name</a>
307 </li> 307 </li>
308 </ol> 308 </ol>
309 </li><li> 309 </li><li>
310 <a href="#overview-examples">Examples</a> 310 <a href="#overview-examples">Examples</a>
311 <ol> 311 <ol>
312 <li style="display: none; "> 312 <li style="display: none; ">
313 <a>h3Name</a> 313 <a>h3Name</a>
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 <p id="classSummary"> 379 <p id="classSummary">
380 For information on how to use experimental APIs, see the <a href="expe rimental.html">chrome.experimental.* APIs</a> page. 380 For information on how to use experimental APIs, see the <a href="expe rimental.html">chrome.experimental.* APIs</a> page.
381 </p> 381 </p>
382 382
383 <!-- STATIC CONTENT PLACEHOLDER --> 383 <!-- STATIC CONTENT PLACEHOLDER -->
384 <div id="static"><!-- BEGIN AUTHORED CONTENT --> 384 <div id="static"><!-- BEGIN AUTHORED CONTENT -->
385 <div id="pageData-name" class="pageData">chrome.experimental.devtools.network 385 <div id="pageData-name" class="pageData">chrome.experimental.devtools.network
386 API</div> 386 API</div>
387 <p id="classSummary"> 387 <p id="classSummary">
388 Use the <code>chrome.experimental.devtools.network</code> module to retrieve 388 Use the <code>chrome.experimental.devtools.network</code> module to retrieve
389 the information about network requests displayed by DevTools' Network panel. 389 the information about network requests displayed by the Developer Tools
390 in the Network panel.
390 </p><p> 391 </p><p>
391 See <a href="experimental.devtools.html">DevTools APIs summary</a> for 392 See <a href="experimental.devtools.html">DevTools APIs summary</a> for
392 general introduction to using Developer Tools APIs. 393 general introduction to using Developer Tools APIs.
393 </p> 394 </p>
394 395
395 <a name="H2-0"></a><h2>Notes</h2> 396 <a name="H2-0"></a><h2>Overview</h2>
396 397
397 <p> 398 <p>
398 Network requests information is represented in the HTTP Archive format 399 Network requests information is represented in the HTTP Archive format
399 (<em>HAR</em>). The description of HAR is outside of scope of this document, 400 (<em>HAR</em>). The description of HAR is outside of scope of this document,
400 please refer to <a href="http://groups.google.com/group/http-archive-specificati on/web/har-1-2-spec"> 401 please refer to <a href="http://groups.google.com/group/http-archive-specificati on/web/har-1-2-spec">
401 HAR v1.2 Specification</a>. 402 HAR v1.2 Specification</a>.
402 </p><p> 403 </p><p>
403 In terms of HAR, the 404 In terms of HAR, the
404 <code>chrome.experimental.devtools.network.getHAR()</code> method returns 405 <code>chrome.experimental.devtools.network.getHAR()</code> method returns
405 entire <em>HAR log</em>, while 406 entire <em>HAR log</em>, while
406 <code>chrome.experimental.devtools.network.onRequestFinished</code> event 407 <code>chrome.experimental.devtools.network.onRequestFinished</code> event
407 provides <em>HAR entry</em> as an argument to the event callback. 408 provides <em>HAR entry</em> as an argument to the event callback.
408 </p> 409 </p>
409 <p>Note that request content is not provided as part of HAR for efficieny 410 <p>Note that request content is not provided as part of HAR for efficieny
410 reasons. You may call request's <code>getContent()</code> method to retrieve 411 reasons. You may call request's <code>getContent()</code> method to retrieve
411 content. 412 content.
412 </p><p>Some requests may be missing in the array of entries returned by <code> 413 </p><p>If the Developer Tools window is opened after the page is loaded,
413 getHAR()</code> in case Developer Tools window was opened after the page was 414 some requests may be missing
414 loaded — reload the page to get all requests. In general, the list of 415 in the array of entries returned by <code>getHAR()</code>.
415 requests returned by <code>getHAR()</code> should match that displayed by 416 Reload the page to get all requests.
417 In general, the list of
418 requests returned by <code>getHAR()</code> should match that displayed in
416 the Network panel. 419 the Network panel.
417 </p><h2 id="overview-examples">Examples</h2> 420 </p><h2 id="overview-examples">Examples</h2>
418 421
419 <p>The following code logs URLs of all images larger than 40KB as they are 422 <p>The following code logs URLs of all images larger than 40KB as they are
420 loaded:</p> 423 loaded:</p>
421 424
422 <pre>chrome.experimental.devtools.network.onRequestFinished.addListener( 425 <pre>chrome.experimental.devtools.network.onRequestFinished.addListener(
423 function(request) { 426 function(request) {
424 if (request.response.bodySize &gt; 40*1024) 427 if (request.response.bodySize &gt; 40*1024)
425 chrome.experimental.devtools.console.addMessage( 428 chrome.experimental.devtools.console.addMessage(
(...skipping 851 matching lines...) Expand 10 before | Expand all | Expand 10 after
1277 _uff=0; 1280 _uff=0;
1278 urchinTracker(); 1281 urchinTracker();
1279 } 1282 }
1280 catch(e) {/* urchinTracker not available. */} 1283 catch(e) {/* urchinTracker not available. */}
1281 </script> 1284 </script>
1282 <!-- end analytics --> 1285 <!-- end analytics -->
1283 </div> 1286 </div>
1284 </div> <!-- /gc-footer --> 1287 </div> <!-- /gc-footer -->
1285 </div> <!-- /gc-container --> 1288 </div> <!-- /gc-container -->
1286 </body></html> 1289 </body></html>
OLDNEW
« no previous file with comments | « no previous file | chrome/common/extensions/docs/static/experimental.devtools.network.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698