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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/bindings/core/v8/WindowProxyManager.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/WindowProxyManager.h b/third_party/WebKit/Source/bindings/core/v8/WindowProxyManager.h
index f05f501ed29d34552f860647dd7446eedfb9b473..b6d71559a1f1f6be986a18066cc0e3a5d64f4eb4 100644
--- a/third_party/WebKit/Source/bindings/core/v8/WindowProxyManager.h
+++ b/third_party/WebKit/Source/bindings/core/v8/WindowProxyManager.h
@@ -30,10 +30,10 @@ class WindowProxyManagerBase : public GarbageCollected<WindowProxyManagerBase> {
void clearForClose();
void CORE_EXPORT clearForNavigation();
- void CORE_EXPORT
- releaseGlobals(HashMap<DOMWrapperWorld*, v8::Local<v8::Object>>&);
- void CORE_EXPORT
- setGlobals(const HashMap<DOMWrapperWorld*, v8::Local<v8::Object>>&);
+ using GlobalsVector =
+ 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?
+ void CORE_EXPORT releaseGlobals(GlobalsVector&);
+ void CORE_EXPORT setGlobals(const GlobalsVector&);
protected:
using IsolatedWorldMap = HeapHashMap<int, Member<WindowProxy>>;
« 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