| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 virtual String userAgent(const KURL&) const; | 72 virtual String userAgent(const KURL&) const; |
| 73 | 73 |
| 74 virtual void disableEval(const String& errorMessage) OVERRIDE; | 74 virtual void disableEval(const String& errorMessage) OVERRIDE; |
| 75 | 75 |
| 76 WorkerScriptController* script() { return m_script.get(); } | 76 WorkerScriptController* script() { return m_script.get(); } |
| 77 void clearScript() { m_script.clear(); } | 77 void clearScript() { m_script.clear(); } |
| 78 void clearInspector(); | 78 void clearInspector(); |
| 79 | 79 |
| 80 WorkerThread* thread() const { return m_thread; } | 80 WorkerThread* thread() const { return m_thread; } |
| 81 | 81 |
| 82 bool hasPendingActivity() const; |
| 83 |
| 82 virtual void postTask(PassOwnPtr<Task>) OVERRIDE; // Executes the task o
n context's thread asynchronously. | 84 virtual void postTask(PassOwnPtr<Task>) OVERRIDE; // Executes the task o
n context's thread asynchronously. |
| 83 | 85 |
| 84 // WorkerGlobalScope | 86 // WorkerGlobalScope |
| 85 WorkerContext* self() { return this; } | 87 WorkerContext* self() { return this; } |
| 86 WorkerLocation* location() const; | 88 WorkerLocation* location() const; |
| 87 void close(); | 89 void close(); |
| 88 | 90 |
| 89 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); | 91 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); |
| 90 | 92 |
| 91 // WorkerUtils | 93 // WorkerUtils |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 OwnPtr<WorkerEventQueue> m_eventQueue; | 181 OwnPtr<WorkerEventQueue> m_eventQueue; |
| 180 | 182 |
| 181 RefPtr<SecurityOrigin> m_topOrigin; | 183 RefPtr<SecurityOrigin> m_topOrigin; |
| 182 | 184 |
| 183 double m_timeOrigin; | 185 double m_timeOrigin; |
| 184 }; | 186 }; |
| 185 | 187 |
| 186 } // namespace WebCore | 188 } // namespace WebCore |
| 187 | 189 |
| 188 #endif // WorkerContext_h | 190 #endif // WorkerContext_h |
| OLD | NEW |