| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #ifndef WindowProxyManager_h | 5 #ifndef WindowProxyManager_h |
| 6 #define WindowProxyManager_h | 6 #define WindowProxyManager_h |
| 7 | 7 |
| 8 #include "platform/heap/Handle.h" | 8 #include "platform/heap/Handle.h" |
| 9 #include "wtf/Vector.h" | 9 #include "wtf/Vector.h" |
| 10 #include <utility> | 10 #include <utility> |
| 11 #include <v8.h> | 11 #include <v8.h> |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class DOMWrapperWorld; | 15 class DOMWrapperWorld; |
| 16 class Frame; | 16 class Frame; |
| 17 class ScriptState; | 17 class ScriptState; |
| 18 class SecurityOrigin; | 18 class SecurityOrigin; |
| 19 class WindowProxy; | 19 class WindowProxy; |
| 20 | 20 |
| 21 class WindowProxyManager : public NoBaseWillBeGarbageCollected<WindowProxyManage
r> { | 21 class WindowProxyManager : public NoBaseWillBeGarbageCollectedFinalized<WindowPr
oxyManager> { |
| 22 public: | 22 public: |
| 23 static PassOwnPtrWillBeRawPtr<WindowProxyManager> create(Frame*); | 23 static PassOwnPtrWillBeRawPtr<WindowProxyManager> create(Frame*); |
| 24 | 24 |
| 25 ~WindowProxyManager(); | 25 ~WindowProxyManager(); |
| 26 void trace(Visitor*); | 26 void trace(Visitor*); |
| 27 | 27 |
| 28 Frame* frame() const { return m_frame.get(); } | 28 Frame* frame() const { return m_frame.get(); } |
| 29 v8::Isolate* isolate() const { return m_isolate; } | 29 v8::Isolate* isolate() const { return m_isolate; } |
| 30 WindowProxy* mainWorldProxy() const { return m_windowProxy.get(); } | 30 WindowProxy* mainWorldProxy() const { return m_windowProxy.get(); } |
| 31 | 31 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 47 RawPtrWillBeMember<Frame> m_frame; | 47 RawPtrWillBeMember<Frame> m_frame; |
| 48 v8::Isolate* const m_isolate; | 48 v8::Isolate* const m_isolate; |
| 49 | 49 |
| 50 const OwnPtrWillBeMember<WindowProxy> m_windowProxy; | 50 const OwnPtrWillBeMember<WindowProxy> m_windowProxy; |
| 51 IsolatedWorldMap m_isolatedWorlds; | 51 IsolatedWorldMap m_isolatedWorlds; |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 } // namespace blink | 54 } // namespace blink |
| 55 | 55 |
| 56 #endif // WindowProxyManager_h | 56 #endif // WindowProxyManager_h |
| OLD | NEW |