Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Side by Side Diff: bindings/js/ScriptController.h

Issue 542055: DevTools: injected script per context(WebCore part) (Closed) Base URL: http://svn.webkit.org/repository/webkit/trunk/WebCore/
Patch Set: '' Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « bindings/js/JSInjectedScriptHostCustom.cpp ('k') | bindings/js/ScriptController.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Harri Porten (porten@kde.org) 2 * Copyright (C) 1999 Harri Porten (porten@kde.org)
3 * Copyright (C) 2001 Peter Kelly (pmk@post.com) 3 * Copyright (C) 2001 Peter Kelly (pmk@post.com)
4 * Copyright (C) 2008 Apple Inc. All rights reserved. 4 * Copyright (C) 2008 Apple Inc. All rights reserved.
5 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 5 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public 8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
11 * 11 *
12 * This library is distributed in the hope that it will be useful, 12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details. 15 * Lesser General Public License for more details.
16 * 16 *
17 * You should have received a copy of the GNU Lesser General Public 17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software 18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 U SA 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 U SA
20 */ 20 */
21 21
22 #ifndef ScriptController_h 22 #ifndef ScriptController_h
23 #define ScriptController_h 23 #define ScriptController_h
24 24
25 #include "JSDOMWindowShell.h" 25 #include "JSDOMWindowShell.h"
26 #include "ScriptInstance.h" 26 #include "ScriptInstance.h"
27 #include "ScriptState.h"
27 #include <runtime/Protect.h> 28 #include <runtime/Protect.h>
28 #include <wtf/RefPtr.h> 29 #include <wtf/RefPtr.h>
29 30
30 #if PLATFORM(MAC) 31 #if PLATFORM(MAC)
31 #include <wtf/RetainPtr.h> 32 #include <wtf/RetainPtr.h>
32 33
33 #ifdef __OBJC__ 34 #ifdef __OBJC__
34 @class WebScriptObject; 35 @class WebScriptObject;
35 #else 36 #else
36 class WebScriptObject; 37 class WebScriptObject;
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 151
151 JSC::JSObject* jsObjectForPluginElement(HTMLPlugInElement*); 152 JSC::JSObject* jsObjectForPluginElement(HTMLPlugInElement*);
152 153
153 #if ENABLE(NETSCAPE_PLUGIN_API) 154 #if ENABLE(NETSCAPE_PLUGIN_API)
154 NPObject* createScriptObjectForPluginElement(HTMLPlugInElement*); 155 NPObject* createScriptObjectForPluginElement(HTMLPlugInElement*);
155 NPObject* windowScriptNPObject(); 156 NPObject* windowScriptNPObject();
156 #endif 157 #endif
157 158
158 XSSAuditor* xssAuditor() { return m_XSSAuditor.get(); } 159 XSSAuditor* xssAuditor() { return m_XSSAuditor.get(); }
159 160
161 ScriptState* mainWorldScriptState();
162
160 private: 163 private:
161 JSDOMWindowShell* initScript(DOMWrapperWorld* world); 164 JSDOMWindowShell* initScript(DOMWrapperWorld* world);
162 165
163 void disconnectPlatformScriptObjects(); 166 void disconnectPlatformScriptObjects();
164 167
165 bool processingUserGestureEvent() const; 168 bool processingUserGestureEvent() const;
166 bool isJavaScriptAnchorNavigation() const; 169 bool isJavaScriptAnchorNavigation() const;
167 170
168 ShellMap m_windowShells; 171 ShellMap m_windowShells;
169 Frame* m_frame; 172 Frame* m_frame;
(...skipping 16 matching lines...) Expand all
186 RetainPtr<WebScriptObject> m_windowScriptObject; 189 RetainPtr<WebScriptObject> m_windowScriptObject;
187 #endif 190 #endif
188 191
189 // The XSSAuditor associated with this ScriptController. 192 // The XSSAuditor associated with this ScriptController.
190 OwnPtr<XSSAuditor> m_XSSAuditor; 193 OwnPtr<XSSAuditor> m_XSSAuditor;
191 }; 194 };
192 195
193 } // namespace WebCore 196 } // namespace WebCore
194 197
195 #endif // ScriptController_h 198 #endif // ScriptController_h
OLDNEW
« no previous file with comments | « bindings/js/JSInjectedScriptHostCustom.cpp ('k') | bindings/js/ScriptController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698