| 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 30 matching lines...) Expand all Loading... |
| 41 #include "v8/include/v8.h" | 41 #include "v8/include/v8.h" |
| 42 #include "wtf/HashMap.h" | 42 #include "wtf/HashMap.h" |
| 43 #include "wtf/Noncopyable.h" | 43 #include "wtf/Noncopyable.h" |
| 44 #include "wtf/Vector.h" | 44 #include "wtf/Vector.h" |
| 45 #include "wtf/text/TextPosition.h" | 45 #include "wtf/text/TextPosition.h" |
| 46 | 46 |
| 47 namespace blink { | 47 namespace blink { |
| 48 | 48 |
| 49 class DOMWrapperWorld; | 49 class DOMWrapperWorld; |
| 50 class Element; | 50 class Element; |
| 51 class FrameViewBase; | |
| 52 class KURL; | 51 class KURL; |
| 53 class LocalFrame; | 52 class LocalFrame; |
| 53 class PluginView; |
| 54 class ScriptSourceCode; | 54 class ScriptSourceCode; |
| 55 class SecurityOrigin; | 55 class SecurityOrigin; |
| 56 | 56 |
| 57 typedef WTF::Vector<v8::Extension*> V8Extensions; | 57 typedef WTF::Vector<v8::Extension*> V8Extensions; |
| 58 | 58 |
| 59 | 59 |
| 60 class CORE_EXPORT ScriptController final | 60 class CORE_EXPORT ScriptController final |
| 61 : public GarbageCollected<ScriptController> { | 61 : public GarbageCollected<ScriptController> { |
| 62 WTF_MAKE_NONCOPYABLE(ScriptController); | 62 WTF_MAKE_NONCOPYABLE(ScriptController); |
| 63 | 63 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 Vector<v8::Local<v8::Value>>* results); | 107 Vector<v8::Local<v8::Value>>* results); |
| 108 | 108 |
| 109 // Returns true if argument is a JavaScript URL. | 109 // Returns true if argument is a JavaScript URL. |
| 110 bool executeScriptIfJavaScriptURL(const KURL&, Element*); | 110 bool executeScriptIfJavaScriptURL(const KURL&, Element*); |
| 111 | 111 |
| 112 // Returns true if the current world is isolated, and has its own Content | 112 // Returns true if the current world is isolated, and has its own Content |
| 113 // Security Policy. In this case, the policy of the main world should be | 113 // Security Policy. In this case, the policy of the main world should be |
| 114 // ignored when evaluating resources injected into the DOM. | 114 // ignored when evaluating resources injected into the DOM. |
| 115 bool shouldBypassMainWorldCSP(); | 115 bool shouldBypassMainWorldCSP(); |
| 116 | 116 |
| 117 PassRefPtr<SharedPersistent<v8::Object>> createPluginWrapper(FrameViewBase*); | 117 PassRefPtr<SharedPersistent<v8::Object>> createPluginWrapper(PluginView&); |
| 118 | 118 |
| 119 void enableEval(); | 119 void enableEval(); |
| 120 void disableEval(const String& errorMessage); | 120 void disableEval(const String& errorMessage); |
| 121 | 121 |
| 122 TextPosition eventHandlerPosition() const; | 122 TextPosition eventHandlerPosition() const; |
| 123 | 123 |
| 124 void clearWindowProxy(); | 124 void clearWindowProxy(); |
| 125 void updateDocument(); | 125 void updateDocument(); |
| 126 | 126 |
| 127 void updateSecurityOrigin(SecurityOrigin*); | 127 void updateSecurityOrigin(SecurityOrigin*); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 146 AccessControlStatus, | 146 AccessControlStatus, |
| 147 ExecuteScriptPolicy); | 147 ExecuteScriptPolicy); |
| 148 | 148 |
| 149 const Member<LocalFrame> m_frame; | 149 const Member<LocalFrame> m_frame; |
| 150 const Member<LocalWindowProxyManager> m_windowProxyManager; | 150 const Member<LocalWindowProxyManager> m_windowProxyManager; |
| 151 }; | 151 }; |
| 152 | 152 |
| 153 } // namespace blink | 153 } // namespace blink |
| 154 | 154 |
| 155 #endif // ScriptController_h | 155 #endif // ScriptController_h |
| OLD | NEW |