| 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 networkRequest.setFromDiskCache(); | 243 networkRequest.setFromDiskCache(); |
| 244 networkRequest.timing = response.timing; | 244 networkRequest.timing = response.timing; |
| 245 | 245 |
| 246 networkRequest.protocol = response.protocol; | 246 networkRequest.protocol = response.protocol; |
| 247 | 247 |
| 248 networkRequest.setSecurityState(response.securityState); | 248 networkRequest.setSecurityState(response.securityState); |
| 249 | 249 |
| 250 if (!this._mimeTypeIsConsistentWithType(networkRequest)) { | 250 if (!this._mimeTypeIsConsistentWithType(networkRequest)) { |
| 251 var consoleModel = this._manager._target.consoleModel; | 251 var consoleModel = this._manager._target.consoleModel; |
| 252 consoleModel.addMessage(new SDK.ConsoleMessage( | 252 consoleModel.addMessage(new SDK.ConsoleMessage( |
| 253 consoleModel.target(), SDK.ConsoleMessage.MessageSource.Network, SDK.C
onsoleMessage.MessageLevel.Log, | 253 consoleModel.target(), SDK.ConsoleMessage.MessageSource.Network, SDK.C
onsoleMessage.MessageLevel.Info, |
| 254 Common.UIString( | 254 Common.UIString( |
| 255 'Resource interpreted as %s but transferred with MIME type %s: "%s
".', | 255 'Resource interpreted as %s but transferred with MIME type %s: "%s
".', |
| 256 networkRequest.resourceType().title(), networkRequest.mimeType, ne
tworkRequest.url()), | 256 networkRequest.resourceType().title(), networkRequest.mimeType, ne
tworkRequest.url()), |
| 257 SDK.ConsoleMessage.MessageType.Log, '', 0, 0, networkRequest.requestId
())); | 257 SDK.ConsoleMessage.MessageType.Log, '', 0, 0, networkRequest.requestId
())); |
| 258 } | 258 } |
| 259 | 259 |
| 260 if (response.securityDetails) | 260 if (response.securityDetails) |
| 261 networkRequest.setSecurityDetails(response.securityDetails); | 261 networkRequest.setSecurityDetails(response.securityDetails); |
| 262 } | 262 } |
| 263 | 263 |
| (...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 908 SDK.MultitargetNetworkManager.Events = { | 908 SDK.MultitargetNetworkManager.Events = { |
| 909 ConditionsChanged: Symbol('ConditionsChanged'), | 909 ConditionsChanged: Symbol('ConditionsChanged'), |
| 910 UserAgentChanged: Symbol('UserAgentChanged') | 910 UserAgentChanged: Symbol('UserAgentChanged') |
| 911 }; | 911 }; |
| 912 | 912 |
| 913 | 913 |
| 914 /** | 914 /** |
| 915 * @type {!SDK.MultitargetNetworkManager} | 915 * @type {!SDK.MultitargetNetworkManager} |
| 916 */ | 916 */ |
| 917 SDK.multitargetNetworkManager; | 917 SDK.multitargetNetworkManager; |
| OLD | NEW |