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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 workerV8Settings.m_heapLimitMode = | 103 workerV8Settings.m_heapLimitMode = |
104 toIsolate(document)->IsHeapLimitIncreasedForDebugging() | 104 toIsolate(document)->IsHeapLimitIncreasedForDebugging() |
105 ? WorkerV8Settings::HeapLimitMode::IncreasedForDebugging | 105 ? WorkerV8Settings::HeapLimitMode::IncreasedForDebugging |
106 : WorkerV8Settings::HeapLimitMode::Default; | 106 : WorkerV8Settings::HeapLimitMode::Default; |
107 std::unique_ptr<WorkerThreadStartupData> startupData = | 107 std::unique_ptr<WorkerThreadStartupData> startupData = |
108 WorkerThreadStartupData::create( | 108 WorkerThreadStartupData::create( |
109 scriptURL, userAgent, sourceCode, nullptr, startMode, | 109 scriptURL, userAgent, sourceCode, nullptr, startMode, |
110 csp->headers().get(), referrerPolicy, starterOrigin, | 110 csp->headers().get(), referrerPolicy, starterOrigin, |
111 m_workerClients.release(), document->addressSpace(), | 111 m_workerClients.release(), document->addressSpace(), |
112 OriginTrialContext::getTokens(document).get(), | 112 OriginTrialContext::getTokens(document).get(), |
113 std::move(workerSettings), workerV8Settings, | 113 std::move(workerSettings), workerV8Settings); |
114 false /* inspectorNetworkCapability */); | |
115 | 114 |
116 initializeWorkerThread(std::move(startupData)); | 115 initializeWorkerThread(std::move(startupData)); |
117 workerInspectorProxy()->workerThreadCreated(document, workerThread(), | 116 workerInspectorProxy()->workerThreadCreated(document, workerThread(), |
118 scriptURL); | 117 scriptURL); |
119 } | 118 } |
120 | 119 |
121 void InProcessWorkerMessagingProxy::postMessageToWorkerObject( | 120 void InProcessWorkerMessagingProxy::postMessageToWorkerObject( |
122 PassRefPtr<SerializedScriptValue> message, | 121 PassRefPtr<SerializedScriptValue> message, |
123 std::unique_ptr<MessagePortChannelArray> channels) { | 122 std::unique_ptr<MessagePortChannelArray> channels) { |
124 DCHECK(isParentContextThread()); | 123 DCHECK(isParentContextThread()); |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 } | 239 } |
241 | 240 |
242 InProcessWorkerMessagingProxy::QueuedTask::QueuedTask( | 241 InProcessWorkerMessagingProxy::QueuedTask::QueuedTask( |
243 RefPtr<SerializedScriptValue> message, | 242 RefPtr<SerializedScriptValue> message, |
244 std::unique_ptr<MessagePortChannelArray> channels) | 243 std::unique_ptr<MessagePortChannelArray> channels) |
245 : message(std::move(message)), channels(std::move(channels)) {} | 244 : message(std::move(message)), channels(std::move(channels)) {} |
246 | 245 |
247 InProcessWorkerMessagingProxy::QueuedTask::~QueuedTask() = default; | 246 InProcessWorkerMessagingProxy::QueuedTask::~QueuedTask() = default; |
248 | 247 |
249 } // namespace blink | 248 } // namespace blink |
OLD | NEW |