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

Side by Side Diff: sky/engine/core/Init.cpp

Issue 1223793006: Delete sky/engine/core/fetch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « sky/engine/core/BUILD.gn ('k') | sky/engine/core/core.gni » ('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 15 matching lines...) Expand all
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 "sky/engine/core/Init.h" 31 #include "sky/engine/core/Init.h"
32 32
33 #include "gen/sky/core/EventNames.h" 33 #include "gen/sky/core/EventNames.h"
34 #include "gen/sky/core/EventTargetNames.h" 34 #include "gen/sky/core/EventTargetNames.h"
35 #include "gen/sky/core/EventTypeNames.h" 35 #include "gen/sky/core/EventTypeNames.h"
36 #include "gen/sky/core/FetchInitiatorTypeNames.h"
37 #include "gen/sky/core/HTMLNames.h" 36 #include "gen/sky/core/HTMLNames.h"
38 #include "gen/sky/core/MediaFeatureNames.h" 37 #include "gen/sky/core/MediaFeatureNames.h"
39 #include "gen/sky/core/MediaTypeNames.h" 38 #include "gen/sky/core/MediaTypeNames.h"
40 #include "gen/sky/platform/FontFamilyNames.h" 39 #include "gen/sky/platform/FontFamilyNames.h"
41 #include "sky/engine/core/dom/Document.h" 40 #include "sky/engine/core/dom/Document.h"
42 #include "sky/engine/platform/Partitions.h" 41 #include "sky/engine/platform/Partitions.h"
43 #include "sky/engine/platform/PlatformThreadData.h" 42 #include "sky/engine/platform/PlatformThreadData.h"
44 #include "sky/engine/wtf/text/StringStatics.h" 43 #include "sky/engine/wtf/text/StringStatics.h"
45 44
46 namespace blink { 45 namespace blink {
47 46
48 void CoreInitializer::init() 47 void CoreInitializer::init()
49 { 48 {
50 ASSERT(!m_isInited); 49 ASSERT(!m_isInited);
51 m_isInited = true; 50 m_isInited = true;
52 51
53 HTMLNames::init(); 52 HTMLNames::init();
54 53
55 EventNames::init(); 54 EventNames::init();
56 EventTargetNames::init(); 55 EventTargetNames::init();
57 EventTypeNames::init(); 56 EventTypeNames::init();
58 FetchInitiatorTypeNames::init();
59 FontFamilyNames::init(); 57 FontFamilyNames::init();
60 MediaFeatureNames::init(); 58 MediaFeatureNames::init();
61 MediaTypeNames::init(); 59 MediaTypeNames::init();
62 60
63 // It would make logical sense to do this in WTF::initialize() but there are 61 // It would make logical sense to do this in WTF::initialize() but there are
64 // ordering dependencies, e.g. about "xmlns". 62 // ordering dependencies, e.g. about "xmlns".
65 WTF::StringStatics::init(); 63 WTF::StringStatics::init();
66 64
67 QualifiedName::init(); 65 QualifiedName::init();
68 Partitions::init(); 66 Partitions::init();
69 67
70 // Ensure that the main thread's thread-local data is initialized before 68 // Ensure that the main thread's thread-local data is initialized before
71 // starting any worker threads. 69 // starting any worker threads.
72 PlatformThreadData::current(); 70 PlatformThreadData::current();
73 71
74 StringImpl::freezeStaticStrings(); 72 StringImpl::freezeStaticStrings();
75 } 73 }
76 74
77 void CoreInitializer::shutdown() 75 void CoreInitializer::shutdown()
78 { 76 {
79 Partitions::shutdown(); 77 Partitions::shutdown();
80 } 78 }
81 79
82 } // namespace blink 80 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/BUILD.gn ('k') | sky/engine/core/core.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698