| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 // If an isolated world with the specified ID already exists, it is reused. | 92 // If an isolated world with the specified ID already exists, it is reused. |
| 93 // Otherwise, a new world is created. | 93 // Otherwise, a new world is created. |
| 94 // | 94 // |
| 95 // FIXME: Get rid of extensionGroup here. | 95 // FIXME: Get rid of extensionGroup here. |
| 96 void executeScriptInIsolatedWorld(int worldID, const Vector<ScriptSourceCode
>& sources, int extensionGroup, Vector<ScriptValue>* results); | 96 void executeScriptInIsolatedWorld(int worldID, const Vector<ScriptSourceCode
>& sources, int extensionGroup, Vector<ScriptValue>* results); |
| 97 | 97 |
| 98 // Returns true if argument is a JavaScript URL. | 98 // Returns true if argument is a JavaScript URL. |
| 99 bool executeScriptIfJavaScriptURL(const KURL&); | 99 bool executeScriptIfJavaScriptURL(const KURL&); |
| 100 | 100 |
| 101 v8::Local<v8::Value> callFunction(v8::Handle<v8::Function>, v8::Handle<v8::O
bject>, int argc, v8::Handle<v8::Value> argv[]); | 101 v8::Local<v8::Value> callFunction(v8::Handle<v8::Function>, v8::Handle<v8::O
bject>, int argc, v8::Handle<v8::Value> argv[]); |
| 102 static v8::Local<v8::Value> callFunction(ExecutionContext*, v8::Handle<v8::F
unction>, v8::Handle<v8::Object> receiver, int argc, v8::Handle<v8::Value> args[
], v8::Isolate*); | 102 static v8::Local<v8::Value> callFunction(ExecutionContext*, v8::Handle<v8::F
unction>, v8::Handle<v8::Object> receiver, int argc, v8::Handle<v8::Value> info[
], v8::Isolate*); |
| 103 | 103 |
| 104 // Returns true if the current world is isolated, and has its own Content | 104 // Returns true if the current world is isolated, and has its own Content |
| 105 // Security Policy. In this case, the policy of the main world should be | 105 // Security Policy. In this case, the policy of the main world should be |
| 106 // ignored when evaluating resources injected into the DOM. | 106 // ignored when evaluating resources injected into the DOM. |
| 107 bool shouldBypassMainWorldContentSecurityPolicy(); | 107 bool shouldBypassMainWorldContentSecurityPolicy(); |
| 108 | 108 |
| 109 // Creates a property of the global object of a frame. | 109 // Creates a property of the global object of a frame. |
| 110 void bindToWindowObject(Frame*, const String& key, NPObject*); | 110 void bindToWindowObject(Frame*, const String& key, NPObject*); |
| 111 | 111 |
| 112 PassRefPtr<SharedPersistent<v8::Object> > createPluginWrapper(Widget*); | 112 PassRefPtr<SharedPersistent<v8::Object> > createPluginWrapper(Widget*); |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 // invalidate all sub-objects which are associated with that plugin. | 177 // invalidate all sub-objects which are associated with that plugin. |
| 178 // The frame keeps a NPObject reference for each item on the list. | 178 // The frame keeps a NPObject reference for each item on the list. |
| 179 PluginObjectMap m_pluginObjects; | 179 PluginObjectMap m_pluginObjects; |
| 180 | 180 |
| 181 NPObject* m_windowScriptNPObject; | 181 NPObject* m_windowScriptNPObject; |
| 182 }; | 182 }; |
| 183 | 183 |
| 184 } // namespace WebCore | 184 } // namespace WebCore |
| 185 | 185 |
| 186 #endif // ScriptController_h | 186 #endif // ScriptController_h |
| OLD | NEW |