Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Side by Side Diff: third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp

Issue 2620463002: Show service worker navigation preload requests in DevTools Network tab (Closed)
Patch Set: fix crash Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 */);
114 115
115 initializeWorkerThread(std::move(startupData)); 116 initializeWorkerThread(std::move(startupData));
116 workerInspectorProxy()->workerThreadCreated(document, workerThread(), 117 workerInspectorProxy()->workerThreadCreated(document, workerThread(),
117 scriptURL); 118 scriptURL);
118 } 119 }
119 120
120 void InProcessWorkerMessagingProxy::postMessageToWorkerObject( 121 void InProcessWorkerMessagingProxy::postMessageToWorkerObject(
121 PassRefPtr<SerializedScriptValue> message, 122 PassRefPtr<SerializedScriptValue> message,
122 std::unique_ptr<MessagePortChannelArray> channels) { 123 std::unique_ptr<MessagePortChannelArray> channels) {
123 DCHECK(isParentContextThread()); 124 DCHECK(isParentContextThread());
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 } 240 }
240 241
241 InProcessWorkerMessagingProxy::QueuedTask::QueuedTask( 242 InProcessWorkerMessagingProxy::QueuedTask::QueuedTask(
242 RefPtr<SerializedScriptValue> message, 243 RefPtr<SerializedScriptValue> message,
243 std::unique_ptr<MessagePortChannelArray> channels) 244 std::unique_ptr<MessagePortChannelArray> channels)
244 : message(std::move(message)), channels(std::move(channels)) {} 245 : message(std::move(message)), channels(std::move(channels)) {}
245 246
246 InProcessWorkerMessagingProxy::QueuedTask::~QueuedTask() = default; 247 InProcessWorkerMessagingProxy::QueuedTask::~QueuedTask() = default;
247 248
248 } // namespace blink 249 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698