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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 virtual void reportBlockedScriptExecutionToInspector(const String& directive
Text) = 0; | 100 virtual void reportBlockedScriptExecutionToInspector(const String& directive
Text) = 0; |
101 | 101 |
102 virtual SecurityContext& securityContext() = 0; | 102 virtual SecurityContext& securityContext() = 0; |
103 KURL contextURL() const { return virtualURL(); } | 103 KURL contextURL() const { return virtualURL(); } |
104 KURL contextCompleteURL(const String& url) const { return virtualCompleteURL
(url); } | 104 KURL contextCompleteURL(const String& url) const { return virtualCompleteURL
(url); } |
105 | 105 |
106 bool shouldSanitizeScriptError(const String& sourceURL, AccessControlStatus)
; | 106 bool shouldSanitizeScriptError(const String& sourceURL, AccessControlStatus)
; |
107 void reportException(ErrorEvent*, AccessControlStatus); | 107 void reportException(ErrorEvent*, AccessControlStatus); |
108 | 108 |
109 virtual void addConsoleMessage(ConsoleMessage*) = 0; | 109 virtual void addConsoleMessage(ConsoleMessage*) = 0; |
110 virtual void logExceptionToConsole(const String& errorMessage, std::unique_p
tr<SourceLocation>) = 0; | 110 virtual void exceptionThrown(const String& errorMessage, std::unique_ptr<Sou
rceLocation>) = 0; |
111 | 111 |
112 PublicURLManager& publicURLManager(); | 112 PublicURLManager& publicURLManager(); |
113 | 113 |
114 virtual void removeURLFromMemoryCache(const KURL&); | 114 virtual void removeURLFromMemoryCache(const KURL&); |
115 | 115 |
116 void suspendActiveDOMObjects(); | 116 void suspendActiveDOMObjects(); |
117 void resumeActiveDOMObjects(); | 117 void resumeActiveDOMObjects(); |
118 void stopActiveDOMObjects(); | 118 void stopActiveDOMObjects(); |
119 void postSuspendableTask(std::unique_ptr<SuspendableTask>); | 119 void postSuspendableTask(std::unique_ptr<SuspendableTask>); |
120 void notifyContextDestroyed() override; | 120 void notifyContextDestroyed() override; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 | 187 |
188 Deque<std::unique_ptr<SuspendableTask>> m_suspendedTasks; | 188 Deque<std::unique_ptr<SuspendableTask>> m_suspendedTasks; |
189 bool m_isRunSuspendableTasksScheduled; | 189 bool m_isRunSuspendableTasksScheduled; |
190 | 190 |
191 ReferrerPolicy m_referrerPolicy; | 191 ReferrerPolicy m_referrerPolicy; |
192 }; | 192 }; |
193 | 193 |
194 } // namespace blink | 194 } // namespace blink |
195 | 195 |
196 #endif // ExecutionContext_h | 196 #endif // ExecutionContext_h |
OLD | NEW |