Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/WindowProxyManager.h

Issue 2743653002: Make context initialization order deterministic in WebFrame::swap(). (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/WindowProxyManager.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 12 matching lines...) Expand all
23 23
24 class WindowProxyManagerBase : public GarbageCollected<WindowProxyManagerBase> { 24 class WindowProxyManagerBase : public GarbageCollected<WindowProxyManagerBase> {
25 public: 25 public:
26 DECLARE_TRACE(); 26 DECLARE_TRACE();
27 27
28 v8::Isolate* isolate() const { return m_isolate; } 28 v8::Isolate* isolate() const { return m_isolate; }
29 29
30 void clearForClose(); 30 void clearForClose();
31 void CORE_EXPORT clearForNavigation(); 31 void CORE_EXPORT clearForNavigation();
32 32
33 void CORE_EXPORT 33 using GlobalsVector =
34 releaseGlobals(HashMap<DOMWrapperWorld*, v8::Local<v8::Object>>&); 34 Vector<std::pair<DOMWrapperWorld*, v8::Local<v8::Object>>>;
haraken 2017/03/09 22:04:46 Would you add a comment and explain why this needs
dcheng 2017/03/09 22:10:20 I thought about asking for a comment, but it felt
Alexander Semashko 2017/03/09 22:26:10 Added a comment. Is it ok?
35 void CORE_EXPORT 35 void CORE_EXPORT releaseGlobals(GlobalsVector&);
36 setGlobals(const HashMap<DOMWrapperWorld*, v8::Local<v8::Object>>&); 36 void CORE_EXPORT setGlobals(const GlobalsVector&);
37 37
38 protected: 38 protected:
39 using IsolatedWorldMap = HeapHashMap<int, Member<WindowProxy>>; 39 using IsolatedWorldMap = HeapHashMap<int, Member<WindowProxy>>;
40 40
41 explicit WindowProxyManagerBase(Frame&); 41 explicit WindowProxyManagerBase(Frame&);
42 42
43 Frame* frame() const { return m_frame; } 43 Frame* frame() const { return m_frame; }
44 WindowProxy* mainWorldProxy() const { return m_windowProxy.get(); } 44 WindowProxy* mainWorldProxy() const { return m_windowProxy.get(); }
45 WindowProxy* windowProxy(DOMWrapperWorld&); 45 WindowProxy* windowProxy(DOMWrapperWorld&);
46 46
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 } 99 }
100 100
101 private: 101 private:
102 explicit RemoteWindowProxyManager(RemoteFrame& frame) 102 explicit RemoteWindowProxyManager(RemoteFrame& frame)
103 : WindowProxyManagerImplHelper<RemoteFrame, RemoteWindowProxy>(frame) {} 103 : WindowProxyManagerImplHelper<RemoteFrame, RemoteWindowProxy>(frame) {}
104 }; 104 };
105 105
106 } // namespace blink 106 } // namespace blink
107 107
108 #endif // WindowProxyManager_h 108 #endif // WindowProxyManager_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/WindowProxyManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698