| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 // Otherwise, a new world is created. | 104 // Otherwise, a new world is created. |
| 105 // | 105 // |
| 106 // FIXME: We don't want to support multiple scripts. | 106 // FIXME: We don't want to support multiple scripts. |
| 107 void ExecuteScriptInIsolatedWorld(int world_id, | 107 void ExecuteScriptInIsolatedWorld(int world_id, |
| 108 const HeapVector<ScriptSourceCode>& sources, | 108 const HeapVector<ScriptSourceCode>& sources, |
| 109 Vector<v8::Local<v8::Value>>* results); | 109 Vector<v8::Local<v8::Value>>* results); |
| 110 | 110 |
| 111 // Returns true if argument is a JavaScript URL. | 111 // Returns true if argument is a JavaScript URL. |
| 112 bool ExecuteScriptIfJavaScriptURL(const KURL&, Element*); | 112 bool ExecuteScriptIfJavaScriptURL(const KURL&, Element*); |
| 113 | 113 |
| 114 // Creates a new isolated world for DevTools with the given human readable |
| 115 // |world_name| and returns it's id or DOMWrapperWorld::kInvalidWorldId on |
| 116 // failure. |
| 117 int CreateNewDInspectorIsolatedWorld(const String& world_name); |
| 118 |
| 114 // 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 |
| 115 // 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 |
| 116 // ignored when evaluating resources injected into the DOM. | 121 // ignored when evaluating resources injected into the DOM. |
| 117 bool ShouldBypassMainWorldCSP(); | 122 bool ShouldBypassMainWorldCSP(); |
| 118 | 123 |
| 119 void EnableEval(); | 124 void EnableEval(); |
| 120 void DisableEval(const String& error_message); | 125 void DisableEval(const String& error_message); |
| 121 | 126 |
| 122 TextPosition EventHandlerPosition() const; | 127 TextPosition EventHandlerPosition() const; |
| 123 | 128 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 148 AccessControlStatus, | 153 AccessControlStatus, |
| 149 ExecuteScriptPolicy); | 154 ExecuteScriptPolicy); |
| 150 | 155 |
| 151 const Member<LocalFrame> frame_; | 156 const Member<LocalFrame> frame_; |
| 152 const Member<LocalWindowProxyManager> window_proxy_manager_; | 157 const Member<LocalWindowProxyManager> window_proxy_manager_; |
| 153 }; | 158 }; |
| 154 | 159 |
| 155 } // namespace blink | 160 } // namespace blink |
| 156 | 161 |
| 157 #endif // ScriptController_h | 162 #endif // ScriptController_h |
| OLD | NEW |