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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 // Otherwise, a new world is created. | 105 // Otherwise, a new world is created. |
106 // | 106 // |
107 // FIXME: We don't want to support multiple scripts. | 107 // FIXME: We don't want to support multiple scripts. |
108 void ExecuteScriptInIsolatedWorld(int world_id, | 108 void ExecuteScriptInIsolatedWorld(int world_id, |
109 const HeapVector<ScriptSourceCode>& sources, | 109 const HeapVector<ScriptSourceCode>& sources, |
110 Vector<v8::Local<v8::Value>>* results); | 110 Vector<v8::Local<v8::Value>>* results); |
111 | 111 |
112 // Returns true if argument is a JavaScript URL. | 112 // Returns true if argument is a JavaScript URL. |
113 bool ExecuteScriptIfJavaScriptURL(const KURL&, Element*); | 113 bool ExecuteScriptIfJavaScriptURL(const KURL&, Element*); |
114 | 114 |
| 115 // Creates a new isolated world with the given human readable |world_name| and |
| 116 // returns it's id. |
| 117 int CreateNewIsolatedWorld(const String& world_name); |
| 118 |
115 // Returns true if the current world is isolated, and has its own Content | 119 // Returns true if the current world is isolated, and has its own Content |
116 // Security Policy. In this case, the policy of the main world should be | 120 // Security Policy. In this case, the policy of the main world should be |
117 // ignored when evaluating resources injected into the DOM. | 121 // ignored when evaluating resources injected into the DOM. |
118 bool ShouldBypassMainWorldCSP(); | 122 bool ShouldBypassMainWorldCSP(); |
119 | 123 |
120 PassRefPtr<SharedPersistent<v8::Object>> CreatePluginWrapper(PluginView&); | 124 PassRefPtr<SharedPersistent<v8::Object>> CreatePluginWrapper(PluginView&); |
121 | 125 |
122 void EnableEval(); | 126 void EnableEval(); |
123 void DisableEval(const String& error_message); | 127 void DisableEval(const String& error_message); |
124 | 128 |
(...skipping 26 matching lines...) Expand all Loading... |
151 AccessControlStatus, | 155 AccessControlStatus, |
152 ExecuteScriptPolicy); | 156 ExecuteScriptPolicy); |
153 | 157 |
154 const Member<LocalFrame> frame_; | 158 const Member<LocalFrame> frame_; |
155 const Member<LocalWindowProxyManager> window_proxy_manager_; | 159 const Member<LocalWindowProxyManager> window_proxy_manager_; |
156 }; | 160 }; |
157 | 161 |
158 } // namespace blink | 162 } // namespace blink |
159 | 163 |
160 #endif // ScriptController_h | 164 #endif // ScriptController_h |
OLD | NEW |