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

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

Issue 2316573002: PlzNavigate: Support ResourceTiming API (Closed)
Patch Set: Nit + rebase + build fix Created 4 years, 3 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 a43f60754a60f58a79bbd1ccf70706b6f0bdfd83..d3e14b291e52c311d4cfb62cddc6406f9c2cce25 100644
--- a/third_party/WebKit/Source/platform/network/ResourceRequest.h
+++ b/third_party/WebKit/Source/platform/network/ResourceRequest.h
@@ -95,7 +95,7 @@ public:
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);
@@ -225,7 +225,7 @@ public:
void setCheckForBrowserSideNavigation(bool check) { m_checkForBrowserSideNavigation = check; }
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; }
@@ -237,6 +237,9 @@ public:
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&);
@@ -283,6 +286,8 @@ private:
static double s_defaultTimeoutInterval;
RedirectStatus m_redirectStatus;
+
+ double m_navigationStart = 0;
};
struct CrossThreadResourceRequestData {

Powered by Google App Engine
This is Rietveld 408576698