| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
| 3 * Copyright (C) 2009 Google Inc. All Rights Reserved. | 3 * Copyright (C) 2009 Google Inc. All Rights Reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 } | 59 } |
| 60 | 60 |
| 61 InProcessWorkerMessagingProxy::InProcessWorkerMessagingProxy( | 61 InProcessWorkerMessagingProxy::InProcessWorkerMessagingProxy( |
| 62 ExecutionContext* executionContext, | 62 ExecutionContext* executionContext, |
| 63 InProcessWorkerBase* workerObject, | 63 InProcessWorkerBase* workerObject, |
| 64 WorkerClients* workerClients) | 64 WorkerClients* workerClients) |
| 65 : ThreadedMessagingProxyBase(executionContext), | 65 : ThreadedMessagingProxyBase(executionContext), |
| 66 m_workerObject(workerObject), | 66 m_workerObject(workerObject), |
| 67 m_workerClients(workerClients), | 67 m_workerClients(workerClients), |
| 68 m_weakPtrFactory(this) { | 68 m_weakPtrFactory(this) { |
| 69 m_workerObjectProxy = InProcessWorkerObjectProxy::create( | 69 m_workerObjectProxy = |
| 70 m_weakPtrFactory.createWeakPtr(), getParentFrameTaskRunners()); | 70 InProcessWorkerObjectProxy::create(m_weakPtrFactory.createWeakPtr()); |
| 71 } | 71 } |
| 72 | 72 |
| 73 InProcessWorkerMessagingProxy::~InProcessWorkerMessagingProxy() { | 73 InProcessWorkerMessagingProxy::~InProcessWorkerMessagingProxy() { |
| 74 DCHECK(!m_workerObject); | 74 DCHECK(!m_workerObject); |
| 75 } | 75 } |
| 76 | 76 |
| 77 void InProcessWorkerMessagingProxy::startWorkerGlobalScope( | 77 void InProcessWorkerMessagingProxy::startWorkerGlobalScope( |
| 78 const KURL& scriptURL, | 78 const KURL& scriptURL, |
| 79 const String& userAgent, | 79 const String& userAgent, |
| 80 const String& sourceCode, | 80 const String& sourceCode, |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 } | 239 } |
| 240 | 240 |
| 241 InProcessWorkerMessagingProxy::QueuedTask::QueuedTask( | 241 InProcessWorkerMessagingProxy::QueuedTask::QueuedTask( |
| 242 RefPtr<SerializedScriptValue> message, | 242 RefPtr<SerializedScriptValue> message, |
| 243 MessagePortChannelArray channels) | 243 MessagePortChannelArray channels) |
| 244 : message(std::move(message)), channels(std::move(channels)) {} | 244 : message(std::move(message)), channels(std::move(channels)) {} |
| 245 | 245 |
| 246 InProcessWorkerMessagingProxy::QueuedTask::~QueuedTask() = default; | 246 InProcessWorkerMessagingProxy::QueuedTask::~QueuedTask() = default; |
| 247 | 247 |
| 248 } // namespace blink | 248 } // namespace blink |
| OLD | NEW |