OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 networkRequest.fetchedViaServiceWorker = true; | 172 networkRequest.fetchedViaServiceWorker = true; |
173 | 173 |
174 if (response.fromDiskCache) | 174 if (response.fromDiskCache) |
175 networkRequest.setFromDiskCache(); | 175 networkRequest.setFromDiskCache(); |
176 networkRequest.timing = response.timing; | 176 networkRequest.timing = response.timing; |
177 | 177 |
178 networkRequest.protocol = response.protocol; | 178 networkRequest.protocol = response.protocol; |
179 | 179 |
180 if (!this._mimeTypeIsConsistentWithType(networkRequest)) { | 180 if (!this._mimeTypeIsConsistentWithType(networkRequest)) { |
181 var consoleModel = this._manager._target.consoleModel; | 181 var consoleModel = this._manager._target.consoleModel; |
182 consoleModel.addMessage(new WebInspector.ConsoleMessage(consoleModel
.target(), WebInspector.ConsoleMessage.MessageSource.Network, | 182 consoleModel.addMessage(new WebInspector.ConsoleMessage(consoleModel
.target(), 0, WebInspector.ConsoleMessage.MessageSource.Network, |
183 WebInspector.ConsoleMessage.MessageLevel.Log, | 183 WebInspector.ConsoleMessage.MessageLevel.Log, |
184 WebInspector.UIString("Resource interpreted as %s but transferre
d with MIME type %s: \"%s\".", networkRequest.resourceType().title(), networkReq
uest.mimeType, networkRequest.url), | 184 WebInspector.UIString("Resource interpreted as %s but transferre
d with MIME type %s: \"%s\".", networkRequest.resourceType().title(), networkReq
uest.mimeType, networkRequest.url), |
185 WebInspector.ConsoleMessage.MessageType.Log, | 185 WebInspector.ConsoleMessage.MessageType.Log, |
186 "", | 186 "", |
187 0, | 187 0, |
188 0, | 188 0, |
189 networkRequest.requestId)); | 189 networkRequest.requestId)); |
190 } | 190 } |
191 }, | 191 }, |
192 | 192 |
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
642 target.networkAgent().emulateNetworkConditions(this._networkConditio
ns.offline, this._networkConditions.latency, | 642 target.networkAgent().emulateNetworkConditions(this._networkConditio
ns.offline, this._networkConditions.latency, |
643 this._networkConditions.throughput, this._networkConditions.thro
ughput); | 643 this._networkConditions.throughput, this._networkConditions.thro
ughput); |
644 } | 644 } |
645 } | 645 } |
646 } | 646 } |
647 | 647 |
648 /** | 648 /** |
649 * @type {!WebInspector.MultitargetNetworkManager} | 649 * @type {!WebInspector.MultitargetNetworkManager} |
650 */ | 650 */ |
651 WebInspector.multitargetNetworkManager; | 651 WebInspector.multitargetNetworkManager; |
OLD | NEW |