| 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 bool shouldBypassMainWorldCSP(); | 116 bool shouldBypassMainWorldCSP(); |
| 117 | 117 |
| 118 // Creates a property of the global object of a frame. | 118 // Creates a property of the global object of a frame. |
| 119 bool bindToWindowObject(LocalFrame*, const String& key, NPObject*); | 119 bool bindToWindowObject(LocalFrame*, const String& key, NPObject*); |
| 120 | 120 |
| 121 PassRefPtr<SharedPersistent<v8::Object>> createPluginWrapper(Widget*); | 121 PassRefPtr<SharedPersistent<v8::Object>> createPluginWrapper(Widget*); |
| 122 | 122 |
| 123 void enableEval(); | 123 void enableEval(); |
| 124 void disableEval(const String& errorMessage); | 124 void disableEval(const String& errorMessage); |
| 125 | 125 |
| 126 static bool canAccessFromCurrentOrigin(LocalFrame*); | 126 static bool canAccessFromCurrentOrigin(ExecutionContext&, Frame*); |
| 127 | 127 |
| 128 static void setCaptureCallStackForUncaughtExceptions(v8::Isolate*, bool); | 128 static void setCaptureCallStackForUncaughtExceptions(v8::Isolate*, bool); |
| 129 void collectIsolatedContexts(Vector<std::pair<ScriptState*, SecurityOrigin*>
>&); | 129 void collectIsolatedContexts(Vector<std::pair<ScriptState*, SecurityOrigin*>
>&); |
| 130 | 130 |
| 131 bool canExecuteScripts(ReasonForCallingCanExecuteScripts); | 131 bool canExecuteScripts(ReasonForCallingCanExecuteScripts); |
| 132 | 132 |
| 133 TextPosition eventHandlerPosition() const; | 133 TextPosition eventHandlerPosition() const; |
| 134 | 134 |
| 135 void clearWindowProxy(); | 135 void clearWindowProxy(); |
| 136 void updateDocument(); | 136 void updateDocument(); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 // invalidate all sub-objects which are associated with that plugin. | 174 // invalidate all sub-objects which are associated with that plugin. |
| 175 // The frame keeps a NPObject reference for each item on the list. | 175 // The frame keeps a NPObject reference for each item on the list. |
| 176 PluginObjectMap m_pluginObjects; | 176 PluginObjectMap m_pluginObjects; |
| 177 | 177 |
| 178 NPObject* m_windowScriptNPObject; | 178 NPObject* m_windowScriptNPObject; |
| 179 }; | 179 }; |
| 180 | 180 |
| 181 } // namespace blink | 181 } // namespace blink |
| 182 | 182 |
| 183 #endif // ScriptController_h | 183 #endif // ScriptController_h |
| OLD | NEW |