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

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

Issue 2171973006: [worklets] Change WorkerInspectorController to accept a WorkerThread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@script-env
Patch Set: . Created 4 years, 4 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
« no previous file with comments | « third_party/WebKit/Source/core/inspector/WorkerInspectorController.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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, 2011 Google Inc. All Rights Reserved. 3 * Copyright (C) 2009, 2011 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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 { 285 {
286 return const_cast<WorkerGlobalScope*>(this); 286 return const_cast<WorkerGlobalScope*>(this);
287 } 287 }
288 288
289 WorkerGlobalScope::WorkerGlobalScope(const KURL& url, const String& userAgent, W orkerThread* thread, double timeOrigin, std::unique_ptr<SecurityOrigin::Privileg eData> starterOriginPrivilageData, WorkerClients* workerClients) 289 WorkerGlobalScope::WorkerGlobalScope(const KURL& url, const String& userAgent, W orkerThread* thread, double timeOrigin, std::unique_ptr<SecurityOrigin::Privileg eData> starterOriginPrivilageData, WorkerClients* workerClients)
290 : m_url(url) 290 : m_url(url)
291 , m_userAgent(userAgent) 291 , m_userAgent(userAgent)
292 , m_v8CacheOptions(V8CacheOptionsDefault) 292 , m_v8CacheOptions(V8CacheOptionsDefault)
293 , m_scriptController(WorkerOrWorkletScriptController::create(this, thread->i solate())) 293 , m_scriptController(WorkerOrWorkletScriptController::create(this, thread->i solate()))
294 , m_thread(thread) 294 , m_thread(thread)
295 , m_workerInspectorController(WorkerInspectorController::create(this)) 295 , m_workerInspectorController(WorkerInspectorController::create(thread))
296 , m_closing(false) 296 , m_closing(false)
297 , m_eventQueue(WorkerEventQueue::create(this)) 297 , m_eventQueue(WorkerEventQueue::create(this))
298 , m_workerClients(workerClients) 298 , m_workerClients(workerClients)
299 , m_timers(Platform::current()->currentThread()->scheduler()->timerTaskRunne r()->clone()) 299 , m_timers(Platform::current()->currentThread()->scheduler()->timerTaskRunne r()->clone())
300 , m_timeOrigin(timeOrigin) 300 , m_timeOrigin(timeOrigin)
301 , m_consoleMessageStorage(new ConsoleMessageStorage()) 301 , m_consoleMessageStorage(new ConsoleMessageStorage())
302 { 302 {
303 setSecurityOrigin(SecurityOrigin::create(url)); 303 setSecurityOrigin(SecurityOrigin::create(url));
304 if (starterOriginPrivilageData) 304 if (starterOriginPrivilageData)
305 getSecurityOrigin()->transferPrivilegesFrom(std::move(starterOriginPrivi lageData)); 305 getSecurityOrigin()->transferPrivilegesFrom(std::move(starterOriginPrivi lageData));
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 visitor->trace(m_timers); 371 visitor->trace(m_timers);
372 visitor->trace(m_consoleMessageStorage); 372 visitor->trace(m_consoleMessageStorage);
373 visitor->trace(m_eventListeners); 373 visitor->trace(m_eventListeners);
374 ExecutionContext::trace(visitor); 374 ExecutionContext::trace(visitor);
375 EventTargetWithInlineData::trace(visitor); 375 EventTargetWithInlineData::trace(visitor);
376 SecurityContext::trace(visitor); 376 SecurityContext::trace(visitor);
377 Supplementable<WorkerGlobalScope>::trace(visitor); 377 Supplementable<WorkerGlobalScope>::trace(visitor);
378 } 378 }
379 379
380 } // namespace blink 380 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/inspector/WorkerInspectorController.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698