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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 // Returns true if the current world is isolated, and has its own Content | 117 // Returns true if the current world is isolated, and has its own Content |
118 // Security Policy. In this case, the policy of the main world should be | 118 // Security Policy. In this case, the policy of the main world should be |
119 // ignored when evaluating resources injected into the DOM. | 119 // ignored when evaluating resources injected into the DOM. |
120 bool shouldBypassMainWorldCSP(); | 120 bool shouldBypassMainWorldCSP(); |
121 | 121 |
122 PassRefPtr<SharedPersistent<v8::Object>> createPluginWrapper(Widget*); | 122 PassRefPtr<SharedPersistent<v8::Object>> createPluginWrapper(Widget*); |
123 | 123 |
124 void enableEval(); | 124 void enableEval(); |
125 void disableEval(const String& errorMessage); | 125 void disableEval(const String& errorMessage); |
126 | 126 |
127 static bool canAccessFromCurrentOrigin(v8::Isolate*, Frame*); | |
128 | |
129 void collectIsolatedContexts( | 127 void collectIsolatedContexts( |
130 Vector<std::pair<ScriptState*, SecurityOrigin*>>&); | 128 Vector<std::pair<ScriptState*, SecurityOrigin*>>&); |
131 | 129 |
132 bool canExecuteScripts(ReasonForCallingCanExecuteScripts); | 130 bool canExecuteScripts(ReasonForCallingCanExecuteScripts); |
133 | 131 |
134 TextPosition eventHandlerPosition() const; | 132 TextPosition eventHandlerPosition() const; |
135 | 133 |
136 void clearWindowProxy(); | 134 void clearWindowProxy(); |
137 void updateDocument(); | 135 void updateDocument(); |
138 | 136 |
(...skipping 26 matching lines...) Expand all Loading... |
165 v8::Local<v8::Value> evaluateScriptInMainWorld(const ScriptSourceCode&, | 163 v8::Local<v8::Value> evaluateScriptInMainWorld(const ScriptSourceCode&, |
166 AccessControlStatus, | 164 AccessControlStatus, |
167 ExecuteScriptPolicy); | 165 ExecuteScriptPolicy); |
168 | 166 |
169 Member<WindowProxyManager> m_windowProxyManager; | 167 Member<WindowProxyManager> m_windowProxyManager; |
170 }; | 168 }; |
171 | 169 |
172 } // namespace blink | 170 } // namespace blink |
173 | 171 |
174 #endif // ScriptController_h | 172 #endif // ScriptController_h |
OLD | NEW |