| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 // (Only use these methods in the worker object thread.) | 55 // (Only use these methods in the worker object thread.) |
| 56 virtual void startWorkerGlobalScope(const KURL& scriptURL, const String& use
rAgent, const String& sourceCode, WorkerThreadStartMode) override; | 56 virtual void startWorkerGlobalScope(const KURL& scriptURL, const String& use
rAgent, const String& sourceCode, WorkerThreadStartMode) override; |
| 57 virtual void terminateWorkerGlobalScope() override; | 57 virtual void terminateWorkerGlobalScope() override; |
| 58 virtual void postMessageToWorkerGlobalScope(PassRefPtr<SerializedScriptValue
>, PassOwnPtr<MessagePortChannelArray>) override; | 58 virtual void postMessageToWorkerGlobalScope(PassRefPtr<SerializedScriptValue
>, PassOwnPtr<MessagePortChannelArray>) override; |
| 59 virtual bool hasPendingActivity() const override; | 59 virtual bool hasPendingActivity() const override; |
| 60 virtual void workerObjectDestroyed() override; | 60 virtual void workerObjectDestroyed() override; |
| 61 | 61 |
| 62 // These methods come from worker context thread via WorkerObjectProxy | 62 // These methods come from worker context thread via WorkerObjectProxy |
| 63 // and are called on the worker object thread (e.g. main thread). | 63 // and are called on the worker object thread (e.g. main thread). |
| 64 void postMessageToWorkerObject(PassRefPtr<SerializedScriptValue>, PassOwnPtr
<MessagePortChannelArray>); | 64 void postMessageToWorkerObject(PassRefPtr<SerializedScriptValue>, PassOwnPtr
<MessagePortChannelArray>); |
| 65 void reportException(const String& errorMessage, int lineNumber, int columnN
umber, const String& sourceURL); | 65 void reportException(const String& errorMessage, int lineNumber, int columnN
umber, const String& sourceURL, int exceptionId); |
| 66 void reportConsoleMessage(MessageSource, MessageLevel, const String& message
, int lineNumber, const String& sourceURL); | 66 void reportConsoleMessage(MessageSource, MessageLevel, const String& message
, int lineNumber, const String& sourceURL); |
| 67 void postMessageToPageInspector(const String&); | 67 void postMessageToPageInspector(const String&); |
| 68 WorkerInspectorProxy* workerInspectorProxy(); | 68 WorkerInspectorProxy* workerInspectorProxy(); |
| 69 void confirmMessageFromWorkerObject(bool hasPendingActivity); | 69 void confirmMessageFromWorkerObject(bool hasPendingActivity); |
| 70 void reportPendingActivity(bool hasPendingActivity); | 70 void reportPendingActivity(bool hasPendingActivity); |
| 71 void workerGlobalScopeClosed(); | 71 void workerGlobalScopeClosed(); |
| 72 void workerThreadTerminated(); | 72 void workerThreadTerminated(); |
| 73 | 73 |
| 74 // Implementation of WorkerLoaderProxy. | 74 // Implementation of WorkerLoaderProxy. |
| 75 // These methods are called on different threads to schedule loading | 75 // These methods are called on different threads to schedule loading |
| (...skipping 23 matching lines...) Expand all Loading... |
| 99 | 99 |
| 100 Vector<OwnPtr<ExecutionContextTask>> m_queuedEarlyTasks; // Tasks are queued
here until there's a thread object created. | 100 Vector<OwnPtr<ExecutionContextTask>> m_queuedEarlyTasks; // Tasks are queued
here until there's a thread object created. |
| 101 OwnPtr<WorkerInspectorProxy> m_workerInspectorProxy; | 101 OwnPtr<WorkerInspectorProxy> m_workerInspectorProxy; |
| 102 | 102 |
| 103 OwnPtrWillBePersistent<WorkerClients> m_workerClients; | 103 OwnPtrWillBePersistent<WorkerClients> m_workerClients; |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 } // namespace blink | 106 } // namespace blink |
| 107 | 107 |
| 108 #endif // WorkerMessagingProxy_h | 108 #endif // WorkerMessagingProxy_h |
| OLD | NEW |