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

Unified Diff: chrome/common/render_messages.h

Issue 42527: - Added support for keeping track of load times.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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
« no previous file with comments | « chrome/chrome.gyp ('k') | chrome/renderer/extensions/loadtimes_extension_bindings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/render_messages.h
===================================================================
--- chrome/common/render_messages.h (revision 13095)
+++ chrome/common/render_messages.h (working copy)
@@ -42,6 +42,10 @@
#include "skia/include/SkBitmap.h"
#endif
+namespace base {
+class Time;
+}
+
struct ViewHostMsg_UpdateFeedList_Params {
// The page_id for this navigation, or -1 if it is a new navigation. Back,
// Forward, and Reload navigations should have a valid page_id. If the load
@@ -78,6 +82,9 @@
// Specifies if the URL should be loaded using 'reload' semantics (i.e.,
// bypassing any locally cached content).
bool reload;
+
+ // The time the request was created
+ base::Time request_time;
};
// Parameters structure for ViewHostMsg_FrameNavigate, which has too many data
@@ -662,6 +669,7 @@
WriteParam(m, p.transition);
WriteParam(m, p.state);
WriteParam(m, p.reload);
+ WriteParam(m, p.request_time);
}
static bool Read(const Message* m, void** iter, param_type* p) {
return
@@ -670,7 +678,8 @@
ReadParam(m, iter, &p->referrer) &&
ReadParam(m, iter, &p->transition) &&
ReadParam(m, iter, &p->state) &&
- ReadParam(m, iter, &p->reload);
+ ReadParam(m, iter, &p->reload) &&
+ ReadParam(m, iter, &p->request_time);
}
static void Log(const param_type& p, std::wstring* l) {
l->append(L"(");
@@ -683,6 +692,8 @@
LogParam(p.state, l);
l->append(L", ");
LogParam(p.reload, l);
+ l->append(L", ");
+ LogParam(p.request_time, l);
l->append(L")");
}
};
« no previous file with comments | « chrome/chrome.gyp ('k') | chrome/renderer/extensions/loadtimes_extension_bindings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698