| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 void lowMemoryNotification(); | 111 void lowMemoryNotification(); |
| 112 | 112 |
| 113 // Creates a property of the global object of a frame. | 113 // Creates a property of the global object of a frame. |
| 114 void bindToWindowObject(Frame*, const String& key, NPObject*); | 114 void bindToWindowObject(Frame*, const String& key, NPObject*); |
| 115 | 115 |
| 116 PassScriptInstance createScriptInstanceForWidget(Widget*); | 116 PassScriptInstance createScriptInstanceForWidget(Widget*); |
| 117 | 117 |
| 118 // Check if the javascript engine has been initialized. | 118 // Check if the javascript engine has been initialized. |
| 119 bool haveInterpreter() const; | 119 bool haveInterpreter() const; |
| 120 | 120 |
| 121 static bool canAccessFromCurrentOrigin(Frame*); |
| 122 |
| 121 bool canExecuteScripts(ReasonForCallingCanExecuteScripts); | 123 bool canExecuteScripts(ReasonForCallingCanExecuteScripts); |
| 122 | 124 |
| 123 // FIXME: void* is a compile hack. | 125 // FIXME: void* is a compile hack. |
| 124 void attachDebugger(void*); | 126 void attachDebugger(void*); |
| 125 | 127 |
| 126 // --- Static methods assume we are running VM in single thread, --- | 128 // --- Static methods assume we are running VM in single thread, --- |
| 127 // --- and there is only one VM instance. --- | 129 // --- and there is only one VM instance. --- |
| 128 | 130 |
| 129 // Returns the frame for the entered context. See comments in | 131 // Returns the frame for the entered context. See comments in |
| 130 // V8Proxy::retrieveFrameForEnteredContext() for more information. | 132 // V8Proxy::retrieveFrameForEnteredContext() for more information. |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 #if ENABLE(NETSCAPE_PLUGIN_API) | 197 #if ENABLE(NETSCAPE_PLUGIN_API) |
| 196 NPObject* m_windowScriptNPObject; | 198 NPObject* m_windowScriptNPObject; |
| 197 #endif | 199 #endif |
| 198 // The XSSAuditor associated with this ScriptController. | 200 // The XSSAuditor associated with this ScriptController. |
| 199 OwnPtr<XSSAuditor> m_XSSAuditor; | 201 OwnPtr<XSSAuditor> m_XSSAuditor; |
| 200 }; | 202 }; |
| 201 | 203 |
| 202 } // namespace WebCore | 204 } // namespace WebCore |
| 203 | 205 |
| 204 #endif // ScriptController_h | 206 #endif // ScriptController_h |
| OLD | NEW |