| 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 #ifndef WindowProxyManager_h | 5 #ifndef WindowProxyManager_h |
| 6 #define WindowProxyManager_h | 6 #define WindowProxyManager_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
| 10 #include "wtf/Vector.h" | 10 #include "wtf/Vector.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 WindowProxy* windowProxy(DOMWrapperWorld&); | 32 WindowProxy* windowProxy(DOMWrapperWorld&); |
| 33 | 33 |
| 34 void clearForClose(); | 34 void clearForClose(); |
| 35 void clearForNavigation(); | 35 void clearForNavigation(); |
| 36 | 36 |
| 37 // Sets the given security origin to the main world's context. Also updates | 37 // Sets the given security origin to the main world's context. Also updates |
| 38 // the security origin of the context for each isolated world. | 38 // the security origin of the context for each isolated world. |
| 39 void updateSecurityOrigin(SecurityOrigin*); | 39 void updateSecurityOrigin(SecurityOrigin*); |
| 40 | 40 |
| 41 // For devtools: | |
| 42 WindowProxy* existingWindowProxy(DOMWrapperWorld&); | |
| 43 | |
| 44 void releaseGlobals(HashMap<DOMWrapperWorld*, v8::Local<v8::Object>>&); | 41 void releaseGlobals(HashMap<DOMWrapperWorld*, v8::Local<v8::Object>>&); |
| 45 void setGlobals(const HashMap<DOMWrapperWorld*, v8::Local<v8::Object>>&); | 42 void setGlobals(const HashMap<DOMWrapperWorld*, v8::Local<v8::Object>>&); |
| 46 | 43 |
| 47 private: | 44 private: |
| 48 typedef HeapHashMap<int, Member<WindowProxy>> IsolatedWorldMap; | 45 typedef HeapHashMap<int, Member<WindowProxy>> IsolatedWorldMap; |
| 49 | 46 |
| 50 explicit WindowProxyManager(Frame&); | 47 explicit WindowProxyManager(Frame&); |
| 51 | 48 |
| 52 Member<Frame> m_frame; | 49 Member<Frame> m_frame; |
| 53 v8::Isolate* const m_isolate; | 50 v8::Isolate* const m_isolate; |
| 54 | 51 |
| 55 const Member<WindowProxy> m_windowProxy; | 52 const Member<WindowProxy> m_windowProxy; |
| 56 IsolatedWorldMap m_isolatedWorlds; | 53 IsolatedWorldMap m_isolatedWorlds; |
| 57 }; | 54 }; |
| 58 | 55 |
| 59 } // namespace blink | 56 } // namespace blink |
| 60 | 57 |
| 61 #endif // WindowProxyManager_h | 58 #endif // WindowProxyManager_h |
| OLD | NEW |