| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 class CORE_EXPORT InProcessWorkerMessagingProxy | 49 class CORE_EXPORT InProcessWorkerMessagingProxy |
| 50 : public ThreadedMessagingProxyBase { | 50 : public ThreadedMessagingProxyBase { |
| 51 WTF_MAKE_NONCOPYABLE(InProcessWorkerMessagingProxy); | 51 WTF_MAKE_NONCOPYABLE(InProcessWorkerMessagingProxy); |
| 52 | 52 |
| 53 public: | 53 public: |
| 54 // These methods should only be used on the parent context thread. | 54 // These methods should only be used on the parent context thread. |
| 55 void startWorkerGlobalScope(const KURL& scriptURL, | 55 void startWorkerGlobalScope(const KURL& scriptURL, |
| 56 const String& userAgent, | 56 const String& userAgent, |
| 57 const String& sourceCode, | 57 const String& sourceCode, |
| 58 ContentSecurityPolicy*, | |
| 59 const String& referrerPolicy); | 58 const String& referrerPolicy); |
| 60 void postMessageToWorkerGlobalScope(PassRefPtr<SerializedScriptValue>, | 59 void postMessageToWorkerGlobalScope(PassRefPtr<SerializedScriptValue>, |
| 61 MessagePortChannelArray); | 60 MessagePortChannelArray); |
| 62 | 61 |
| 63 void workerThreadCreated() override; | 62 void workerThreadCreated() override; |
| 64 void parentObjectDestroyed() override; | 63 void parentObjectDestroyed() override; |
| 65 | 64 |
| 66 bool hasPendingActivity() const; | 65 bool hasPendingActivity() const; |
| 67 | 66 |
| 68 // These methods come from worker context thread via | 67 // These methods come from worker context thread via |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 // Indicates whether there are pending activities (e.g, MessageEvent, | 109 // Indicates whether there are pending activities (e.g, MessageEvent, |
| 111 // setTimeout) on the worker context. | 110 // setTimeout) on the worker context. |
| 112 bool m_workerGlobalScopeHasPendingActivity = false; | 111 bool m_workerGlobalScopeHasPendingActivity = false; |
| 113 | 112 |
| 114 WeakPtrFactory<InProcessWorkerMessagingProxy> m_weakPtrFactory; | 113 WeakPtrFactory<InProcessWorkerMessagingProxy> m_weakPtrFactory; |
| 115 }; | 114 }; |
| 116 | 115 |
| 117 } // namespace blink | 116 } // namespace blink |
| 118 | 117 |
| 119 #endif // InProcessWorkerMessagingProxy_h | 118 #endif // InProcessWorkerMessagingProxy_h |
| OLD | NEW |