OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 #endif | 75 #endif |
76 virtual void confirmMessageFromWorkerObject(bool hasPendingActivity); | 76 virtual void confirmMessageFromWorkerObject(bool hasPendingActivity); |
77 virtual void reportPendingActivity(bool hasPendingActivity); | 77 virtual void reportPendingActivity(bool hasPendingActivity); |
78 virtual void workerContextClosed(); | 78 virtual void workerContextClosed(); |
79 virtual void workerContextDestroyed(); | 79 virtual void workerContextDestroyed(); |
80 | 80 |
81 // Implementation of WorkerLoaderProxy. | 81 // Implementation of WorkerLoaderProxy. |
82 // These methods are called on different threads to schedule loading | 82 // These methods are called on different threads to schedule loading |
83 // requests and to send callbacks back to WorkerContext. | 83 // requests and to send callbacks back to WorkerContext. |
84 virtual void postTaskToLoader(PassOwnPtr<ScriptExecutionContext::Task>); | 84 virtual void postTaskToLoader(PassOwnPtr<ScriptExecutionContext::Task>); |
85 virtual void postTaskForModeToWorkerContext(PassOwnPtr<ScriptExecutionCo
ntext::Task>, const String& mode); | 85 virtual bool postTaskForModeToWorkerContext(PassOwnPtr<ScriptExecutionCo
ntext::Task>, const String& mode); |
86 | 86 |
87 void workerThreadCreated(PassRefPtr<DedicatedWorkerThread>); | 87 void workerThreadCreated(PassRefPtr<DedicatedWorkerThread>); |
88 | 88 |
89 // Only use this method on the worker object thread. | 89 // Only use this method on the worker object thread. |
90 bool askedToTerminate() const { return m_askedToTerminate; } | 90 bool askedToTerminate() const { return m_askedToTerminate; } |
91 | 91 |
92 private: | 92 private: |
93 friend class MessageWorkerTask; | 93 friend class MessageWorkerTask; |
94 friend class PostMessageToPageInspectorTask; | 94 friend class PostMessageToPageInspectorTask; |
95 friend class WorkerContextDestroyedTask; | 95 friend class WorkerContextDestroyedTask; |
(...skipping 19 matching lines...) Expand all Loading... |
115 #if ENABLE(INSPECTOR) | 115 #if ENABLE(INSPECTOR) |
116 WorkerContextProxy::PageInspector* m_pageInspector; | 116 WorkerContextProxy::PageInspector* m_pageInspector; |
117 #endif | 117 #endif |
118 }; | 118 }; |
119 | 119 |
120 } // namespace WebCore | 120 } // namespace WebCore |
121 | 121 |
122 #endif // ENABLE(WORKERS) | 122 #endif // ENABLE(WORKERS) |
123 | 123 |
124 #endif // WorkerMessagingProxy_h | 124 #endif // WorkerMessagingProxy_h |
OLD | NEW |