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

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

Issue 2123183002: Move crossThreadBind() from platform/ to wtf/ Base URL: https://chromium.googlesource.com/chromium/src.git@TRV_WTFCrossThreadCopier
Patch Set: Rebase 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 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 27 matching lines...) Expand all
38 #include "core/html/parser/BackgroundHTMLParser.h" 38 #include "core/html/parser/BackgroundHTMLParser.h"
39 #include "core/html/parser/HTMLParserScheduler.h" 39 #include "core/html/parser/HTMLParserScheduler.h"
40 #include "core/html/parser/HTMLParserThread.h" 40 #include "core/html/parser/HTMLParserThread.h"
41 #include "core/html/parser/HTMLScriptRunner.h" 41 #include "core/html/parser/HTMLScriptRunner.h"
42 #include "core/html/parser/HTMLTreeBuilder.h" 42 #include "core/html/parser/HTMLTreeBuilder.h"
43 #include "core/inspector/InspectorInstrumentation.h" 43 #include "core/inspector/InspectorInstrumentation.h"
44 #include "core/inspector/InspectorTraceEvents.h" 44 #include "core/inspector/InspectorTraceEvents.h"
45 #include "core/loader/DocumentLoader.h" 45 #include "core/loader/DocumentLoader.h"
46 #include "core/loader/LinkLoader.h" 46 #include "core/loader/LinkLoader.h"
47 #include "core/loader/NavigationScheduler.h" 47 #include "core/loader/NavigationScheduler.h"
48 #include "platform/CrossThreadFunctional.h"
49 #include "platform/Histogram.h" 48 #include "platform/Histogram.h"
50 #include "platform/SharedBuffer.h" 49 #include "platform/SharedBuffer.h"
51 #include "platform/TraceEvent.h" 50 #include "platform/TraceEvent.h"
52 #include "platform/heap/Handle.h" 51 #include "platform/heap/Handle.h"
53 #include "public/platform/Platform.h" 52 #include "public/platform/Platform.h"
54 #include "public/platform/WebFrameScheduler.h" 53 #include "public/platform/WebFrameScheduler.h"
55 #include "public/platform/WebLoadingBehaviorFlag.h" 54 #include "public/platform/WebLoadingBehaviorFlag.h"
56 #include "public/platform/WebScheduler.h" 55 #include "public/platform/WebScheduler.h"
57 #include "public/platform/WebThread.h" 56 #include "public/platform/WebThread.h"
57 #include "wtf/Functional.h"
58 #include "wtf/PtrUtil.h" 58 #include "wtf/PtrUtil.h"
59 #include "wtf/TemporaryChange.h" 59 #include "wtf/TemporaryChange.h"
60 #include <memory> 60 #include <memory>
61 61
62 namespace blink { 62 namespace blink {
63 63
64 using namespace HTMLNames; 64 using namespace HTMLNames;
65 65
66 // This is a direct transcription of step 4 from: 66 // 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 67 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-end.html#frag ment-case
(...skipping 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after
1139 (*closure)(); 1139 (*closure)();
1140 return; 1140 return;
1141 case Asynchronous: 1141 case Asynchronous:
1142 m_loadingTaskRunner->postTask(BLINK_FROM_HERE, std::move(closure)); 1142 m_loadingTaskRunner->postTask(BLINK_FROM_HERE, std::move(closure));
1143 return; 1143 return;
1144 } 1144 }
1145 NOTREACHED(); 1145 NOTREACHED();
1146 } 1146 }
1147 1147
1148 } // namespace blink 1148 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698