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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 61 |
62 typedef WTF::Vector<v8::Extension*> V8Extensions; | 62 typedef WTF::Vector<v8::Extension*> V8Extensions; |
63 | 63 |
64 enum ReasonForCallingCanExecuteScripts { | 64 enum ReasonForCallingCanExecuteScripts { |
65 AboutToExecuteScript, | 65 AboutToExecuteScript, |
66 NotAboutToExecuteScript | 66 NotAboutToExecuteScript |
67 }; | 67 }; |
68 | 68 |
69 class CORE_EXPORT ScriptController final : public NoBaseWillBeGarbageCollectedFi
nalized<ScriptController> { | 69 class CORE_EXPORT ScriptController final : public NoBaseWillBeGarbageCollectedFi
nalized<ScriptController> { |
70 WTF_MAKE_NONCOPYABLE(ScriptController); | 70 WTF_MAKE_NONCOPYABLE(ScriptController); |
| 71 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(ScriptController); |
71 public: | 72 public: |
72 enum ExecuteScriptPolicy { | 73 enum ExecuteScriptPolicy { |
73 ExecuteScriptWhenScriptsDisabled, | 74 ExecuteScriptWhenScriptsDisabled, |
74 DoNotExecuteScriptWhenScriptsDisabled | 75 DoNotExecuteScriptWhenScriptsDisabled |
75 }; | 76 }; |
76 | 77 |
77 static PassOwnPtrWillBeRawPtr<ScriptController> create(LocalFrame* frame) | 78 static PassOwnPtrWillBeRawPtr<ScriptController> create(LocalFrame* frame) |
78 { | 79 { |
79 return adoptPtrWillBeNoop(new ScriptController(frame)); | 80 return adoptPtrWillBeNoop(new ScriptController(frame)); |
80 } | 81 } |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 // invalidate all sub-objects which are associated with that plugin. | 174 // invalidate all sub-objects which are associated with that plugin. |
174 // The frame keeps a NPObject reference for each item on the list. | 175 // The frame keeps a NPObject reference for each item on the list. |
175 PluginObjectMap m_pluginObjects; | 176 PluginObjectMap m_pluginObjects; |
176 | 177 |
177 NPObject* m_windowScriptNPObject; | 178 NPObject* m_windowScriptNPObject; |
178 }; | 179 }; |
179 | 180 |
180 } // namespace blink | 181 } // namespace blink |
181 | 182 |
182 #endif // ScriptController_h | 183 #endif // ScriptController_h |
OLD | NEW |