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

Unified Diff: chrome/browser/net/load_timing_observer.cc

Issue 11450023: Partial changes to enable net-internals in iOS. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years 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
« no previous file with comments | « chrome/browser/net/load_timing_observer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/load_timing_observer.cc
===================================================================
--- chrome/browser/net/load_timing_observer.cc (revision 171354)
+++ chrome/browser/net/load_timing_observer.cc (working copy)
@@ -117,7 +117,9 @@
if (record) {
response->head.connection_id = record->socket_log_id;
response->head.connection_reused = record->socket_reused;
+#if !defined(OS_IOS)
response->head.load_timing = record->timing;
+#endif
}
}
@@ -152,9 +154,11 @@
URLRequestRecord& record = url_request_to_record_[entry.source().id];
base::TimeTicks now = GetCurrentTime();
record.base_ticks = now;
+#if !defined(OS_IOS)
record.timing = ResourceLoadTimingInfo();
record.timing.base_ticks = now;
record.timing.base_time = TimeTicksToTime(now);
+#endif
}
return;
} else if (entry.type() == net::NetLog::TYPE_REQUEST_ALIVE) {
@@ -168,6 +172,7 @@
if (!record)
return;
+#if !defined(OS_IOS)
ResourceLoadTimingInfo& timing = record->timing;
switch (entry.type()) {
@@ -229,6 +234,7 @@
default:
break;
}
+#endif // !defined(OS_IOS)
}
void LoadTimingObserver::OnAddHTTPStreamJobEntry(
« no previous file with comments | « chrome/browser/net/load_timing_observer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698