| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 KURL completeURL(const String& url) const; | 93 KURL completeURL(const String& url) const; |
| 94 virtual void disableEval(const String& errorMessage) = 0; | 94 virtual void disableEval(const String& errorMessage) = 0; |
| 95 virtual LocalDOMWindow* executingWindow() const { return 0; } | 95 virtual LocalDOMWindow* executingWindow() const { return 0; } |
| 96 virtual String userAgent() const = 0; | 96 virtual String userAgent() const = 0; |
| 97 // Executes the task on context's thread asynchronously. | 97 // Executes the task on context's thread asynchronously. |
| 98 virtual void postTask( | 98 virtual void postTask( |
| 99 TaskType, | 99 TaskType, |
| 100 const WebTraceLocation&, | 100 const WebTraceLocation&, |
| 101 std::unique_ptr<ExecutionContextTask>, | 101 std::unique_ptr<ExecutionContextTask>, |
| 102 const String& taskNameForInstrumentation = emptyString()) = 0; | 102 const String& taskNameForInstrumentation = emptyString()) = 0; |
| 103 void postTask(const WebTraceLocation&, | |
| 104 std::unique_ptr<ExecutionContextTask>, | |
| 105 const String& taskNameForInstrumentation = emptyString()); | |
| 106 | 103 |
| 107 // Gets the DOMTimerCoordinator which maintains the "active timer | 104 // Gets the DOMTimerCoordinator which maintains the "active timer |
| 108 // list" of tasks created by setTimeout and setInterval. The | 105 // list" of tasks created by setTimeout and setInterval. The |
| 109 // DOMTimerCoordinator is owned by the ExecutionContext and should | 106 // DOMTimerCoordinator is owned by the ExecutionContext and should |
| 110 // not be used after the ExecutionContext is destroyed. | 107 // not be used after the ExecutionContext is destroyed. |
| 111 virtual DOMTimerCoordinator* timers() = 0; | 108 virtual DOMTimerCoordinator* timers() = 0; |
| 112 | 109 |
| 113 virtual SecurityContext& securityContext() = 0; | 110 virtual SecurityContext& securityContext() = 0; |
| 114 KURL contextURL() const { return virtualURL(); } | 111 KURL contextURL() const { return virtualURL(); } |
| 115 KURL contextCompleteURL(const String& url) const { | 112 KURL contextCompleteURL(const String& url) const { |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 // |allowWindowInteraction()| and |consumeWindowInteraction()| in order to | 205 // |allowWindowInteraction()| and |consumeWindowInteraction()| in order to |
| 209 // increment and decrement the counter. | 206 // increment and decrement the counter. |
| 210 int m_windowInteractionTokens; | 207 int m_windowInteractionTokens; |
| 211 | 208 |
| 212 ReferrerPolicy m_referrerPolicy; | 209 ReferrerPolicy m_referrerPolicy; |
| 213 }; | 210 }; |
| 214 | 211 |
| 215 } // namespace blink | 212 } // namespace blink |
| 216 | 213 |
| 217 #endif // ExecutionContext_h | 214 #endif // ExecutionContext_h |
| OLD | NEW |