| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 virtual void postTask(PassOwnPtr<ExecutionContextTask>) = 0; // Executes the
task on context's thread asynchronously. | 78 virtual void postTask(PassOwnPtr<ExecutionContextTask>) = 0; // Executes the
task on context's thread asynchronously. |
| 79 virtual double timerAlignmentInterval() const = 0; | 79 virtual double timerAlignmentInterval() const = 0; |
| 80 | 80 |
| 81 virtual void reportBlockedScriptExecutionToInspector(const String& directive
Text) = 0; | 81 virtual void reportBlockedScriptExecutionToInspector(const String& directive
Text) = 0; |
| 82 | 82 |
| 83 virtual SecurityContext& securityContext() = 0; | 83 virtual SecurityContext& securityContext() = 0; |
| 84 KURL contextURL() const { return virtualURL(); } | 84 KURL contextURL() const { return virtualURL(); } |
| 85 KURL contextCompleteURL(const String& url) const { return virtualCompleteURL
(url); } | 85 KURL contextCompleteURL(const String& url) const { return virtualCompleteURL
(url); } |
| 86 | 86 |
| 87 bool shouldSanitizeScriptError(const String& sourceURL, AccessControlStatus)
; | 87 bool shouldSanitizeScriptError(const String& sourceURL, AccessControlStatus)
; |
| 88 void reportException(PassRefPtrWillBeRawPtr<ErrorEvent>, int scriptId, PassR
efPtrWillBeRawPtr<ScriptCallStack>, AccessControlStatus); | 88 void reportException(PassRefPtrWillBeRawPtr<ErrorEvent>, int scriptId, PassR
efPtrWillBeRawPtr<ScriptCallStack>, AccessControlStatus, bool isPromiseReject =
false); |
| 89 | 89 |
| 90 virtual void addConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) = 0; | 90 virtual void addConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) = 0; |
| 91 virtual void logExceptionToConsole(const String& errorMessage, int scriptId,
const String& sourceURL, int lineNumber, int columnNumber, PassRefPtrWillBeRawP
tr<ScriptCallStack>) = 0; | 91 virtual void logExceptionToConsole(const String& errorMessage, int scriptId,
const String& sourceURL, int lineNumber, int columnNumber, PassRefPtrWillBeRawP
tr<ScriptCallStack>) = 0; |
| 92 | 92 |
| 93 PublicURLManager& publicURLManager(); | 93 PublicURLManager& publicURLManager(); |
| 94 | 94 |
| 95 // Active objects are not garbage collected even if inaccessible, e.g. becau
se their activity may result in callbacks being invoked. | 95 // Active objects are not garbage collected even if inaccessible, e.g. becau
se their activity may result in callbacks being invoked. |
| 96 bool hasPendingActivity(); | 96 bool hasPendingActivity(); |
| 97 | 97 |
| 98 void suspendActiveDOMObjects(); | 98 void suspendActiveDOMObjects(); |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 | 172 |
| 173 // The location of this member is important; to make sure contextDestroyed()
notification on | 173 // The location of this member is important; to make sure contextDestroyed()
notification on |
| 174 // ExecutionContext's members (notably m_timeouts) is called before they are
destructed, | 174 // ExecutionContext's members (notably m_timeouts) is called before they are
destructed, |
| 175 // m_lifecycleNotifer should be placed *after* such members. | 175 // m_lifecycleNotifer should be placed *after* such members. |
| 176 OwnPtr<ContextLifecycleNotifier> m_lifecycleNotifier; | 176 OwnPtr<ContextLifecycleNotifier> m_lifecycleNotifier; |
| 177 }; | 177 }; |
| 178 | 178 |
| 179 } // namespace blink | 179 } // namespace blink |
| 180 | 180 |
| 181 #endif // ExecutionContext_h | 181 #endif // ExecutionContext_h |
| OLD | NEW |