summaryrefslogtreecommitdiff
path: root/chromium/components/net_log/resources/net_export.html
blob: b3904fff13acdc5efc9d6fec8bad9679b91eaedc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<if expr="is_android">
<meta name="viewport" content="width=device-width">
</if>

<if expr="is_ios">
<!-- TODO(crbug.com/487000): Remove this once injected by web. -->
<script src="chrome://resources/js/ios/web_ui.js"></script>
</if>

<script src="chrome://resources/js/util.js"></script>
<script src="chrome://resources/js/cr.js"></script>
<script src="chrome://net-export/net_export.js"></script>
<link rel="stylesheet" href="chrome://resources/css/text_defaults.css">
<link rel="stylesheet" href="net_export.css">
</head>
<body>
  <h2>Network Log Export</h2>
  <div id="net-export-main">
    <div>
      <button id="export-view-start-data" disabled>
        Start Logging to Disk
        <div class="warning" id="export-view-deletes-log-text" hidden>
          Deletes old log
        </div>
      </button>
    </div>
    <div>
      <button id="export-view-stop-data" disabled>Stop Logging</button>
    </div>
    <div>
      <button id="export-view-send-data" disabled>
        Email Log
        <div class="warning" id="export-view-private-data-text" hidden>
          Log contains private information
        </div>
        <div class="warning" id="export-view-send-old-log-text" hidden>
          Log file from previous session
        </div>
      </button>
    </div>
    <p>
      <b>INSTRUCTIONS</b>: Start logging, reproduce the problem,
      and then stop logging.  Make sure to send the email before
      starting to log again. Otherwise, the log will be deleted.
    </p>
    <p>
      <!-- TODO(rayraymond): Change link to that of new standalone webapp.
                             See http://crbug.com/472699 -->
      Logs can be loaded in
      <a href="chrome://net-internals" target="_blank">net-internals</a>
      of desktop Chrome.
    </p>
    <p>
      <b><span class="warning">WARNING</span></b>: Logs contain a list of sites
      visited from when logging started to when logging stopped.  They may also
      contain general network configuration information, such as DNS and proxy
      configuration. If private information is not stripped, the logs also
      contain cookies and credentials.
    </p>
    <p>
      <b>ADVANCED</b>:
      <span class="warning">This section should normally be left alone.</span>
      <div class="radio-button-div">
        <label>
          <input id="export-view-strip-private-data-button" type="radio"
                 name="log-mode" value="STRIP_PRIVATE_DATA" checked disabled>
          Strip private information
        </label>
      </div>
      <div class="radio-button-div">
        <label>
          <input id="export-view-include-private-data-button" type="radio"
                 name="log-mode" value="NORMAL" disabled>
          Include cookies and credentials
        </label>
      </div>
      <div class="radio-button-div">
        <label>
          <input id="export-view-log-bytes-button" type="radio"
                 name="log-mode" value="LOG_BYTES" disabled>
          Include raw bytes (will include cookies and credentials)
        </label>
      </div>
    </p>
  </div>
  <pre id="export-view-file-path-text"></pre>
</body>
</html>