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 void postWorkerConsoleAgentEnabled(); | 68 void postWorkerConsoleAgentEnabled(); |
69 WorkerInspectorProxy* workerInspectorProxy(); | 69 WorkerInspectorProxy* workerInspectorProxy(); |
70 void confirmMessageFromWorkerObject(bool hasPendingActivity); | 70 void confirmMessageFromWorkerObject(bool hasPendingActivity); |
71 void reportPendingActivity(bool hasPendingActivity); | 71 void reportPendingActivity(bool hasPendingActivity); |
72 void workerGlobalScopeClosed(); | 72 void workerGlobalScopeClosed(); |
73 void workerThreadTerminated(); | 73 void workerThreadTerminated(); |
74 | 74 |
75 // Implementation of WorkerLoaderProxy. | 75 // Implementation of WorkerLoaderProxy. |
(...skipping 24 matching lines...) Expand all Loading... |
100 | 100 |
101 Vector<OwnPtr<ExecutionContextTask>> m_queuedEarlyTasks; // Tasks are queued
here until there's a thread object created. | 101 Vector<OwnPtr<ExecutionContextTask>> m_queuedEarlyTasks; // Tasks are queued
here until there's a thread object created. |
102 OwnPtr<WorkerInspectorProxy> m_workerInspectorProxy; | 102 OwnPtr<WorkerInspectorProxy> m_workerInspectorProxy; |
103 | 103 |
104 OwnPtrWillBePersistent<WorkerClients> m_workerClients; | 104 OwnPtrWillBePersistent<WorkerClients> m_workerClients; |
105 }; | 105 }; |
106 | 106 |
107 } // namespace blink | 107 } // namespace blink |
108 | 108 |
109 #endif // WorkerMessagingProxy_h | 109 #endif // WorkerMessagingProxy_h |
OLD | NEW |