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

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

Issue 2555653002: [WIP Prototype] ES6 https://html.spec.whatwg.org/#fetch-a-single-module-script implementation (Closed)
Patch Set: ModuleScriptLoaderTest Created 3 years, 11 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 void setSecurityToken(SecurityOrigin*); 98 void setSecurityToken(SecurityOrigin*);
99 99
100 // The JavaScript wrapper for the document object is cached on the global 100 // The JavaScript wrapper for the document object is cached on the global
101 // object for fast access. UpdateDocumentProperty sets the wrapper 101 // object for fast access. UpdateDocumentProperty sets the wrapper
102 // for the current document on the global object. 102 // for the current document on the global object.
103 void updateDocumentProperty(); 103 void updateDocumentProperty();
104 104
105 // Updates Activity Logger for the current context. 105 // Updates Activity Logger for the current context.
106 void updateActivityLogger(); 106 void updateActivityLogger();
107 107
108 // Updates Module Resolver for the current context.
109 void updateModuleResolver();
110
108 // Creates a new v8::Context with the window wrapper object as the global 111 // Creates a new v8::Context with the window wrapper object as the global
109 // object (aka the inner global). Note that the window wrapper and its 112 // object (aka the inner global). Note that the window wrapper and its
110 // prototype chain do not get fully initialized yet, e.g. the window 113 // prototype chain do not get fully initialized yet, e.g. the window
111 // wrapper is not yet associated with the native DOMWindow object. 114 // wrapper is not yet associated with the native DOMWindow object.
112 void createContext(); 115 void createContext();
113 116
114 // Associates the window wrapper and its prototype chain with the native 117 // Associates the window wrapper and its prototype chain with the native
115 // DOMWindow object. Also does some more Window-specific initialization. 118 // DOMWindow object. Also does some more Window-specific initialization.
116 void setupWindowPrototypeChain(); 119 void setupWindowPrototypeChain();
117 120
118 Member<Frame> m_frame; 121 Member<Frame> m_frame;
119 v8::Isolate* m_isolate; 122 v8::Isolate* m_isolate;
120 RefPtr<ScriptState> m_scriptState; 123 RefPtr<ScriptState> m_scriptState;
121 RefPtr<DOMWrapperWorld> m_world; 124 RefPtr<DOMWrapperWorld> m_world;
122 ScopedPersistent<v8::Object> m_globalProxy; 125 ScopedPersistent<v8::Object> m_globalProxy;
123 }; 126 };
124 127
125 } // namespace blink 128 } // namespace blink
126 129
127 #endif // WindowProxy_h 130 #endif // WindowProxy_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698