| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 class CORE_EXPORT WorkerMessagingProxy | 50 class CORE_EXPORT WorkerMessagingProxy |
| 51 : public WorkerGlobalScopeProxy | 51 : public WorkerGlobalScopeProxy |
| 52 , private WorkerLoaderProxyProvider { | 52 , private WorkerLoaderProxyProvider { |
| 53 WTF_MAKE_NONCOPYABLE(WorkerMessagingProxy); | 53 WTF_MAKE_NONCOPYABLE(WorkerMessagingProxy); |
| 54 public: | 54 public: |
| 55 // Implementations of WorkerGlobalScopeProxy. | 55 // Implementations of WorkerGlobalScopeProxy. |
| 56 // (Only use these methods in the worker object thread.) | 56 // (Only use these methods in the worker object thread.) |
| 57 void startWorkerGlobalScope(const KURL& scriptURL, const String& userAgent,
const String& sourceCode) override; | 57 void startWorkerGlobalScope(const KURL& scriptURL, const String& userAgent,
const String& sourceCode) override; |
| 58 void terminateWorkerGlobalScope() override; | 58 void terminateWorkerGlobalScope() override; |
| 59 void postMessageToWorkerGlobalScope(PassRefPtr<SerializedScriptValue>, PassO
wnPtr<MessagePortChannelArray>) override; | 59 void postMessageToWorkerGlobalScope(PassRefPtr<SerializedScriptValue>, PassO
wnPtr<MessagePortChannelArray>) override; |
| 60 bool hasPendingActivity() const override; | 60 bool hasPendingActivity() const final; |
| 61 void workerObjectDestroyed() override; | 61 void workerObjectDestroyed() override; |
| 62 | 62 |
| 63 // These methods come from worker context thread via WorkerObjectProxy | 63 // These methods come from worker context thread via WorkerObjectProxy |
| 64 // and are called on the worker object thread (e.g. main thread). | 64 // and are called on the worker object thread (e.g. main thread). |
| 65 void postMessageToWorkerObject(PassRefPtr<SerializedScriptValue>, PassOwnPtr
<MessagePortChannelArray>); | 65 void postMessageToWorkerObject(PassRefPtr<SerializedScriptValue>, PassOwnPtr
<MessagePortChannelArray>); |
| 66 void reportException(const String& errorMessage, int lineNumber, int columnN
umber, const String& sourceURL, int exceptionId); | 66 void reportException(const String& errorMessage, int lineNumber, int columnN
umber, const String& sourceURL, int exceptionId); |
| 67 void reportConsoleMessage(MessageSource, MessageLevel, const String& message
, int lineNumber, const String& sourceURL); | 67 void reportConsoleMessage(MessageSource, MessageLevel, const String& message
, int lineNumber, const String& sourceURL); |
| 68 void postMessageToPageInspector(const String&); | 68 void postMessageToPageInspector(const String&); |
| 69 void postWorkerConsoleAgentEnabled(); | 69 void postWorkerConsoleAgentEnabled(); |
| 70 void confirmMessageFromWorkerObject(bool hasPendingActivity); | 70 void confirmMessageFromWorkerObject(bool hasPendingActivity); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 OwnPtrWillBePersistent<WorkerInspectorProxy> m_workerInspectorProxy; | 109 OwnPtrWillBePersistent<WorkerInspectorProxy> m_workerInspectorProxy; |
| 110 | 110 |
| 111 OwnPtrWillBePersistent<WorkerClients> m_workerClients; | 111 OwnPtrWillBePersistent<WorkerClients> m_workerClients; |
| 112 | 112 |
| 113 RefPtr<WorkerLoaderProxy> m_loaderProxy; | 113 RefPtr<WorkerLoaderProxy> m_loaderProxy; |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 } // namespace blink | 116 } // namespace blink |
| 117 | 117 |
| 118 #endif // WorkerMessagingProxy_h | 118 #endif // WorkerMessagingProxy_h |
| OLD | NEW |