| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ModulesInitializer.h" | 5 #include "ModulesInitializer.h" |
| 6 | 6 |
| 7 #include "bindings/modules/v8/ModuleBindingsInitializer.h" | 7 #include "bindings/modules/v8/ModuleBindingsInitializer.h" |
| 8 #include "core/EventTypeNames.h" | 8 #include "core/EventTypeNames.h" |
| 9 #include "core/css/CSSPaintImageGenerator.h" | 9 #include "core/css/CSSPaintImageGenerator.h" |
| 10 #include "core/dom/Document.h" | 10 #include "core/dom/Document.h" |
| 11 #include "core/html/HTMLCanvasElement.h" | 11 #include "core/html/HTMLCanvasElement.h" |
| 12 #include "core/offscreencanvas/OffscreenCanvas.h" | 12 #include "core/offscreencanvas/OffscreenCanvas.h" |
| 13 #include "modules/EventModulesFactory.h" | 13 #include "modules/EventModulesFactory.h" |
| 14 #include "modules/EventModulesNames.h" | 14 #include "modules/EventModulesNames.h" |
| 15 #include "modules/EventTargetModulesNames.h" | 15 #include "modules/EventTargetModulesNames.h" |
| 16 #include "modules/IndexedDBNames.h" | 16 #include "modules/IndexedDBNames.h" |
| 17 #include "modules/accessibility/AXObjectCacheImpl.h" | 17 #include "modules/accessibility/AXObjectCacheImpl.h" |
| 18 #include "modules/canvas2d/CanvasRenderingContext2D.h" | 18 #include "modules/canvas2d/CanvasRenderingContext2D.h" |
| 19 #include "modules/compositorworker/CompositorWorkerThread.h" | 19 #include "modules/compositorworker/CompositorWorkerThread.h" |
| 20 #include "modules/csspaint/CSSPaintImageGeneratorImpl.h" | 20 #include "modules/csspaint/CSSPaintImageGeneratorImpl.h" |
| 21 #include "modules/filesystem/DraggedIsolatedFileSystemImpl.h" | 21 #include "modules/filesystem/DraggedIsolatedFileSystemImpl.h" |
| 22 #include "modules/imagebitmap/ImageBitmapRenderingContext.h" | 22 #include "modules/imagebitmap/ImageBitmapRenderingContext.h" |
| 23 #include "modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h" | 23 #include "modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h" |
| 24 #include "modules/time_zone_monitor/TimeZoneMonitorClient.h" |
| 24 #include "modules/webdatabase/DatabaseManager.h" | 25 #include "modules/webdatabase/DatabaseManager.h" |
| 25 #include "modules/webgl/WebGL2RenderingContext.h" | 26 #include "modules/webgl/WebGL2RenderingContext.h" |
| 26 #include "modules/webgl/WebGLRenderingContext.h" | 27 #include "modules/webgl/WebGLRenderingContext.h" |
| 27 #include "wtf/PtrUtil.h" | 28 #include "wtf/PtrUtil.h" |
| 28 | 29 |
| 29 namespace blink { | 30 namespace blink { |
| 30 | 31 |
| 31 void ModulesInitializer::initialize() { | 32 void ModulesInitializer::initialize() { |
| 32 ASSERT(!isInitialized()); | 33 ASSERT(!isInitialized()); |
| 33 | 34 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 ASSERT(isInitialized()); | 70 ASSERT(isInitialized()); |
| 70 } | 71 } |
| 71 | 72 |
| 72 void ModulesInitializer::shutdown() { | 73 void ModulesInitializer::shutdown() { |
| 73 ASSERT(isInitialized()); | 74 ASSERT(isInitialized()); |
| 74 DatabaseManager::terminateDatabaseThread(); | 75 DatabaseManager::terminateDatabaseThread(); |
| 75 CoreInitializer::shutdown(); | 76 CoreInitializer::shutdown(); |
| 76 CompositorWorkerThread::clearSharedBackingThread(); | 77 CompositorWorkerThread::clearSharedBackingThread(); |
| 77 } | 78 } |
| 78 | 79 |
| 80 void ModulesInitializer::initializeMojo() { |
| 81 if (m_isMojoInitialized) |
| 82 return; |
| 83 |
| 84 TimeZoneMonitorClient::Init(); |
| 85 |
| 86 m_isMojoInitialized = true; |
| 87 } |
| 88 |
| 79 } // namespace blink | 89 } // namespace blink |
| OLD | NEW |