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

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

Issue 1882003002: include RefCounted.h where needed, only. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compile fix Created 4 years, 8 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) 2010 Google, Inc. All Rights Reserved. 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 #include "platform/Histogram.h" 49 #include "platform/Histogram.h"
50 #include "platform/SharedBuffer.h" 50 #include "platform/SharedBuffer.h"
51 #include "platform/ThreadSafeFunctional.h" 51 #include "platform/ThreadSafeFunctional.h"
52 #include "platform/TraceEvent.h" 52 #include "platform/TraceEvent.h"
53 #include "platform/heap/Handle.h" 53 #include "platform/heap/Handle.h"
54 #include "public/platform/Platform.h" 54 #include "public/platform/Platform.h"
55 #include "public/platform/WebFrameScheduler.h" 55 #include "public/platform/WebFrameScheduler.h"
56 #include "public/platform/WebLoadingBehaviorFlag.h" 56 #include "public/platform/WebLoadingBehaviorFlag.h"
57 #include "public/platform/WebScheduler.h" 57 #include "public/platform/WebScheduler.h"
58 #include "public/platform/WebThread.h" 58 #include "public/platform/WebThread.h"
59 #include "wtf/RefCounted.h"
60 #include "wtf/TemporaryChange.h" 59 #include "wtf/TemporaryChange.h"
61 60
62 namespace blink { 61 namespace blink {
63 62
64 using namespace HTMLNames; 63 using namespace HTMLNames;
65 64
66 // This is a direct transcription of step 4 from: 65 // This is a direct transcription of step 4 from:
67 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-end.html#frag ment-case 66 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-end.html#frag ment-case
68 static HTMLTokenizer::State tokenizerStateForContextElement(Element* contextElem ent, bool reportErrors, const HTMLParserOptions& options) 67 static HTMLTokenizer::State tokenizerStateForContextElement(Element* contextElem ent, bool reportErrors, const HTMLParserOptions& options)
69 { 68 {
(...skipping 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after
1166 DEFINE_STATIC_LOCAL(CustomCountHistogram, successHistogram, ("PreloadSca nner.DocumentWrite.ExecutionTime.Success", 1, 10000, 50)); 1165 DEFINE_STATIC_LOCAL(CustomCountHistogram, successHistogram, ("PreloadSca nner.DocumentWrite.ExecutionTime.Success", 1, 10000, 50));
1167 successHistogram.count(duration); 1166 successHistogram.count(duration);
1168 } else { 1167 } else {
1169 DEFINE_STATIC_LOCAL(CustomCountHistogram, failureHistogram, ("PreloadSca nner.DocumentWrite.ExecutionTime.Failure", 1, 10000, 50)); 1168 DEFINE_STATIC_LOCAL(CustomCountHistogram, failureHistogram, ("PreloadSca nner.DocumentWrite.ExecutionTime.Failure", 1, 10000, 50));
1170 failureHistogram.count(duration); 1169 failureHistogram.count(duration);
1171 } 1170 }
1172 1171
1173 } 1172 }
1174 1173
1175 } // namespace blink 1174 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698