| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/page_load_metrics/observers/stale_while_revalidate_metr
ics_observer.h" | 5 #include "chrome/browser/page_load_metrics/observers/stale_while_revalidate_metr
ics_observer.h" |
| 6 | 6 |
| 7 #include "components/page_load_metrics/browser/page_load_metrics_util.h" | 7 #include "chrome/browser/page_load_metrics/page_load_metrics_util.h" |
| 8 #include "components/page_load_metrics/common/page_load_timing.h" | 8 #include "chrome/common/page_load_metrics/page_load_timing.h" |
| 9 #include "content/public/browser/navigation_handle.h" | 9 #include "content/public/browser/navigation_handle.h" |
| 10 #include "net/base/stale_while_revalidate_experiment_domains.h" | 10 #include "net/base/stale_while_revalidate_experiment_domains.h" |
| 11 | 11 |
| 12 namespace chrome { | 12 namespace chrome { |
| 13 | 13 |
| 14 StaleWhileRevalidateMetricsObserver::StaleWhileRevalidateMetricsObserver() | 14 StaleWhileRevalidateMetricsObserver::StaleWhileRevalidateMetricsObserver() |
| 15 : is_interesting_domain_(false) {} | 15 : is_interesting_domain_(false) {} |
| 16 | 16 |
| 17 void StaleWhileRevalidateMetricsObserver::OnCommit( | 17 void StaleWhileRevalidateMetricsObserver::OnCommit( |
| 18 content::NavigationHandle* navigation_handle) { | 18 content::NavigationHandle* navigation_handle) { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 45 if (WasStartedInForegroundOptionalEventInForeground(timing.first_text_paint, | 45 if (WasStartedInForegroundOptionalEventInForeground(timing.first_text_paint, |
| 46 extra_info)) { | 46 extra_info)) { |
| 47 PAGE_LOAD_HISTOGRAM( | 47 PAGE_LOAD_HISTOGRAM( |
| 48 "PageLoad.Clients.StaleWhileRevalidateExperiment.Timing2." | 48 "PageLoad.Clients.StaleWhileRevalidateExperiment.Timing2." |
| 49 "NavigationToFirstTextPaint", | 49 "NavigationToFirstTextPaint", |
| 50 timing.first_text_paint.value()); | 50 timing.first_text_paint.value()); |
| 51 } | 51 } |
| 52 } | 52 } |
| 53 | 53 |
| 54 } // namespace chrome | 54 } // namespace chrome |
| OLD | NEW |