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 "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> |
(...skipping 21 matching lines...) Expand all Loading... |
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 // For devtools: | 37 // For devtools: |
38 WindowProxy* existingWindowProxy(DOMWrapperWorld&); | 38 WindowProxy* existingWindowProxy(DOMWrapperWorld&); |
39 void collectIsolatedContexts(Vector<std::pair<ScriptState*, SecurityOrigin*>
>&); | 39 void collectIsolatedContexts(Vector<std::pair<ScriptState*, SecurityOrigin*>
>&); |
40 | 40 |
41 private: | 41 private: |
42 typedef WillBeHeapHashMap<int, OwnPtrWillBeMember<WindowProxy> > IsolatedWor
ldMap; | 42 typedef WillBeHeapHashMap<int, OwnPtrWillBeMember<WindowProxy>> IsolatedWorl
dMap; |
43 | 43 |
44 explicit WindowProxyManager(Frame&); | 44 explicit WindowProxyManager(Frame&); |
45 | 45 |
46 RawPtrWillBeMember<Frame> m_frame; | 46 RawPtrWillBeMember<Frame> m_frame; |
47 v8::Isolate* const m_isolate; | 47 v8::Isolate* const m_isolate; |
48 | 48 |
49 const OwnPtrWillBeMember<WindowProxy> m_windowProxy; | 49 const OwnPtrWillBeMember<WindowProxy> m_windowProxy; |
50 IsolatedWorldMap m_isolatedWorlds; | 50 IsolatedWorldMap m_isolatedWorlds; |
51 }; | 51 }; |
52 | 52 |
53 } // namespace blink | 53 } // namespace blink |
54 | 54 |
55 #endif // WindowProxyManager_h | 55 #endif // WindowProxyManager_h |
OLD | NEW |