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

Unified Diff: components/web_view/url_request_cloneable.h

Issue 1391963004: Correctly record and pass around navigation start time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 | « components/web_view/public/interfaces/frame.mojom ('k') | components/web_view/url_request_cloneable.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/web_view/url_request_cloneable.h
diff --git a/components/web_view/url_request_cloneable.h b/components/web_view/url_request_cloneable.h
index b8b3c3d0b2ffc23546314229285905df5803aa97..18f3b3e9f37d1c602635eeac109129a9752a25bc 100644
--- a/components/web_view/url_request_cloneable.h
+++ b/components/web_view/url_request_cloneable.h
@@ -9,6 +9,7 @@
#include <vector>
#include "base/basictypes.h"
+#include "base/time/time.h"
#include "mojo/services/network/public/interfaces/url_loader.mojom.h"
#include "url/gurl.h"
@@ -28,6 +29,11 @@ class URLRequestCloneable {
// Creates a new URLRequest.
mojo::URLRequestPtr Clone() const;
+ base::TimeTicks originating_time() const { return originating_time_; }
+ void set_originating_time(base::TimeTicks value) {
+ originating_time_ = value;
+ }
+
private:
// All of these are straight from mojo::URLRequest.
mojo::String url_;
@@ -47,6 +53,8 @@ class URLRequestCloneable {
// AsURLRequest() is called.
std::vector<std::string> body_;
+ base::TimeTicks originating_time_;
+
DISALLOW_COPY_AND_ASSIGN(URLRequestCloneable);
};
« no previous file with comments | « components/web_view/public/interfaces/frame.mojom ('k') | components/web_view/url_request_cloneable.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698