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

Unified Diff: chrome/browser/resources/net_internals/index.html

Issue 6025017: Adds the ability to load JSON log files to about:net-internals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Put load log button on its own line Created 9 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/net_internals/index.html
===================================================================
--- chrome/browser/resources/net_internals/index.html (revision 72508)
+++ chrome/browser/resources/net_internals/index.html (working copy)
@@ -202,23 +202,41 @@
<table width=100%>
<tr>
<td valign=top>
- <h2>Dump data</h2>
- <div style="margin: 8px">
- <p><input id=securityStrippingCheckbox type=checkbox checked=yes>
- Strip private information (cookies and credentials).
- </p>
- <p>
- <a href="javascript:displayHelpForBugDump()">
- Help: How to get data for bug reports?
- </a>
- </p>
- <button id=exportToText class=bigButton>Dump to text</button>
+ <div id=dataViewDumpDataDiv>
+ <h2>Dump data</h2>
+ <div style="margin: 8px">
+ <p><input id=securityStrippingCheckbox type=checkbox checked=yes>
+ Strip private information (cookies and credentials).
+ </p>
+ <p>
+ <a href="javascript:displayHelpForBugDump()">
+ Help: How to get data for bug reports?
+ </a>
+ </p>
+ <button id=exportToText class=bigButton>Dump to text</button>
+ </div>
</div>
+ <div id=dataViewLoadDataDiv>
+ <h2>Load data</h2>
+ <div style="margin: 8px">
+ <p><input type=button value="Load log from file" id=dataViewLoadLogFile /></p>
+ <p>Only works with log files created with "--log-net-log=file_name".</p>
+ <p>Once a log is loaded, this page will stop collecting data, and will
+ only start gathering data again when the page is
+ <a href="javascript:history.go(0);">reloaded</a>.<BR>
+ </p>
+ </div>
+ </div>
</td>
<td align=right valign=top>
- <div class="capturingBox">
- <b>Capturing all events...</b>
+ <div class="capturingBox" id=dataViewCapturingBox>
+ <span id=dataViewCapturingTextSpan>
+ <b>Capturing all events...</b>
+ </span>
+ <span id=dataViewLoggingTextSpan style="display: none;">
+ <b>Viewing loaded log file.</b>
+ </span>
<table style="margin: 8px">
<tr>
<td>Passively captured:</td>
« no previous file with comments | « chrome/browser/resources/net_internals/eventsview.js ('k') | chrome/browser/resources/net_internals/main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698