| 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 <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "bindings/core/v8/LocalWindowProxy.h" | 10 #include "bindings/core/v8/LocalWindowProxy.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 class SecurityOrigin; | 21 class SecurityOrigin; |
| 22 | 22 |
| 23 class WindowProxyManager : public GarbageCollected<WindowProxyManager> { | 23 class WindowProxyManager : public GarbageCollected<WindowProxyManager> { |
| 24 public: | 24 public: |
| 25 DECLARE_TRACE(); | 25 DECLARE_TRACE(); |
| 26 | 26 |
| 27 v8::Isolate* GetIsolate() const { return isolate_; } | 27 v8::Isolate* GetIsolate() const { return isolate_; } |
| 28 | 28 |
| 29 void ClearForClose(); | 29 void ClearForClose(); |
| 30 void CORE_EXPORT ClearForNavigation(); | 30 void CORE_EXPORT ClearForNavigation(); |
| 31 void ClearForSwap(); |
| 31 | 32 |
| 32 // Global proxies are passed in a vector to maintain their order: global proxy | 33 // Global proxies are passed in a vector to maintain their order: global proxy |
| 33 // object for the main world is always first. This is needed to prevent bugs | 34 // object for the main world is always first. This is needed to prevent bugs |
| 34 // like https://crbug.com/700077 . | 35 // like https://crbug.com/700077 . |
| 35 using GlobalProxyVector = | 36 using GlobalProxyVector = |
| 36 Vector<std::pair<DOMWrapperWorld*, v8::Local<v8::Object>>>; | 37 Vector<std::pair<DOMWrapperWorld*, v8::Local<v8::Object>>>; |
| 37 void CORE_EXPORT ReleaseGlobalProxies(GlobalProxyVector&); | 38 void CORE_EXPORT ReleaseGlobalProxies(GlobalProxyVector&); |
| 38 void CORE_EXPORT SetGlobalProxies(const GlobalProxyVector&); | 39 void CORE_EXPORT SetGlobalProxies(const GlobalProxyVector&); |
| 39 | 40 |
| 40 WindowProxy* MainWorldProxy() { | 41 WindowProxy* MainWorldProxy() { |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 private: | 120 private: |
| 120 explicit RemoteWindowProxyManager(RemoteFrame& frame) | 121 explicit RemoteWindowProxyManager(RemoteFrame& frame) |
| 121 : WindowProxyManagerImplHelper<RemoteFrame, RemoteWindowProxy>( | 122 : WindowProxyManagerImplHelper<RemoteFrame, RemoteWindowProxy>( |
| 122 frame, | 123 frame, |
| 123 FrameType::kRemote) {} | 124 FrameType::kRemote) {} |
| 124 }; | 125 }; |
| 125 | 126 |
| 126 } // namespace blink | 127 } // namespace blink |
| 127 | 128 |
| 128 #endif // WindowProxyManager_h | 129 #endif // WindowProxyManager_h |
| OLD | NEW |