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

Side by Side Diff: chrome/browser/page_load_metrics/observers/document_write_page_load_metrics_observer.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, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/document_write_page_load_me trics_observer.h" 5 #include "chrome/browser/page_load_metrics/observers/document_write_page_load_me trics_observer.h"
6 #include "components/page_load_metrics/browser/page_load_metrics_util.h" 6 #include "chrome/browser/page_load_metrics/page_load_metrics_util.h"
7 #include "third_party/WebKit/public/platform/WebLoadingBehaviorFlag.h" 7 #include "third_party/WebKit/public/platform/WebLoadingBehaviorFlag.h"
8 8
9 namespace internal { 9 namespace internal {
10 const char kHistogramDocWriteFirstContentfulPaint[] = 10 const char kHistogramDocWriteFirstContentfulPaint[] =
11 "PageLoad.Clients.DocWrite.Evaluator.Timing2." 11 "PageLoad.Clients.DocWrite.Evaluator.Timing2."
12 "NavigationToFirstContentfulPaint"; 12 "NavigationToFirstContentfulPaint";
13 const char kHistogramDocWriteParseStartToFirstContentfulPaint[] = 13 const char kHistogramDocWriteParseStartToFirstContentfulPaint[] =
14 "PageLoad.Clients.DocWrite.Evaluator.Timing2." 14 "PageLoad.Clients.DocWrite.Evaluator.Timing2."
15 "ParseStartToFirstContentfulPaint"; 15 "ParseStartToFirstContentfulPaint";
16 const char kHistogramDocWriteParseDuration[] = 16 const char kHistogramDocWriteParseDuration[] =
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 PAGE_LOAD_HISTOGRAM( 413 PAGE_LOAD_HISTOGRAM(
414 internal::kBackgroundHistogramDocWriteBlockParseBlockedOnScriptComplete, 414 internal::kBackgroundHistogramDocWriteBlockParseBlockedOnScriptComplete,
415 timing.parse_blocked_on_script_load_duration.value()); 415 timing.parse_blocked_on_script_load_duration.value());
416 PAGE_LOAD_HISTOGRAM( 416 PAGE_LOAD_HISTOGRAM(
417 internal:: 417 internal::
418 kBackgroundDocWriteBlockParseBlockedOnScriptLoadDocWriteComplete, 418 kBackgroundDocWriteBlockParseBlockedOnScriptLoadDocWriteComplete,
419 timing.parse_blocked_on_script_load_from_document_write_duration 419 timing.parse_blocked_on_script_load_from_document_write_duration
420 .value()); 420 .value());
421 } 421 }
422 } 422 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698