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

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

Issue 2807533003: [WIP2] off-main-thread loading
Patch Set: rebase Created 3 years, 7 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, 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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 console_message->Message(), console_message->Location()); 268 console_message->Message(), console_message->Location());
269 GetThread()->GetConsoleMessageStorage()->AddConsoleMessage(this, 269 GetThread()->GetConsoleMessageStorage()->AddConsoleMessage(this,
270 console_message); 270 console_message);
271 } 271 }
272 272
273 WorkerEventQueue* WorkerGlobalScope::GetEventQueue() const { 273 WorkerEventQueue* WorkerGlobalScope::GetEventQueue() const {
274 return event_queue_.Get(); 274 return event_queue_.Get();
275 } 275 }
276 276
277 CoreProbeSink* WorkerGlobalScope::GetProbeSink() { 277 CoreProbeSink* WorkerGlobalScope::GetProbeSink() {
278 if (IsClosing())
279 return nullptr;
278 if (WorkerInspectorController* controller = 280 if (WorkerInspectorController* controller =
279 GetThread()->GetWorkerInspectorController()) 281 GetThread()->GetWorkerInspectorController())
280 return controller->GetProbeSink(); 282 return controller->GetProbeSink();
281 return nullptr; 283 return nullptr;
282 } 284 }
283 285
284 bool WorkerGlobalScope::IsSecureContext(String& error_message) const { 286 bool WorkerGlobalScope::IsSecureContext(String& error_message) const {
285 // Until there are APIs that are available in workers and that 287 // Until there are APIs that are available in workers and that
286 // require a privileged context test that checks ancestors, just do 288 // require a privileged context test that checks ancestors, just do
287 // a simple check here. Once we have a need for a real 289 // a simple check here. Once we have a need for a real
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 visitor->Trace(event_listeners_); 380 visitor->Trace(event_listeners_);
379 visitor->Trace(pending_error_events_); 381 visitor->Trace(pending_error_events_);
380 visitor->Trace(fetch_context_); 382 visitor->Trace(fetch_context_);
381 EventTargetWithInlineData::Trace(visitor); 383 EventTargetWithInlineData::Trace(visitor);
382 SecurityContext::Trace(visitor); 384 SecurityContext::Trace(visitor);
383 WorkerOrWorkletGlobalScope::Trace(visitor); 385 WorkerOrWorkletGlobalScope::Trace(visitor);
384 Supplementable<WorkerGlobalScope>::Trace(visitor); 386 Supplementable<WorkerGlobalScope>::Trace(visitor);
385 } 387 }
386 388
387 } // namespace blink 389 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698