| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 void executeScriptInMainWorld(const ScriptSourceCode&, | 91 void executeScriptInMainWorld(const ScriptSourceCode&, |
| 92 AccessControlStatus = NotSharableCrossOrigin); | 92 AccessControlStatus = NotSharableCrossOrigin); |
| 93 v8::Local<v8::Value> executeScriptInMainWorldAndReturnValue( | 93 v8::Local<v8::Value> executeScriptInMainWorldAndReturnValue( |
| 94 const ScriptSourceCode&, | 94 const ScriptSourceCode&, |
| 95 ExecuteScriptPolicy = DoNotExecuteScriptWhenScriptsDisabled); | 95 ExecuteScriptPolicy = DoNotExecuteScriptWhenScriptsDisabled); |
| 96 v8::Local<v8::Value> executeScriptAndReturnValue( | 96 v8::Local<v8::Value> executeScriptAndReturnValue( |
| 97 v8::Local<v8::Context>, | 97 v8::Local<v8::Context>, |
| 98 const ScriptSourceCode&, | 98 const ScriptSourceCode&, |
| 99 AccessControlStatus = NotSharableCrossOrigin); | 99 AccessControlStatus = NotSharableCrossOrigin); |
| 100 | 100 |
| 101 // Executes JavaScript in an isolated world. The script gets its own global sc
ope, | 101 // Executes JavaScript in an isolated world. The script gets its own global |
| 102 // its own prototypes for intrinsic JavaScript objects (String, Array, and so-
on), | 102 // scope, its own prototypes for intrinsic JavaScript objects (String, Array, |
| 103 // and its own wrappers for all DOM nodes and DOM constructors. | 103 // and so-on), and its own wrappers for all DOM nodes and DOM constructors. |
| 104 // | 104 // |
| 105 // If an isolated world with the specified ID already exists, it is reused. | 105 // If an isolated world with the specified ID already exists, it is reused. |
| 106 // Otherwise, a new world is created. | 106 // Otherwise, a new world is created. |
| 107 // | 107 // |
| 108 // FIXME: Get rid of extensionGroup here. | 108 // FIXME: Get rid of extensionGroup here. |
| 109 // FIXME: We don't want to support multiple scripts. | 109 // FIXME: We don't want to support multiple scripts. |
| 110 void executeScriptInIsolatedWorld(int worldID, | 110 void executeScriptInIsolatedWorld(int worldID, |
| 111 const HeapVector<ScriptSourceCode>& sources, | 111 const HeapVector<ScriptSourceCode>& sources, |
| 112 int extensionGroup, | 112 int extensionGroup, |
| 113 Vector<v8::Local<v8::Value>>* results); | 113 Vector<v8::Local<v8::Value>>* results); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 v8::Local<v8::Value> evaluateScriptInMainWorld(const ScriptSourceCode&, | 166 v8::Local<v8::Value> evaluateScriptInMainWorld(const ScriptSourceCode&, |
| 167 AccessControlStatus, | 167 AccessControlStatus, |
| 168 ExecuteScriptPolicy); | 168 ExecuteScriptPolicy); |
| 169 | 169 |
| 170 Member<WindowProxyManager> m_windowProxyManager; | 170 Member<WindowProxyManager> m_windowProxyManager; |
| 171 }; | 171 }; |
| 172 | 172 |
| 173 } // namespace blink | 173 } // namespace blink |
| 174 | 174 |
| 175 #endif // ScriptController_h | 175 #endif // ScriptController_h |
| OLD | NEW |