| 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 | |
| 22 DEFINE_TRACE(WindowProxyManager) | 18 DEFINE_TRACE(WindowProxyManager) |
| 23 { | 19 { |
| 24 visitor->trace(m_frame); | 20 visitor->trace(m_frame); |
| 25 visitor->trace(m_windowProxy); | 21 visitor->trace(m_windowProxy); |
| 26 visitor->trace(m_isolatedWorlds); | 22 visitor->trace(m_isolatedWorlds); |
| 27 } | 23 } |
| 28 | 24 |
| 29 WindowProxy* WindowProxyManager::windowProxy(DOMWrapperWorld& world) | 25 WindowProxy* WindowProxyManager::windowProxy(DOMWrapperWorld& world) |
| 30 { | 26 { |
| 31 WindowProxy* windowProxy = nullptr; | 27 WindowProxy* windowProxy = nullptr; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 } | 89 } |
| 94 | 90 |
| 95 WindowProxyManager::WindowProxyManager(Frame& frame) | 91 WindowProxyManager::WindowProxyManager(Frame& frame) |
| 96 : m_frame(&frame) | 92 : m_frame(&frame) |
| 97 , m_isolate(v8::Isolate::GetCurrent()) | 93 , m_isolate(v8::Isolate::GetCurrent()) |
| 98 , m_windowProxy(WindowProxy::create(m_isolate, &frame, DOMWrapperWorld::main
World())) | 94 , m_windowProxy(WindowProxy::create(m_isolate, &frame, DOMWrapperWorld::main
World())) |
| 99 { | 95 { |
| 100 } | 96 } |
| 101 | 97 |
| 102 } // namespace blink | 98 } // namespace blink |
| OLD | NEW |