| 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 | 91 |
| 92 // Returns true if argument is a JavaScript URL. | 92 // Returns true if argument is a JavaScript URL. |
| 93 bool executeScriptIfJavaScriptURL(const KURL&); | 93 bool executeScriptIfJavaScriptURL(const KURL&); |
| 94 | 94 |
| 95 v8::Local<v8::Value> compileAndRunScript(const ScriptSourceCode&); | 95 v8::Local<v8::Value> compileAndRunScript(const ScriptSourceCode&); |
| 96 | 96 |
| 97 v8::Local<v8::Value> callFunction(v8::Handle<v8::Function>, v8::Handle<v8::O
bject>, int argc, v8::Handle<v8::Value> argv[]); | 97 v8::Local<v8::Value> callFunction(v8::Handle<v8::Function>, v8::Handle<v8::O
bject>, int argc, v8::Handle<v8::Value> argv[]); |
| 98 ScriptValue callFunctionEvenIfScriptDisabled(v8::Handle<v8::Function>, v8::H
andle<v8::Object>, int argc, v8::Handle<v8::Value> argv[]); | 98 ScriptValue callFunctionEvenIfScriptDisabled(v8::Handle<v8::Function>, v8::H
andle<v8::Object>, int argc, v8::Handle<v8::Value> argv[]); |
| 99 static v8::Local<v8::Value> callFunctionWithInstrumentation(ScriptExecutionC
ontext*, v8::Handle<v8::Function>, v8::Handle<v8::Object> receiver, int argc, v8
::Handle<v8::Value> args[]); | 99 static v8::Local<v8::Value> callFunctionWithInstrumentation(ScriptExecutionC
ontext*, v8::Handle<v8::Function>, v8::Handle<v8::Object> receiver, int argc, v8
::Handle<v8::Value> args[]); |
| 100 | 100 |
| 101 // This function must be called from the main thread. It is safe to call it
repeatedly. | |
| 102 static void initializeThreading(); | |
| 103 | |
| 104 // Returns true if the current world is isolated, and has its own Content | 101 // 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 | 102 // Security Policy. In this case, the policy of the main world should be |
| 106 // ignored when evaluating resources injected into the DOM. | 103 // ignored when evaluating resources injected into the DOM. |
| 107 bool shouldBypassMainWorldContentSecurityPolicy(); | 104 bool shouldBypassMainWorldContentSecurityPolicy(); |
| 108 | 105 |
| 109 // Creates a property of the global object of a frame. | 106 // Creates a property of the global object of a frame. |
| 110 void bindToWindowObject(Frame*, const String& key, NPObject*); | 107 void bindToWindowObject(Frame*, const String& key, NPObject*); |
| 111 | 108 |
| 112 PassScriptInstance createScriptInstanceForWidget(Widget*); | 109 PassScriptInstance createScriptInstanceForWidget(Widget*); |
| 113 | 110 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 // to calls on the destroyed window object, we return a proxy NPObject | 185 // to calls on the destroyed window object, we return a proxy NPObject |
| 189 // which wraps the underlying window object. The wrapped window object | 186 // which wraps the underlying window object. The wrapped window object |
| 190 // pointer in this object is cleared out when the window object is | 187 // pointer in this object is cleared out when the window object is |
| 191 // destroyed. | 188 // destroyed. |
| 192 NPObject* m_wrappedWindowScriptNPObject; | 189 NPObject* m_wrappedWindowScriptNPObject; |
| 193 }; | 190 }; |
| 194 | 191 |
| 195 } // namespace WebCore | 192 } // namespace WebCore |
| 196 | 193 |
| 197 #endif // ScriptController_h | 194 #endif // ScriptController_h |
| OLD | NEW |