| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 virtual bool isContextThread() const { return true; } | 82 virtual bool isContextThread() const { return true; } |
| 83 | 83 |
| 84 SecurityOrigin* securityOrigin(); | 84 SecurityOrigin* securityOrigin(); |
| 85 ContentSecurityPolicy* contentSecurityPolicy(); | 85 ContentSecurityPolicy* contentSecurityPolicy(); |
| 86 const KURL& url() const; | 86 const KURL& url() const; |
| 87 KURL completeURL(const String& url) const; | 87 KURL completeURL(const String& url) const; |
| 88 virtual void disableEval(const String& errorMessage) = 0; | 88 virtual void disableEval(const String& errorMessage) = 0; |
| 89 virtual LocalDOMWindow* executingWindow() { return 0; } | 89 virtual LocalDOMWindow* executingWindow() { return 0; } |
| 90 virtual String userAgent() const = 0; | 90 virtual String userAgent() const = 0; |
| 91 virtual void postTask(const WebTraceLocation&, PassOwnPtr<ExecutionContextTa
sk>) = 0; // Executes the task on context's thread asynchronously. | 91 virtual void postTask(const WebTraceLocation&, PassOwnPtr<ExecutionContextTa
sk>) = 0; // Executes the task on context's thread asynchronously. |
| 92 virtual double timerAlignmentInterval() const = 0; | |
| 93 | 92 |
| 94 // Gets the DOMTimerCoordinator which maintains the "active timer | 93 // Gets the DOMTimerCoordinator which maintains the "active timer |
| 95 // list" of tasks created by setTimeout and setInterval. The | 94 // list" of tasks created by setTimeout and setInterval. The |
| 96 // DOMTimerCoordinator is owned by the ExecutionContext and should | 95 // DOMTimerCoordinator is owned by the ExecutionContext and should |
| 97 // not be used after the ExecutionContext is destroyed. | 96 // not be used after the ExecutionContext is destroyed. |
| 98 virtual DOMTimerCoordinator* timers() = 0; | 97 virtual DOMTimerCoordinator* timers() = 0; |
| 99 | 98 |
| 100 virtual void reportBlockedScriptExecutionToInspector(const String& directive
Text) = 0; | 99 virtual void reportBlockedScriptExecutionToInspector(const String& directive
Text) = 0; |
| 101 | 100 |
| 102 virtual SecurityContext& securityContext() = 0; | 101 virtual SecurityContext& securityContext() = 0; |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 | 198 |
| 200 Deque<OwnPtr<SuspendableTask>> m_suspendedTasks; | 199 Deque<OwnPtr<SuspendableTask>> m_suspendedTasks; |
| 201 bool m_isRunSuspendableTasksScheduled; | 200 bool m_isRunSuspendableTasksScheduled; |
| 202 | 201 |
| 203 ReferrerPolicy m_referrerPolicy; | 202 ReferrerPolicy m_referrerPolicy; |
| 204 }; | 203 }; |
| 205 | 204 |
| 206 } // namespace blink | 205 } // namespace blink |
| 207 | 206 |
| 208 #endif // ExecutionContext_h | 207 #endif // ExecutionContext_h |
| OLD | NEW |