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

Side by Side Diff: third_party/WebKit/Source/core/CoreInitializer.cpp

Issue 1776993007: Rename Init.h to CoreInitializer.h, and InitModules.h to ModuleInitializer.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « third_party/WebKit/Source/core/CoreInitializer.h ('k') | third_party/WebKit/Source/core/Init.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 10 matching lines...) Expand all
21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "Init.h" 31 #include "core/CoreInitializer.h"
32 32
33 #include "bindings/core/v8/ScriptStreamerThread.h" 33 #include "bindings/core/v8/ScriptStreamerThread.h"
34 #include "core/EventNames.h" 34 #include "core/EventNames.h"
35 #include "core/EventTargetNames.h" 35 #include "core/EventTargetNames.h"
36 #include "core/EventTypeNames.h" 36 #include "core/EventTypeNames.h"
37 #include "core/HTMLNames.h" 37 #include "core/HTMLNames.h"
38 #include "core/HTMLTokenizerNames.h" 38 #include "core/HTMLTokenizerNames.h"
39 #include "core/InputTypeNames.h" 39 #include "core/InputTypeNames.h"
40 #include "core/MathMLNames.h" 40 #include "core/MathMLNames.h"
41 #include "core/MediaFeatureNames.h" 41 #include "core/MediaFeatureNames.h"
(...skipping 24 matching lines...) Expand all
66 void CoreInitializer::registerEventFactory() 66 void CoreInitializer::registerEventFactory()
67 { 67 {
68 static bool isRegistered = false; 68 static bool isRegistered = false;
69 if (isRegistered) 69 if (isRegistered)
70 return; 70 return;
71 isRegistered = true; 71 isRegistered = true;
72 72
73 Document::registerEventFactory(EventFactory::create()); 73 Document::registerEventFactory(EventFactory::create());
74 } 74 }
75 75
76 void CoreInitializer::init() 76 void CoreInitializer::initialize()
77 { 77 {
78 ASSERT(!isInitialized()); 78 ASSERT(!isInitialized());
79 m_isInitialized = true; 79 m_isInitialized = true;
80 // Note: in order to add core static strings for a new module (1) 80 // Note: in order to add core static strings for a new module (1)
81 // the value of 'coreStaticStringsCount' must be updated with the 81 // the value of 'coreStaticStringsCount' must be updated with the
82 // added strings count, (2) if the added strings are quialified names 82 // added strings count, (2) if the added strings are quialified names
83 // the 'qualifiedNamesCount' must be updated as well, (3) the strings 83 // the 'qualifiedNamesCount' must be updated as well, (3) the strings
84 // 'init()' function call must be added. 84 // 'init()' function call must be added.
85 // TODO(mikhail.pozdnyakov@intel.com): We should generate static strings ini tialization code. 85 // TODO(mikhail.pozdnyakov@intel.com): We should generate static strings ini tialization code.
86 const unsigned qualifiedNamesCount = HTMLNames::HTMLTagsCount + HTMLNames::H TMLAttrsCount 86 const unsigned qualifiedNamesCount = HTMLNames::HTMLTagsCount + HTMLNames::H TMLAttrsCount
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 // cleared. 156 // cleared.
157 ASSERT(Platform::current()); 157 ASSERT(Platform::current());
158 HTMLParserThread::shutdown(); 158 HTMLParserThread::shutdown();
159 159
160 Platform::current()->unregisterMemoryDumpProvider(WebCacheMemoryDumpProvider ::instance()); 160 Platform::current()->unregisterMemoryDumpProvider(WebCacheMemoryDumpProvider ::instance());
161 161
162 WorkerThread::terminateAndWaitForAllWorkers(); 162 WorkerThread::terminateAndWaitForAllWorkers();
163 } 163 }
164 164
165 } // namespace blink 165 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/CoreInitializer.h ('k') | third_party/WebKit/Source/core/Init.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698