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

Unified Diff: third_party/WebKit/Source/platform/network/ResourceRequest.h

Issue 2316573002: PlzNavigate: Support ResourceTiming API (Closed)
Patch Set: Rebase Created 4 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
Index: third_party/WebKit/Source/platform/network/ResourceRequest.h
diff --git a/third_party/WebKit/Source/platform/network/ResourceRequest.h b/third_party/WebKit/Source/platform/network/ResourceRequest.h
index ca2b755e72f6250c624862733c76118a0ae9bcb1..85abacc726f61ff2cf0d64ba9f88a3b2450703a9 100644
--- a/third_party/WebKit/Source/platform/network/ResourceRequest.h
+++ b/third_party/WebKit/Source/platform/network/ResourceRequest.h
@@ -96,7 +96,7 @@ class PLATFORM_EXPORT ResourceRequest final {
void setCachePolicy(WebCachePolicy);
double timeoutInterval() const; // May return 0 when using platform default.
- void setTimeoutInterval(double timeoutInterval);
+ void setTimeoutInterval(double);
const KURL& firstPartyForCookies() const;
void setFirstPartyForCookies(const KURL& firstPartyForCookies);
@@ -286,7 +286,9 @@ class PLATFORM_EXPORT ResourceRequest final {
}
double uiStartTime() const { return m_uiStartTime; }
- void setUIStartTime(double uiStartTime) { m_uiStartTime = uiStartTime; }
+ void setUIStartTime(double uiStartTimeSeconds) {
+ m_uiStartTime = uiStartTimeSeconds;
+ }
// https://mikewest.github.io/cors-rfc1918/#external-request
bool isExternalRequest() const { return m_isExternalRequest; }
@@ -303,6 +305,9 @@ class PLATFORM_EXPORT ResourceRequest final {
void setRedirectStatus(RedirectStatus status) { m_redirectStatus = status; }
RedirectStatus redirectStatus() const { return m_redirectStatus; }
+ void setNavigationStartTime(double);
+ double navigationStartTime() const { return m_navigationStart; }
+
private:
void initialize(const KURL&);
@@ -350,6 +355,8 @@ class PLATFORM_EXPORT ResourceRequest final {
static double s_defaultTimeoutInterval;
RedirectStatus m_redirectStatus;
+
+ double m_navigationStart = 0;
};
struct CrossThreadResourceRequestData {

Powered by Google App Engine
This is Rietveld 408576698