OLD | NEW |
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 #include "core/loader/LinkLoader.h" | 47 #include "core/loader/LinkLoader.h" |
48 #include "core/loader/NavigationScheduler.h" | 48 #include "core/loader/NavigationScheduler.h" |
49 #include "core/probe/CoreProbes.h" | 49 #include "core/probe/CoreProbes.h" |
50 #include "platform/CrossThreadFunctional.h" | 50 #include "platform/CrossThreadFunctional.h" |
51 #include "platform/Histogram.h" | 51 #include "platform/Histogram.h" |
52 #include "platform/SharedBuffer.h" | 52 #include "platform/SharedBuffer.h" |
53 #include "platform/WebFrameScheduler.h" | 53 #include "platform/WebFrameScheduler.h" |
54 #include "platform/heap/Handle.h" | 54 #include "platform/heap/Handle.h" |
55 #include "platform/instrumentation/tracing/TraceEvent.h" | 55 #include "platform/instrumentation/tracing/TraceEvent.h" |
56 #include "platform/loader/fetch/ResourceFetcher.h" | 56 #include "platform/loader/fetch/ResourceFetcher.h" |
| 57 #include "platform/scheduler/child/web_scheduler.h" |
57 #include "platform/wtf/AutoReset.h" | 58 #include "platform/wtf/AutoReset.h" |
58 #include "platform/wtf/PtrUtil.h" | 59 #include "platform/wtf/PtrUtil.h" |
59 #include "public/platform/Platform.h" | 60 #include "public/platform/Platform.h" |
60 #include "public/platform/WebLoadingBehaviorFlag.h" | 61 #include "public/platform/WebLoadingBehaviorFlag.h" |
61 #include "public/platform/WebScheduler.h" | |
62 #include "public/platform/WebThread.h" | 62 #include "public/platform/WebThread.h" |
63 | 63 |
64 namespace blink { | 64 namespace blink { |
65 | 65 |
66 using namespace HTMLNames; | 66 using namespace HTMLNames; |
67 | 67 |
68 // This is a direct transcription of step 4 from: | 68 // This is a direct transcription of step 4 from: |
69 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-end.html#frag
ment-case | 69 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-end.html#frag
ment-case |
70 static HTMLTokenizer::State TokenizerStateForContextElement( | 70 static HTMLTokenizer::State TokenizerStateForContextElement( |
71 Element* context_element, | 71 Element* context_element, |
(...skipping 1261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1333 success_histogram.Count(duration); | 1333 success_histogram.Count(duration); |
1334 } else { | 1334 } else { |
1335 DEFINE_STATIC_LOCAL( | 1335 DEFINE_STATIC_LOCAL( |
1336 CustomCountHistogram, failure_histogram, | 1336 CustomCountHistogram, failure_histogram, |
1337 ("PreloadScanner.DocumentWrite.ExecutionTime.Failure", 1, 10000, 50)); | 1337 ("PreloadScanner.DocumentWrite.ExecutionTime.Failure", 1, 10000, 50)); |
1338 failure_histogram.Count(duration); | 1338 failure_histogram.Count(duration); |
1339 } | 1339 } |
1340 } | 1340 } |
1341 | 1341 |
1342 } // namespace blink | 1342 } // namespace blink |
OLD | NEW |