Chromium Code Reviews| Index: Source/core/dom/ExecutionContext.h |
| diff --git a/Source/core/dom/ExecutionContext.h b/Source/core/dom/ExecutionContext.h |
| index c93492dbf87c6e9b36290cb54605142c50bac78e..8cdacc6e34b02686a71f22e0bb1ec79b83c27f44 100644 |
| --- a/Source/core/dom/ExecutionContext.h |
| +++ b/Source/core/dom/ExecutionContext.h |
| @@ -84,6 +84,9 @@ public: |
| bool shouldSanitizeScriptError(const String& sourceURL, AccessControlStatus); |
| void reportException(PassRefPtrWillBeRawPtr<ErrorEvent>, PassRefPtr<ScriptCallStack>, AccessControlStatus); |
| + void initScriptEnabled() { } |
|
abarth-chromium
2014/06/26 19:53:37
This function shouldn't be needed. What breaks if
mmal
2014/06/27 19:39:16
Done.
|
| + bool scriptEnabled() { return m_scriptEnabled; } |
| + |
| void addConsoleMessage(MessageSource, MessageLevel, const String& message, const String& sourceURL, unsigned lineNumber); |
| void addConsoleMessage(MessageSource, MessageLevel, const String& message, ScriptState* = 0); |
| @@ -128,6 +131,8 @@ protected: |
| ContextLifecycleNotifier& lifecycleNotifier(); |
| + bool m_scriptEnabled; |
| + |
| private: |
| friend class DOMTimer; // For installNewTimeout() and removeTimeoutByID() below. |