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

Side by Side Diff: chrome/browser/resources/net_internals/index.html

Issue 7155031: Save net-internals log dumps directly to disk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Response to kinuko's comments Created 9 years, 6 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
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <head i18n-values="dir:textdirection;"> 2 <head i18n-values="dir:textdirection;">
3 <!-- 3 <!--
4 Copyright (c) 2011 The Chromium Authors. All rights reserved. 4 Copyright (c) 2011 The Chromium Authors. All rights reserved.
5 Use of this source code is governed by a BSD-style license that can be 5 Use of this source code is governed by a BSD-style license that can be
6 found in the LICENSE file. 6 found in the LICENSE file.
7 --> 7 -->
8 <head> 8 <head>
9 <link rel="stylesheet" href="main.css"> 9 <link rel="stylesheet" href="main.css">
10 <link rel="stylesheet" href="tabswitcherview.css"> 10 <link rel="stylesheet" href="tabswitcherview.css">
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 <h2>Dump data</h2> 267 <h2>Dump data</h2>
268 <div style="margin: 8px"> 268 <div style="margin: 8px">
269 <p><input id=securityStrippingCheckbox type=checkbox checked=yes> 269 <p><input id=securityStrippingCheckbox type=checkbox checked=yes>
270 Strip private information (cookies and credentials). 270 Strip private information (cookies and credentials).
271 </p> 271 </p>
272 <p> 272 <p>
273 <a href="javascript:displayHelpForBugDump()"> 273 <a href="javascript:displayHelpForBugDump()">
274 Help: How to get data for bug reports? 274 Help: How to get data for bug reports?
275 </a> 275 </a>
276 </p> 276 </p>
277 <button id=exportToText class=bigButton>Dump to text</button> 277 <button id=exportToFile class=bigButton>Dump to file</button>
278 </div> 278 </div>
279 </div> 279 </div>
280 <div id=dataViewLoadDataDiv> 280 <div id=dataViewLoadDataDiv>
281 <h2>Load data</h2> 281 <h2>Load data</h2>
282 <div style="margin: 8px"> 282 <div style="margin: 8px">
283 <p><input type=file value="Load log from file" id=dataViewLoadLogFile /></p> 283 <p><input type=file value="Load log from file" id=dataViewLoadLogFile /></p>
284 <p>Only works with log files created with "--log-net-log=file_name". 284 <p>Only works with log files created with "--log-net-log=file_name".
285 "--net-log-level=#" will set the default log level used. 285 "--net-log-level=#" will set the default log level used.
286 </p> 286 </p>
287 <p>Once a log is loaded, this page will stop collecting data, and will 287 <p>Once a log is loaded, this page will stop collecting data, and will
(...skipping 24 matching lines...) Expand all
312 </table> 312 </table>
313 <p><input type=button value="Delete all" id=dataViewDeleteAll /></p> 313 <p><input type=button value="Delete all" id=dataViewDeleteAll /></p>
314 <p><input id=byteLoggingCheckbox type=checkbox> 314 <p><input id=byteLoggingCheckbox type=checkbox>
315 Log actual bytes sent/received. 315 Log actual bytes sent/received.
316 </p> 316 </p>
317 </div> 317 </div>
318 </td> 318 </td>
319 319
320 </tr> 320 </tr>
321 </table> 321 </table>
322
323 <iframe style="display: none" id=dataViewDownloadIframe></iframe>
322 324
323 <pre id=exportedDataText></pre>
324 </div> 325 </div>
325 326
326 <!-- START OF HELP TEXT --> 327 <!-- START OF HELP TEXT -->
327 <script> 328 <script>
328 function displayHelpForBugDump() { 329 function displayHelpForBugDump() {
329 // We can't access the popups loaded from WebUI pages, so we instead populate 330 // We can't access the popups loaded from WebUI pages, so we instead populate
330 // its contents using a data:URL. YUCK! 331 // its contents using a data:URL. YUCK!
331 // TODO(eroman): do something less hacky, like exposing a new URL. 332 // TODO(eroman): do something less hacky, like exposing a new URL.
332 var helpContents = 333 var helpContents =
333 document.getElementById('howtoDumpForBugsHelpContent').innerHTML; 334 document.getElementById('howtoDumpForBugsHelpContent').innerHTML;
334 window.open('data:text/html,' + encodeURIComponent(helpContents)); 335 window.open('data:text/html,' + encodeURIComponent(helpContents));
335 } 336 }
336 </script> 337 </script>
337 <div id=howtoDumpForBugsHelpContent style="display: none"> 338 <div id=howtoDumpForBugsHelpContent style="display: none">
338 <h2>How to get data for bug reports</h2> 339 <h2>How to get data for bug reports</h2>
339 340
340 <ol> 341 <ol>
341 <li>Reproduce the network problem.</li> 342 <li>Reproduce the network problem.</li>
342 <li>Click the <i>Dump to text</i> button in the <i>Data</i> tab.</li> 343 <li>Click the <i>Dump to file</i> button in the <i>Data</i> tab.</li>
343 344
344 <li>Copy-paste the resulting selected text to a file.</li> 345 <li>The log file will act like a normal download.</li>
345 346
346 <li>Email the text file to the bug investigator, 347 <li>Email the log file to the bug investigator,
347 <b>along with an explanation of what went wrong.</b> 348 <b>along with an explanation of what went wrong, including any relevant
349 URLs.</b>
348 </li> 350 </li>
349 351
350 </ol> 352 </ol>
351 353
352 354
353 <ul> 355 <ul>
354 <li>The network log <b>may contain personally identifying information</b> like 356 <li>The network log <b>may contain personally identifying information</b> like
355 IP addresses, URLs, and cookies.</li> 357 IP addresses, URLs, and cookies.</li>
356 <ul> 358 <ul>
357 <li>You can edit the log to obscure information if you like, but sometimes it 359 <li>You can edit the log to obscure information if you like, but sometimes it
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 <th width=8%></th> 507 <th width=8%></th>
506 <th width=82%>Log</th> 508 <th width=82%>Log</th>
507 </tr> 509 </tr>
508 </thead> 510 </thead>
509 <tbody id=logTable> 511 <tbody id=logTable>
510 </tbody> 512 </tbody>
511 </table> 513 </table>
512 </div> 514 </div>
513 </body> 515 </body>
514 </html> 516 </html>
OLDNEW
« no previous file with comments | « chrome/browser/resources/net_internals/dataview.js ('k') | chrome/browser/resources/net_internals/main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698