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

Unified Diff: chrome/browser/resources/net_internals/timeline_data_series.js

Issue 10534055: [refactor] Rename some constants in net-internals. Mostly just removes a redundant "Log" prefix. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: stop adding OWNERS u POS! Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/net_internals/timeline_data_series.js
diff --git a/chrome/browser/resources/net_internals/timeline_data_series.js b/chrome/browser/resources/net_internals/timeline_data_series.js
index 978bcf4a9435a51b1a0700dcccc423873c801528..80c07b4a1676ed1eb3196ce3c3086a84d05bcad7 100644
--- a/chrome/browser/resources/net_internals/timeline_data_series.js
+++ b/chrome/browser/resources/net_internals/timeline_data_series.js
@@ -168,11 +168,11 @@ var SourceCountDataSeries = (function() {
return;
}
- if (entry.phase == LogEventPhase.PHASE_BEGIN) {
+ if (entry.phase == EventPhase.PHASE_BEGIN) {
this.onBeginEvent(entry.source.id, entry.time);
return;
}
- if (entry.phase == LogEventPhase.PHASE_END)
+ if (entry.phase == EventPhase.PHASE_END)
this.onEndEvent(entry.source.id, entry.time);
},
@@ -219,7 +219,7 @@ var SocketsInUseDataSeries = (function() {
* @constructor
*/
function SocketsInUseDataSeries() {
- superClass.call(this, LogSourceType.SOCKET, LogEventType.SOCKET_IN_USE);
+ superClass.call(this, EventSourceType.SOCKET, EventType.SOCKET_IN_USE);
}
SocketsInUseDataSeries.prototype = {
@@ -229,8 +229,8 @@ var SocketsInUseDataSeries = (function() {
onReceivedLogEntry: function(entry) {
// SSL sockets have two nested SOCKET_IN_USE events. This is needed to
// mark SSL sockets as unused after SSL negotiation.
- if (entry.type == LogEventType.SSL_CONNECT &&
- entry.phase == LogEventPhase.PHASE_END) {
+ if (entry.type == EventType.SSL_CONNECT &&
+ entry.phase == EventPhase.PHASE_END) {
this.onEndEvent(entry.source.id, entry.time);
return;
}
@@ -352,9 +352,9 @@ var DiskCacheTransferRateDataSeries = (function() {
__proto__: superClass.prototype,
onReceivedLogEntry: function(entry) {
- if (entry.source.type != LogSourceType.DISK_CACHE_ENTRY ||
+ if (entry.source.type != EventSourceType.DISK_CACHE_ENTRY ||
entry.type != this.eventType_ ||
- entry.phase != LogEventPhase.PHASE_END) {
+ entry.phase != EventPhase.PHASE_END) {
return;
}
// The disk cache has a lot of 0-length writes, when truncating entries.
« no previous file with comments | « chrome/browser/resources/net_internals/source_entry.js ('k') | chrome/browser/resources/net_internals/timeline_view.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698