| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 90 |
| 91 // Executes JavaScript in an isolated world. The script gets its own global
scope, | 91 // Executes JavaScript in an isolated world. The script gets its own global
scope, |
| 92 // its own prototypes for intrinsic JavaScript objects (String, Array, and s
o-on), | 92 // its own prototypes for intrinsic JavaScript objects (String, Array, and s
o-on), |
| 93 // and its own wrappers for all DOM nodes and DOM constructors. | 93 // and its own wrappers for all DOM nodes and DOM constructors. |
| 94 // | 94 // |
| 95 // If an isolated world with the specified ID already exists, it is reused. | 95 // If an isolated world with the specified ID already exists, it is reused. |
| 96 // Otherwise, a new world is created. | 96 // Otherwise, a new world is created. |
| 97 // | 97 // |
| 98 // FIXME: Get rid of extensionGroup here. | 98 // FIXME: Get rid of extensionGroup here. |
| 99 // FIXME: We don't want to support multiple scripts. | 99 // FIXME: We don't want to support multiple scripts. |
| 100 void executeScriptInIsolatedWorld(int worldID, const Vector<ScriptSourceCode
>& sources, int extensionGroup, Vector<v8::Local<v8::Value> >* results); | 100 void executeScriptInIsolatedWorld(int worldID, const WillBeHeapVector<Script
SourceCode>& sources, int extensionGroup, Vector<v8::Local<v8::Value> >* results
); |
| 101 | 101 |
| 102 // Returns true if argument is a JavaScript URL. | 102 // Returns true if argument is a JavaScript URL. |
| 103 bool executeScriptIfJavaScriptURL(const KURL&); | 103 bool executeScriptIfJavaScriptURL(const KURL&); |
| 104 | 104 |
| 105 v8::Local<v8::Value> callFunction(v8::Handle<v8::Function>, v8::Handle<v8::V
alue>, int argc, v8::Handle<v8::Value> argv[]); | 105 v8::Local<v8::Value> callFunction(v8::Handle<v8::Function>, v8::Handle<v8::V
alue>, int argc, v8::Handle<v8::Value> argv[]); |
| 106 static v8::Local<v8::Value> callFunction(ExecutionContext*, v8::Handle<v8::F
unction>, v8::Handle<v8::Value> receiver, int argc, v8::Handle<v8::Value> info[]
, v8::Isolate*); | 106 static v8::Local<v8::Value> callFunction(ExecutionContext*, v8::Handle<v8::F
unction>, v8::Handle<v8::Value> receiver, int argc, v8::Handle<v8::Value> info[]
, v8::Isolate*); |
| 107 | 107 |
| 108 // Returns true if the current world is isolated, and has its own Content | 108 // Returns true if the current world is isolated, and has its own Content |
| 109 // Security Policy. In this case, the policy of the main world should be | 109 // Security Policy. In this case, the policy of the main world should be |
| 110 // ignored when evaluating resources injected into the DOM. | 110 // ignored when evaluating resources injected into the DOM. |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 // invalidate all sub-objects which are associated with that plugin. | 169 // invalidate all sub-objects which are associated with that plugin. |
| 170 // The frame keeps a NPObject reference for each item on the list. | 170 // The frame keeps a NPObject reference for each item on the list. |
| 171 PluginObjectMap m_pluginObjects; | 171 PluginObjectMap m_pluginObjects; |
| 172 | 172 |
| 173 NPObject* m_windowScriptNPObject; | 173 NPObject* m_windowScriptNPObject; |
| 174 }; | 174 }; |
| 175 | 175 |
| 176 } // namespace blink | 176 } // namespace blink |
| 177 | 177 |
| 178 #endif // ScriptController_h | 178 #endif // ScriptController_h |
| OLD | NEW |