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 | |
134 void updateSecurityOrigin(SecurityOrigin*); | 131 void updateSecurityOrigin(SecurityOrigin*); |
135 | 132 |
136 void clearForClose(); | 133 void clearForClose(); |
137 | 134 |
138 // Registers a v8 extension to be available on webpages. Will only | 135 // Registers a v8 extension to be available on webpages. Will only |
139 // affect v8 contexts initialized after this call. Takes ownership of | 136 // affect v8 contexts initialized after this call. Takes ownership of |
140 // the v8::Extension object passed. | 137 // the v8::Extension object passed. |
141 static void registerExtensionIfNeeded(v8::Extension*); | 138 static void registerExtensionIfNeeded(v8::Extension*); |
142 static V8Extensions& registeredExtensions(); | 139 static V8Extensions& registeredExtensions(); |
143 | 140 |
144 v8::Isolate* isolate() const { return m_windowProxyManager->isolate(); } | 141 v8::Isolate* isolate() const { return m_windowProxyManager->isolate(); } |
145 | 142 |
146 WindowProxyManager* getWindowProxyManager() const { return m_windowProxyMana
ger.get(); } | 143 WindowProxyManager* getWindowProxyManager() const { return m_windowProxyMana
ger.get(); } |
147 | 144 |
148 private: | 145 private: |
149 explicit ScriptController(LocalFrame*); | 146 explicit ScriptController(LocalFrame*); |
150 | 147 |
151 LocalFrame* frame() const { return toLocalFrame(m_windowProxyManager->frame(
)); } | 148 LocalFrame* frame() const { return toLocalFrame(m_windowProxyManager->frame(
)); } |
152 | 149 |
153 v8::Local<v8::Value> evaluateScriptInMainWorld(const ScriptSourceCode&, Acce
ssControlStatus, ExecuteScriptPolicy, double* compilationFinishTime = 0); | 150 v8::Local<v8::Value> evaluateScriptInMainWorld(const ScriptSourceCode&, Acce
ssControlStatus, ExecuteScriptPolicy, double* compilationFinishTime = 0); |
154 | 151 |
155 Member<WindowProxyManager> m_windowProxyManager; | 152 Member<WindowProxyManager> m_windowProxyManager; |
156 }; | 153 }; |
157 | 154 |
158 } // namespace blink | 155 } // namespace blink |
159 | 156 |
160 #endif // ScriptController_h | 157 #endif // ScriptController_h |
OLD | NEW |