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

Unified Diff: components/data_reduction_proxy/core/common/data_reduction_proxy_page_load_timing.cc

Issue 2145743002: Changing the TimeDeltas in DRPPageLoadTiming to Optional (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 4 years, 5 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/data_reduction_proxy/core/common/data_reduction_proxy_page_load_timing.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/data_reduction_proxy/core/common/data_reduction_proxy_page_load_timing.cc
diff --git a/components/data_reduction_proxy/core/common/data_reduction_proxy_page_load_timing.cc b/components/data_reduction_proxy/core/common/data_reduction_proxy_page_load_timing.cc
new file mode 100644
index 0000000000000000000000000000000000000000..fdccecb0a1abded0581fa42d962428d5dc202a1c
--- /dev/null
+++ b/components/data_reduction_proxy/core/common/data_reduction_proxy_page_load_timing.cc
@@ -0,0 +1,29 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/data_reduction_proxy/core/common/data_reduction_proxy_page_load_timing.h"
+
+namespace data_reduction_proxy {
+
+DataReductionProxyPageLoadTiming::DataReductionProxyPageLoadTiming(
+ const base::Time& navigation_start,
+ const base::Optional<base::TimeDelta>& response_start,
+ const base::Optional<base::TimeDelta>& load_event_start,
+ const base::Optional<base::TimeDelta>& first_image_paint,
+ const base::Optional<base::TimeDelta>& first_contentful_paint)
+ : navigation_start(navigation_start),
+ response_start(response_start),
+ load_event_start(load_event_start),
+ first_image_paint(first_image_paint),
+ first_contentful_paint(first_contentful_paint) {}
+
+DataReductionProxyPageLoadTiming::DataReductionProxyPageLoadTiming(
+ const DataReductionProxyPageLoadTiming& other)
+ : navigation_start(other.navigation_start),
+ response_start(other.response_start),
+ load_event_start(other.load_event_start),
+ first_image_paint(other.first_image_paint),
+ first_contentful_paint(other.first_contentful_paint) {}
+
+} // namespace data_reduction_proxy
« no previous file with comments | « components/data_reduction_proxy/core/common/data_reduction_proxy_page_load_timing.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698