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

Unified Diff: components/page_load_metrics/common/page_load_timing.cc

Issue 2177743002: Migrate page_load_metrics out of components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: migrate page_load_metrics_messages to common message generator 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
Index: components/page_load_metrics/common/page_load_timing.cc
diff --git a/components/page_load_metrics/common/page_load_timing.cc b/components/page_load_metrics/common/page_load_timing.cc
deleted file mode 100644
index 8bda0f894d149d3ff66dfe2025649c447e70606b..0000000000000000000000000000000000000000
--- a/components/page_load_metrics/common/page_load_timing.cc
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright 2015 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/page_load_metrics/common/page_load_timing.h"
-
-namespace page_load_metrics {
-
-PageLoadTiming::PageLoadTiming() {}
-
-PageLoadTiming::PageLoadTiming(const PageLoadTiming& other) = default;
-
-PageLoadTiming::~PageLoadTiming() {}
-
-bool PageLoadTiming::operator==(const PageLoadTiming& other) const {
- return navigation_start == other.navigation_start &&
- response_start == other.response_start &&
- dom_loading == other.dom_loading &&
- dom_content_loaded_event_start ==
- other.dom_content_loaded_event_start &&
- load_event_start == other.load_event_start &&
- first_layout == other.first_layout &&
- first_paint == other.first_paint &&
- first_text_paint == other.first_text_paint &&
- first_image_paint == other.first_image_paint &&
- parse_start == other.parse_start && parse_stop == other.parse_stop &&
- parse_blocked_on_script_load_duration ==
- other.parse_blocked_on_script_load_duration &&
- parse_blocked_on_script_load_from_document_write_duration ==
- other.parse_blocked_on_script_load_from_document_write_duration;
-}
-
-bool PageLoadTiming::IsEmpty() const {
- return navigation_start.is_null() && !response_start && !dom_loading &&
- !dom_content_loaded_event_start && !load_event_start &&
- !first_layout && !first_paint && !first_text_paint &&
- !first_image_paint && !parse_start && !parse_stop &&
- !parse_blocked_on_script_load_duration &&
- !parse_blocked_on_script_load_from_document_write_duration;
-}
-
-PageLoadMetadata::PageLoadMetadata() {}
-
-bool PageLoadMetadata::operator==(const PageLoadMetadata& other) const {
- return behavior_flags == other.behavior_flags;
-}
-
-} // namespace page_load_metrics
« no previous file with comments | « components/page_load_metrics/common/page_load_timing.h ('k') | components/page_load_metrics/renderer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698