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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/NetworkManager.js

Issue 2646033003: DevTools: streamline console logging levels, migrate 'log' to 'info' level, 'debug' to 'verbose' le… (Closed)
Patch Set: missing rebaseline Created 3 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 unified diff | Download patch
OLDNEW
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
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
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;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698