OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 virtual bool isContextThread() const = 0; | 84 virtual bool isContextThread() const = 0; |
85 virtual bool isJSExecutionTerminated() const = 0; | 85 virtual bool isJSExecutionTerminated() const = 0; |
86 | 86 |
87 const KURL& url() const { return virtualURL(); } | 87 const KURL& url() const { return virtualURL(); } |
88 KURL completeURL(const String& url) const { return virtualCompleteURL(ur
l); } | 88 KURL completeURL(const String& url) const { return virtualCompleteURL(ur
l); } |
89 | 89 |
90 virtual String userAgent(const KURL&) const = 0; | 90 virtual String userAgent(const KURL&) const = 0; |
91 | 91 |
92 SecurityOrigin* securityOrigin() const { return m_securityOrigin.get();
} | 92 SecurityOrigin* securityOrigin() const { return m_securityOrigin.get();
} |
93 | 93 |
| 94 bool sanitizeScriptError(String& errorMessage, int& lineNumber, String&
sourceURL); |
94 void reportException(const String& errorMessage, int lineNumber, const S
tring& sourceURL, PassRefPtr<ScriptCallStack>); | 95 void reportException(const String& errorMessage, int lineNumber, const S
tring& sourceURL, PassRefPtr<ScriptCallStack>); |
95 virtual void addMessage(MessageSource, MessageType, MessageLevel, const
String& message, unsigned lineNumber, const String& sourceURL, PassRefPtr<Script
CallStack>) = 0; | 96 virtual void addMessage(MessageSource, MessageType, MessageLevel, const
String& message, unsigned lineNumber, const String& sourceURL, PassRefPtr<Script
CallStack>) = 0; |
96 | 97 |
97 // Active objects are not garbage collected even if inaccessible, e.g. b
ecause their activity may result in callbacks being invoked. | 98 // Active objects are not garbage collected even if inaccessible, e.g. b
ecause their activity may result in callbacks being invoked. |
98 bool canSuspendActiveDOMObjects(); | 99 bool canSuspendActiveDOMObjects(); |
99 // Active objects can be asked to suspend even if canSuspendActiveDOMObj
ects() returns 'false' - | 100 // Active objects can be asked to suspend even if canSuspendActiveDOMObj
ects() returns 'false' - |
100 // step-by-step JS debugging is one example. | 101 // step-by-step JS debugging is one example. |
101 void suspendActiveDOMObjects(ActiveDOMObject::ReasonForSuspension); | 102 void suspendActiveDOMObjects(ActiveDOMObject::ReasonForSuspension); |
102 void resumeActiveDOMObjects(); | 103 void resumeActiveDOMObjects(); |
103 void stopActiveDOMObjects(); | 104 void stopActiveDOMObjects(); |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 | 195 |
195 #if ENABLE(BLOB) || ENABLE(FILE_SYSTEM) | 196 #if ENABLE(BLOB) || ENABLE(FILE_SYSTEM) |
196 RefPtr<FileThread> m_fileThread; | 197 RefPtr<FileThread> m_fileThread; |
197 #endif | 198 #endif |
198 }; | 199 }; |
199 | 200 |
200 } // namespace WebCore | 201 } // namespace WebCore |
201 | 202 |
202 | 203 |
203 #endif // ScriptExecutionContext_h | 204 #endif // ScriptExecutionContext_h |
OLD | NEW |