| 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 "config.h" | 5 #include "config.h" |
| 6 #include "bindings/core/v8/WindowProxyManager.h" | 6 #include "bindings/core/v8/WindowProxyManager.h" |
| 7 | 7 |
| 8 #include "bindings/core/v8/DOMWrapperWorld.h" | 8 #include "bindings/core/v8/DOMWrapperWorld.h" |
| 9 #include "bindings/core/v8/WindowProxy.h" | 9 #include "bindings/core/v8/WindowProxy.h" |
| 10 #include "core/frame/Frame.h" | 10 #include "core/frame/Frame.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 PassOwnPtrWillBeRawPtr<WindowProxyManager> WindowProxyManager::create(Frame& fra
me) | 14 PassOwnPtrWillBeRawPtr<WindowProxyManager> WindowProxyManager::create(Frame& fra
me) |
| 15 { | 15 { |
| 16 return adoptPtrWillBeNoop(new WindowProxyManager(frame)); | 16 return adoptPtrWillBeNoop(new WindowProxyManager(frame)); |
| 17 } | 17 } |
| 18 | 18 |
| 19 WindowProxyManager::~WindowProxyManager() | 19 WindowProxyManager::~WindowProxyManager() |
| 20 { | 20 { |
| 21 } | 21 } |
| 22 | 22 |
| 23 void WindowProxyManager::trace(Visitor* visitor) | 23 DEFINE_TRACE(WindowProxyManager) |
| 24 { | 24 { |
| 25 #if ENABLE(OILPAN) | 25 #if ENABLE(OILPAN) |
| 26 visitor->trace(m_frame); | 26 visitor->trace(m_frame); |
| 27 visitor->trace(m_windowProxy); | 27 visitor->trace(m_windowProxy); |
| 28 visitor->trace(m_isolatedWorlds); | 28 visitor->trace(m_isolatedWorlds); |
| 29 #endif | 29 #endif |
| 30 } | 30 } |
| 31 | 31 |
| 32 WindowProxy* WindowProxyManager::windowProxy(DOMWrapperWorld& world) | 32 WindowProxy* WindowProxyManager::windowProxy(DOMWrapperWorld& world) |
| 33 { | 33 { |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 } | 84 } |
| 85 | 85 |
| 86 WindowProxyManager::WindowProxyManager(Frame& frame) | 86 WindowProxyManager::WindowProxyManager(Frame& frame) |
| 87 : m_frame(&frame) | 87 : m_frame(&frame) |
| 88 , m_isolate(v8::Isolate::GetCurrent()) | 88 , m_isolate(v8::Isolate::GetCurrent()) |
| 89 , m_windowProxy(WindowProxy::create(&frame, DOMWrapperWorld::mainWorld(), m_
isolate)) | 89 , m_windowProxy(WindowProxy::create(&frame, DOMWrapperWorld::mainWorld(), m_
isolate)) |
| 90 { | 90 { |
| 91 } | 91 } |
| 92 | 92 |
| 93 } // namespace blink | 93 } // namespace blink |
| OLD | NEW |