OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008, 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2008, 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 static void setCaptureCallStackForUncaughtExceptions(v8::Isolate*, bool); | 121 static void setCaptureCallStackForUncaughtExceptions(v8::Isolate*, bool); |
122 void collectIsolatedContexts(Vector<std::pair<ScriptState*, SecurityOrigin*>
>&); | 122 void collectIsolatedContexts(Vector<std::pair<ScriptState*, SecurityOrigin*>
>&); |
123 | 123 |
124 bool canExecuteScripts(ReasonForCallingCanExecuteScripts); | 124 bool canExecuteScripts(ReasonForCallingCanExecuteScripts); |
125 | 125 |
126 TextPosition eventHandlerPosition() const; | 126 TextPosition eventHandlerPosition() const; |
127 | 127 |
128 void clearWindowProxy(); | 128 void clearWindowProxy(); |
129 void updateDocument(); | 129 void updateDocument(); |
130 | 130 |
| 131 void namedItemAdded(HTMLDocument*, const AtomicString&); |
| 132 void namedItemRemoved(HTMLDocument*, const AtomicString&); |
| 133 |
131 void updateSecurityOrigin(SecurityOrigin*); | 134 void updateSecurityOrigin(SecurityOrigin*); |
132 | 135 |
133 void clearForClose(); | 136 void clearForClose(); |
134 | 137 |
135 // Registers a v8 extension to be available on webpages. Will only | 138 // Registers a v8 extension to be available on webpages. Will only |
136 // affect v8 contexts initialized after this call. Takes ownership of | 139 // affect v8 contexts initialized after this call. Takes ownership of |
137 // the v8::Extension object passed. | 140 // the v8::Extension object passed. |
138 static void registerExtensionIfNeeded(v8::Extension*); | 141 static void registerExtensionIfNeeded(v8::Extension*); |
139 static V8Extensions& registeredExtensions(); | 142 static V8Extensions& registeredExtensions(); |
140 | 143 |
141 v8::Isolate* isolate() const { return m_windowProxyManager->isolate(); } | 144 v8::Isolate* isolate() const { return m_windowProxyManager->isolate(); } |
142 | 145 |
143 WindowProxyManager* getWindowProxyManager() const { return m_windowProxyMana
ger.get(); } | 146 WindowProxyManager* getWindowProxyManager() const { return m_windowProxyMana
ger.get(); } |
144 | 147 |
145 private: | 148 private: |
146 explicit ScriptController(LocalFrame*); | 149 explicit ScriptController(LocalFrame*); |
147 | 150 |
148 LocalFrame* frame() const { return toLocalFrame(m_windowProxyManager->frame(
)); } | 151 LocalFrame* frame() const { return toLocalFrame(m_windowProxyManager->frame(
)); } |
149 | 152 |
150 v8::Local<v8::Value> evaluateScriptInMainWorld(const ScriptSourceCode&, Acce
ssControlStatus, ExecuteScriptPolicy, double* compilationFinishTime = 0); | 153 v8::Local<v8::Value> evaluateScriptInMainWorld(const ScriptSourceCode&, Acce
ssControlStatus, ExecuteScriptPolicy, double* compilationFinishTime = 0); |
151 | 154 |
152 Member<WindowProxyManager> m_windowProxyManager; | 155 Member<WindowProxyManager> m_windowProxyManager; |
153 }; | 156 }; |
154 | 157 |
155 } // namespace blink | 158 } // namespace blink |
156 | 159 |
157 #endif // ScriptController_h | 160 #endif // ScriptController_h |
OLD | NEW |