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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 98 |
99 // Returns true if argument is a JavaScript URL. | 99 // Returns true if argument is a JavaScript URL. |
100 bool executeScriptIfJavaScriptURL(const KURL&); | 100 bool executeScriptIfJavaScriptURL(const KURL&); |
101 | 101 |
102 v8::Local<v8::Value> callFunction(v8::Handle<v8::Function>, v8::Handle<v8::V
alue>, int argc, v8::Handle<v8::Value> argv[]); | 102 v8::Local<v8::Value> callFunction(v8::Handle<v8::Function>, v8::Handle<v8::V
alue>, int argc, v8::Handle<v8::Value> argv[]); |
103 static v8::Local<v8::Value> callFunction(ExecutionContext*, v8::Handle<v8::F
unction>, v8::Handle<v8::Value> receiver, int argc, v8::Handle<v8::Value> info[]
, v8::Isolate*); | 103 static v8::Local<v8::Value> callFunction(ExecutionContext*, v8::Handle<v8::F
unction>, v8::Handle<v8::Value> receiver, int argc, v8::Handle<v8::Value> info[]
, v8::Isolate*); |
104 | 104 |
105 // Returns true if the current world is isolated, and has its own Content | 105 // Returns true if the current world is isolated, and has its own Content |
106 // Security Policy. In this case, the policy of the main world should be | 106 // Security Policy. In this case, the policy of the main world should be |
107 // ignored when evaluating resources injected into the DOM. | 107 // ignored when evaluating resources injected into the DOM. |
108 bool shouldBypassMainWorldContentSecurityPolicy(); | 108 bool shouldBypassMainWorldCSP(); |
109 | 109 |
110 // Creates a property of the global object of a frame. | 110 // Creates a property of the global object of a frame. |
111 void bindToWindowObject(LocalFrame*, const String& key, NPObject*); | 111 void bindToWindowObject(LocalFrame*, const String& key, NPObject*); |
112 | 112 |
113 PassRefPtr<SharedPersistent<v8::Object> > createPluginWrapper(Widget*); | 113 PassRefPtr<SharedPersistent<v8::Object> > createPluginWrapper(Widget*); |
114 | 114 |
115 void enableEval(); | 115 void enableEval(); |
116 void disableEval(const String& errorMessage); | 116 void disableEval(const String& errorMessage); |
117 | 117 |
118 static bool canAccessFromCurrentOrigin(LocalFrame*); | 118 static bool canAccessFromCurrentOrigin(LocalFrame*); |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 // invalidate all sub-objects which are associated with that plugin. | 168 // invalidate all sub-objects which are associated with that plugin. |
169 // The frame keeps a NPObject reference for each item on the list. | 169 // The frame keeps a NPObject reference for each item on the list. |
170 PluginObjectMap m_pluginObjects; | 170 PluginObjectMap m_pluginObjects; |
171 | 171 |
172 NPObject* m_windowScriptNPObject; | 172 NPObject* m_windowScriptNPObject; |
173 }; | 173 }; |
174 | 174 |
175 } // namespace WebCore | 175 } // namespace WebCore |
176 | 176 |
177 #endif // ScriptController_h | 177 #endif // ScriptController_h |
OLD | NEW |