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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 // (Only use these methods in the parent context thread.) | 60 // (Only use these methods in the parent context thread.) |
61 void startWorkerGlobalScope(const KURL& scriptURL, const String& userAgent,
const String& sourceCode) override; | 61 void startWorkerGlobalScope(const KURL& scriptURL, const String& userAgent,
const String& sourceCode) override; |
62 void terminateWorkerGlobalScope() override; | 62 void terminateWorkerGlobalScope() override; |
63 void postMessageToWorkerGlobalScope(PassRefPtr<SerializedScriptValue>, PassO
wnPtr<MessagePortChannelArray>) override; | 63 void postMessageToWorkerGlobalScope(PassRefPtr<SerializedScriptValue>, PassO
wnPtr<MessagePortChannelArray>) override; |
64 bool hasPendingActivity() const final; | 64 bool hasPendingActivity() const final; |
65 void workerObjectDestroyed() override; | 65 void workerObjectDestroyed() override; |
66 | 66 |
67 // These methods come from worker context thread via | 67 // These methods come from worker context thread via |
68 // InProcessWorkerObjectProxy and are called on the parent context thread. | 68 // InProcessWorkerObjectProxy and are called on the parent context thread. |
69 void postMessageToWorkerObject(PassRefPtr<SerializedScriptValue>, PassOwnPtr
<MessagePortChannelArray>); | 69 void postMessageToWorkerObject(PassRefPtr<SerializedScriptValue>, PassOwnPtr
<MessagePortChannelArray>); |
70 void reportException(const String& errorMessage, int lineNumber, int columnN
umber, const String& sourceURL, int exceptionId); | 70 void reportException(const String& errorMessage, PassOwnPtr<SourceLocation>)
; |
71 void reportConsoleMessage(MessageSource, MessageLevel, const String& message
, int lineNumber, const String& sourceURL); | 71 void reportConsoleMessage(MessageSource, MessageLevel, const String& message
, int lineNumber, const String& sourceURL); |
72 void postMessageToPageInspector(const String&); | 72 void postMessageToPageInspector(const String&); |
73 void postWorkerConsoleAgentEnabled(); | 73 void postWorkerConsoleAgentEnabled(); |
74 void confirmMessageFromWorkerObject(bool hasPendingActivity); | 74 void confirmMessageFromWorkerObject(bool hasPendingActivity); |
75 void reportPendingActivity(bool hasPendingActivity); | 75 void reportPendingActivity(bool hasPendingActivity); |
76 void workerThreadTerminated(); | 76 void workerThreadTerminated(); |
77 void workerThreadCreated(); | 77 void workerThreadCreated(); |
78 | 78 |
79 ExecutionContext* getExecutionContext() const { return m_executionContext.ge
t(); } | 79 ExecutionContext* getExecutionContext() const { return m_executionContext.ge
t(); } |
80 | 80 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 Persistent<WorkerInspectorProxy> m_workerInspectorProxy; | 121 Persistent<WorkerInspectorProxy> m_workerInspectorProxy; |
122 | 122 |
123 Persistent<WorkerClients> m_workerClients; | 123 Persistent<WorkerClients> m_workerClients; |
124 | 124 |
125 RefPtr<WorkerLoaderProxy> m_loaderProxy; | 125 RefPtr<WorkerLoaderProxy> m_loaderProxy; |
126 }; | 126 }; |
127 | 127 |
128 } // namespace blink | 128 } // namespace blink |
129 | 129 |
130 #endif // InProcessWorkerMessagingProxy_h | 130 #endif // InProcessWorkerMessagingProxy_h |
OLD | NEW |