| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
| 3 * Copyright (C) 2012 Google Inc. All Rights Reserved. | 3 * Copyright (C) 2012 Google Inc. All Rights Reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 KURL completeURL(const String& url) const { return virtualCompleteURL(url);
} | 65 KURL completeURL(const String& url) const { return virtualCompleteURL(url);
} |
| 66 | 66 |
| 67 virtual String userAgent(const KURL&) const = 0; | 67 virtual String userAgent(const KURL&) const = 0; |
| 68 | 68 |
| 69 virtual void disableEval(const String& errorMessage) = 0; | 69 virtual void disableEval(const String& errorMessage) = 0; |
| 70 | 70 |
| 71 bool sanitizeScriptError(String& errorMessage, int& lineNumber, int& columnN
umber, String& sourceURL); | 71 bool sanitizeScriptError(String& errorMessage, int& lineNumber, int& columnN
umber, String& sourceURL); |
| 72 void reportException(const String& errorMessage, int lineNumber, int columnN
umber, const String& sourceURL, PassRefPtr<ScriptCallStack>); | 72 void reportException(const String& errorMessage, int lineNumber, int columnN
umber, const String& sourceURL, PassRefPtr<ScriptCallStack>); |
| 73 | 73 |
| 74 void addConsoleMessage(MessageSource, MessageLevel, const String& message, c
onst String& sourceURL, unsigned lineNumber, ScriptState* = 0, unsigned long req
uestIdentifier = 0); | 74 void addConsoleMessage(MessageSource, MessageLevel, const String& message, c
onst String& sourceURL, unsigned lineNumber, ScriptState* = 0, unsigned long req
uestIdentifier = 0); |
| 75 virtual void addConsoleMessage(MessageSource, MessageLevel, const String& me
ssage, unsigned long requestIdentifier = 0) = 0; | 75 virtual void addConsoleMessage(MessageSource, MessageLevel, const String& me
ssage, unsigned long requestIdentifier = 0, ParserStateCollectionDisposition = D
oNotForceParserStateCollection) = 0; |
| 76 | 76 |
| 77 PublicURLManager& publicURLManager(); | 77 PublicURLManager& publicURLManager(); |
| 78 | 78 |
| 79 // Active objects are not garbage collected even if inaccessible, e.g. becau
se their activity may result in callbacks being invoked. | 79 // Active objects are not garbage collected even if inaccessible, e.g. becau
se their activity may result in callbacks being invoked. |
| 80 bool canSuspendActiveDOMObjects(); | 80 bool canSuspendActiveDOMObjects(); |
| 81 bool hasPendingActivity(); | 81 bool hasPendingActivity(); |
| 82 | 82 |
| 83 // Active objects can be asked to suspend even if canSuspendActiveDOMObjects
() returns 'false' - | 83 // Active objects can be asked to suspend even if canSuspendActiveDOMObjects
() returns 'false' - |
| 84 // step-by-step JS debugging is one example. | 84 // step-by-step JS debugging is one example. |
| 85 virtual void suspendActiveDOMObjects(ActiveDOMObject::ReasonForSuspension); | 85 virtual void suspendActiveDOMObjects(ActiveDOMObject::ReasonForSuspension); |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 | 188 |
| 189 // The location of this member is important; to make sure contextDestroyed()
notification on | 189 // The location of this member is important; to make sure contextDestroyed()
notification on |
| 190 // ScriptExecutionContext's members (notably m_timeouts) is called before th
ey are destructed, | 190 // ScriptExecutionContext's members (notably m_timeouts) is called before th
ey are destructed, |
| 191 // m_lifecycleNotifer should be placed *after* such members. | 191 // m_lifecycleNotifer should be placed *after* such members. |
| 192 OwnPtr<ContextLifecycleNotifier> m_lifecycleNotifier; | 192 OwnPtr<ContextLifecycleNotifier> m_lifecycleNotifier; |
| 193 }; | 193 }; |
| 194 | 194 |
| 195 } // namespace WebCore | 195 } // namespace WebCore |
| 196 | 196 |
| 197 #endif // ScriptExecutionContext_h | 197 #endif // ScriptExecutionContext_h |
| OLD | NEW |