OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "bindings/core/v8/WindowProxyManager.h" | 5 #include "bindings/core/v8/WindowProxyManager.h" |
6 | 6 |
7 #include "bindings/core/v8/DOMWrapperWorld.h" | 7 #include "bindings/core/v8/DOMWrapperWorld.h" |
8 #include "bindings/core/v8/WindowProxy.h" | 8 #include "bindings/core/v8/WindowProxy.h" |
9 #include "core/frame/Frame.h" | 9 #include "core/frame/Frame.h" |
10 | 10 |
11 namespace blink { | 11 namespace blink { |
12 | 12 |
13 WindowProxyManager* WindowProxyManager::create(Frame& frame) | 13 WindowProxyManager* WindowProxyManager::create(Frame& frame) |
14 { | 14 { |
15 return new WindowProxyManager(frame); | 15 return new WindowProxyManager(frame); |
16 } | 16 } |
17 | 17 |
| 18 WindowProxyManager::~WindowProxyManager() |
| 19 { |
| 20 } |
| 21 |
18 DEFINE_TRACE(WindowProxyManager) | 22 DEFINE_TRACE(WindowProxyManager) |
19 { | 23 { |
20 visitor->trace(m_frame); | 24 visitor->trace(m_frame); |
21 visitor->trace(m_windowProxy); | 25 visitor->trace(m_windowProxy); |
22 visitor->trace(m_isolatedWorlds); | 26 visitor->trace(m_isolatedWorlds); |
23 } | 27 } |
24 | 28 |
25 WindowProxy* WindowProxyManager::windowProxy(DOMWrapperWorld& world) | 29 WindowProxy* WindowProxyManager::windowProxy(DOMWrapperWorld& world) |
26 { | 30 { |
27 WindowProxy* windowProxy = nullptr; | 31 WindowProxy* windowProxy = nullptr; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 } | 93 } |
90 | 94 |
91 WindowProxyManager::WindowProxyManager(Frame& frame) | 95 WindowProxyManager::WindowProxyManager(Frame& frame) |
92 : m_frame(&frame) | 96 : m_frame(&frame) |
93 , m_isolate(v8::Isolate::GetCurrent()) | 97 , m_isolate(v8::Isolate::GetCurrent()) |
94 , m_windowProxy(WindowProxy::create(m_isolate, &frame, DOMWrapperWorld::main
World())) | 98 , m_windowProxy(WindowProxy::create(m_isolate, &frame, DOMWrapperWorld::main
World())) |
95 { | 99 { |
96 } | 100 } |
97 | 101 |
98 } // namespace blink | 102 } // namespace blink |
OLD | NEW |