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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 void postMessageToWorkerGlobalScope(PassRefPtr<SerializedScriptValue>, std::
unique_ptr<MessagePortChannelArray>) override; | 63 void postMessageToWorkerGlobalScope(PassRefPtr<SerializedScriptValue>, std::
unique_ptr<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>, std::uniqu
e_ptr<MessagePortChannelArray>); | 69 void postMessageToWorkerObject(PassRefPtr<SerializedScriptValue>, std::uniqu
e_ptr<MessagePortChannelArray>); |
70 void reportException(const String& errorMessage, std::unique_ptr<SourceLocat
ion>); | 70 void reportException(const String& errorMessage, std::unique_ptr<SourceLocat
ion>); |
71 void reportConsoleMessage(MessageSource, MessageLevel, const String& message
, std::unique_ptr<SourceLocation>); | 71 void reportConsoleMessage(MessageSource, MessageLevel, const String& message
, std::unique_ptr<SourceLocation>); |
72 void postMessageToPageInspector(const String&); | 72 void postMessageToPageInspector(const String&); |
73 void postWorkerConsoleAgentEnabled(); | |
74 void confirmMessageFromWorkerObject(bool hasPendingActivity); | 73 void confirmMessageFromWorkerObject(bool hasPendingActivity); |
75 void reportPendingActivity(bool hasPendingActivity); | 74 void reportPendingActivity(bool hasPendingActivity); |
76 void workerThreadTerminated(); | 75 void workerThreadTerminated(); |
77 void workerThreadCreated(); | 76 void workerThreadCreated(); |
78 | 77 |
79 ExecutionContext* getExecutionContext() const { return m_executionContext.ge
t(); } | 78 ExecutionContext* getExecutionContext() const { return m_executionContext.ge
t(); } |
80 | 79 |
81 // Number of live messaging proxies, used by leak detection. | 80 // Number of live messaging proxies, used by leak detection. |
82 static int proxyCount(); | 81 static int proxyCount(); |
83 | 82 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 Persistent<WorkerInspectorProxy> m_workerInspectorProxy; | 123 Persistent<WorkerInspectorProxy> m_workerInspectorProxy; |
125 | 124 |
126 Persistent<WorkerClients> m_workerClients; | 125 Persistent<WorkerClients> m_workerClients; |
127 | 126 |
128 RefPtr<WorkerLoaderProxy> m_loaderProxy; | 127 RefPtr<WorkerLoaderProxy> m_loaderProxy; |
129 }; | 128 }; |
130 | 129 |
131 } // namespace blink | 130 } // namespace blink |
132 | 131 |
133 #endif // InProcessWorkerMessagingProxy_h | 132 #endif // InProcessWorkerMessagingProxy_h |
OLD | NEW |