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

Side by Side Diff: third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp

Issue 2346663004: Moving platform tracing things into platform/tracing. (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2009 Torch Mobile, Inc. http://www.torchmobile.com/ 3 * Copyright (C) 2009 Torch Mobile, Inc. http://www.torchmobile.com/
4 * Copyright (C) 2010 Google Inc. All Rights Reserved. 4 * Copyright (C) 2010 Google Inc. All Rights Reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #include "core/html/HTMLMetaElement.h" 44 #include "core/html/HTMLMetaElement.h"
45 #include "core/html/LinkRelAttribute.h" 45 #include "core/html/LinkRelAttribute.h"
46 #include "core/html/parser/HTMLParserIdioms.h" 46 #include "core/html/parser/HTMLParserIdioms.h"
47 #include "core/html/parser/HTMLSrcsetParser.h" 47 #include "core/html/parser/HTMLSrcsetParser.h"
48 #include "core/html/parser/HTMLTokenizer.h" 48 #include "core/html/parser/HTMLTokenizer.h"
49 #include "core/html/parser/ResourcePreloader.h" 49 #include "core/html/parser/ResourcePreloader.h"
50 #include "core/loader/LinkLoader.h" 50 #include "core/loader/LinkLoader.h"
51 #include "platform/ContentType.h" 51 #include "platform/ContentType.h"
52 #include "platform/Histogram.h" 52 #include "platform/Histogram.h"
53 #include "platform/MIMETypeRegistry.h" 53 #include "platform/MIMETypeRegistry.h"
54 #include "platform/TraceEvent.h" 54 #include "platform/tracing/TraceEvent.h"
55 #include <memory> 55 #include <memory>
56 56
57 namespace blink { 57 namespace blink {
58 58
59 namespace { 59 namespace {
60 60
61 // When adding values to this enum, update histograms.xml as well. 61 // When adding values to this enum, update histograms.xml as well.
62 enum DocumentWriteGatedEvaluation { 62 enum DocumentWriteGatedEvaluation {
63 GatedEvaluationScriptTooLong, 63 GatedEvaluationScriptTooLong,
64 GatedEvaluationNoLikelyScript, 64 GatedEvaluationNoLikelyScript,
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after
823 ASSERT(document); 823 ASSERT(document);
824 doHtmlPreloadScanning = !document->settings() || document->settings()->doHtm lPreloadScanning(); 824 doHtmlPreloadScanning = !document->settings() || document->settings()->doHtm lPreloadScanning();
825 doDocumentWritePreloadScanning = doHtmlPreloadScanning && document->frame() && document->frame()->isMainFrame(); 825 doDocumentWritePreloadScanning = doHtmlPreloadScanning && document->frame() && document->frame()->isMainFrame();
826 defaultViewportMinWidth = document->viewportDefaultMinWidth(); 826 defaultViewportMinWidth = document->viewportDefaultMinWidth();
827 viewportMetaZeroValuesQuirk = document->settings() && document->settings()-> viewportMetaZeroValuesQuirk(); 827 viewportMetaZeroValuesQuirk = document->settings() && document->settings()-> viewportMetaZeroValuesQuirk();
828 viewportMetaEnabled = document->settings() && document->settings()->viewport MetaEnabled(); 828 viewportMetaEnabled = document->settings() && document->settings()->viewport MetaEnabled();
829 referrerPolicy = document->getReferrerPolicy(); 829 referrerPolicy = document->getReferrerPolicy();
830 } 830 }
831 831
832 } // namespace blink 832 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698