| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 virtual void postMessageToWorkerGlobalScope(PassRefPtr<SerializedScriptV
alue>, PassOwnPtr<MessagePortChannelArray>) OVERRIDE; | 56 virtual void postMessageToWorkerGlobalScope(PassRefPtr<SerializedScriptV
alue>, PassOwnPtr<MessagePortChannelArray>) OVERRIDE; |
| 57 virtual bool hasPendingActivity() const OVERRIDE; | 57 virtual bool hasPendingActivity() const OVERRIDE; |
| 58 virtual void workerObjectDestroyed() OVERRIDE; | 58 virtual void workerObjectDestroyed() OVERRIDE; |
| 59 virtual void connectToInspector(WorkerGlobalScopeProxy::PageInspector*)
OVERRIDE; | 59 virtual void connectToInspector(WorkerGlobalScopeProxy::PageInspector*)
OVERRIDE; |
| 60 virtual void disconnectFromInspector() OVERRIDE; | 60 virtual void disconnectFromInspector() OVERRIDE; |
| 61 virtual void sendMessageToInspector(const String&) OVERRIDE; | 61 virtual void sendMessageToInspector(const String&) OVERRIDE; |
| 62 | 62 |
| 63 // Implementations of WorkerObjectProxy. | 63 // Implementations of WorkerObjectProxy. |
| 64 // (Only use these methods in the worker context thread.) | 64 // (Only use these methods in the worker context thread.) |
| 65 virtual void postMessageToWorkerObject(PassRefPtr<SerializedScriptValue>
, PassOwnPtr<MessagePortChannelArray>) OVERRIDE; | 65 virtual void postMessageToWorkerObject(PassRefPtr<SerializedScriptValue>
, PassOwnPtr<MessagePortChannelArray>) OVERRIDE; |
| 66 virtual void postExceptionToWorkerObject(const String& errorMessage, int
lineNumber, const String& sourceURL) OVERRIDE; | 66 virtual void postExceptionToWorkerObject(const String& errorMessage, int
lineNumber, int columnNumber, const String& sourceURL) OVERRIDE; |
| 67 virtual void postConsoleMessageToWorkerObject(MessageSource, MessageLeve
l, const String& message, int lineNumber, const String& sourceURL) OVERRIDE; | 67 virtual void postConsoleMessageToWorkerObject(MessageSource, MessageLeve
l, const String& message, int lineNumber, const String& sourceURL) OVERRIDE; |
| 68 virtual void postMessageToPageInspector(const String&) OVERRIDE; | 68 virtual void postMessageToPageInspector(const String&) OVERRIDE; |
| 69 virtual void updateInspectorStateCookie(const String&) OVERRIDE; | 69 virtual void updateInspectorStateCookie(const String&) OVERRIDE; |
| 70 virtual void confirmMessageFromWorkerObject(bool hasPendingActivity) OVE
RRIDE; | 70 virtual void confirmMessageFromWorkerObject(bool hasPendingActivity) OVE
RRIDE; |
| 71 virtual void reportPendingActivity(bool hasPendingActivity) OVERRIDE; | 71 virtual void reportPendingActivity(bool hasPendingActivity) OVERRIDE; |
| 72 virtual void workerGlobalScopeClosed() OVERRIDE; | 72 virtual void workerGlobalScopeClosed() OVERRIDE; |
| 73 virtual void workerGlobalScopeDestroyed() OVERRIDE; | 73 virtual void workerGlobalScopeDestroyed() OVERRIDE; |
| 74 | 74 |
| 75 // Implementation of WorkerLoaderProxy. | 75 // Implementation of WorkerLoaderProxy. |
| 76 // These methods are called on different threads to schedule loading | 76 // These methods are called on different threads to schedule loading |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 | 110 |
| 111 Vector<OwnPtr<ScriptExecutionContext::Task> > m_queuedEarlyTasks; // Tas
ks are queued here until there's a thread object created. | 111 Vector<OwnPtr<ScriptExecutionContext::Task> > m_queuedEarlyTasks; // Tas
ks are queued here until there's a thread object created. |
| 112 WorkerGlobalScopeProxy::PageInspector* m_pageInspector; | 112 WorkerGlobalScopeProxy::PageInspector* m_pageInspector; |
| 113 | 113 |
| 114 OwnPtr<WorkerClients> m_workerClients; | 114 OwnPtr<WorkerClients> m_workerClients; |
| 115 }; | 115 }; |
| 116 | 116 |
| 117 } // namespace WebCore | 117 } // namespace WebCore |
| 118 | 118 |
| 119 #endif // WorkerMessagingProxy_h | 119 #endif // WorkerMessagingProxy_h |
| OLD | NEW |